2020-02-01 14:41:10 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-02-01 19:44:06 -06:00
|
|
|
for i in {1..64}; do
|
2020-02-01 14:41:10 -06:00
|
|
|
echo "00001111000000001111111100000000" >> tempfile1.dat
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p temp
|
|
|
|
cp tempfile1.dat temp/tempfile2.dat
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from the parent directory with tempfile1.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from the parent directory with temp/tempfile2.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from the parent directory with memfile/temp/tempfile2.dat"
|
|
|
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"memfile/temp/tempfile2.dat\" memory; synth -top memory"
|
2020-02-01 14:41:10 -06:00
|
|
|
|
|
|
|
cd memfile
|
|
|
|
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from the same directory with tempfile1.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from the same directory with temp/tempfile2.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
|
|
|
|
|
|
|
cd temp
|
|
|
|
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from a child directory with tempfile1.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from a child directory with temp/tempfile2.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
2020-02-01 19:44:06 -06:00
|
|
|
echo "Running from a child directory with tempfile2.dat"
|
2020-02-01 14:41:10 -06:00
|
|
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|