2020-02-01 14:41:10 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mkdir -p temp
|
2020-02-02 09:18:34 -06:00
|
|
|
cp content1.dat temp/content2.dat
|
2020-02-01 14:41:10 -06:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2020-02-02 09:18:34 -06:00
|
|
|
echo "Running from the parent directory with content1.dat"
|
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"content1.dat\" memory; synth -top memory"
|
|
|
|
echo "Running from the parent directory with temp/content2.dat"
|
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"temp/content2.dat\" memory; synth -top memory"
|
|
|
|
echo "Running from the parent directory with memfile/temp/content2.dat"
|
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"memfile/temp/content2.dat\" memory; synth -top memory"
|
2020-02-01 14:41:10 -06:00
|
|
|
|
|
|
|
cd memfile
|
|
|
|
|
2020-02-02 09:18:34 -06:00
|
|
|
echo "Running from the same directory with content1.dat"
|
|
|
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"content1.dat\" memory; synth -top memory"
|
|
|
|
echo "Running from the same directory with temp/content2.dat"
|
|
|
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"temp/content2.dat\" memory; synth -top memory"
|
2020-02-01 14:41:10 -06:00
|
|
|
|
|
|
|
cd temp
|
|
|
|
|
2020-02-02 09:18:34 -06:00
|
|
|
echo "Running from a child directory with content1.dat"
|
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"content1.dat\" memory; synth -top memory"
|
|
|
|
echo "Running from a child directory with temp/content2.dat"
|
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/content2.dat\" memory; synth -top memory"
|
|
|
|
echo "Running from a child directory with content2.dat"
|
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/content2.dat\" memory; synth -top memory"
|