mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 18:06:16 +00:00
Added tests/memfile to 'make test' with an extra testcase
Signed-off-by: Rodrigo Alejandro Melo <rodrigomelo9@gmail.com>
This commit is contained in:
parent
43396fae2c
commit
eaaba6e091
2 changed files with 11 additions and 16 deletions
1
Makefile
1
Makefile
|
@ -728,6 +728,7 @@ test: $(TARGETS) $(EXTRA_TARGETS)
|
||||||
+cd tests/arch/anlogic && bash run-test.sh $(SEEDOPT)
|
+cd tests/arch/anlogic && bash run-test.sh $(SEEDOPT)
|
||||||
+cd tests/arch/gowin && bash run-test.sh $(SEEDOPT)
|
+cd tests/arch/gowin && bash run-test.sh $(SEEDOPT)
|
||||||
+cd tests/rpc && bash run-test.sh
|
+cd tests/rpc && bash run-test.sh
|
||||||
|
+cd tests/memfile && bash run-test.sh
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " Passed \"make test\"."
|
@echo " Passed \"make test\"."
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "* Creating Memory Content Files"
|
for i in {1..64}; do
|
||||||
|
|
||||||
for i in {1..64}
|
|
||||||
do
|
|
||||||
echo "00001111000000001111111100000000" >> tempfile1.dat
|
echo "00001111000000001111111100000000" >> tempfile1.dat
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -12,28 +9,25 @@ cp tempfile1.dat temp/tempfile2.dat
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "* Running from the parent directory"
|
echo "Running from the parent directory with tempfile1.dat"
|
||||||
echo " * Memory Content File: tempfile1.dat"
|
|
||||||
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
||||||
echo " * Memory Content File: temp/tempfile2.dat"
|
echo "Running from the parent directory with temp/tempfile2.dat"
|
||||||
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
../yosys -qp "read_verilog -defer memfile/memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
||||||
|
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"
|
||||||
|
|
||||||
cd memfile
|
cd memfile
|
||||||
|
|
||||||
echo "* Running from the same directory"
|
echo "Running from the same directory with tempfile1.dat"
|
||||||
echo " * Memory Content File: tempfile1.dat"
|
|
||||||
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
||||||
echo " * Memory Content File: temp/tempfile2.dat"
|
echo "Running from the same directory with temp/tempfile2.dat"
|
||||||
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
../../yosys -qp "read_verilog -defer memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
||||||
|
|
||||||
cd temp
|
cd temp
|
||||||
|
|
||||||
echo "* Running from a child directory"
|
echo "Running from a child directory with tempfile1.dat"
|
||||||
echo " * Memory Content File: tempfile1.dat"
|
|
||||||
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"tempfile1.dat\" memory; synth -top memory"
|
||||||
echo " * Memory Content File: temp/tempfile2.dat"
|
echo "Running from a child directory with temp/tempfile2.dat"
|
||||||
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
||||||
echo " * Memory Content File: tempfile2.dat"
|
echo "Running from a child directory with tempfile2.dat"
|
||||||
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
../../../yosys -qp "read_verilog -defer ../memory.v; chparam -set MEMFILE \"temp/tempfile2.dat\" memory; synth -top memory"
|
||||||
|
|
||||||
echo "* Done"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue