2019-02-19 06:42:21 -06:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
sed 's/SB_MAC16/SB_MAC16_UUT/; /SB_MAC16_UUT/,/endmodule/ p; d;' < ../cells_sim.v > test_dsp_model_uut.v
|
|
|
|
cat /opt/lscc/iCEcube2.2017.01/verilog/sb_ice_syn.v > test_dsp_model_ref.v
|
2019-02-20 05:55:20 -06:00
|
|
|
for tb in testbench \
|
|
|
|
testbench_comb_8x8_A testbench_comb_8x8_B testbench_comb_16x16 \
|
|
|
|
testbench_seq_16x16_A testbench_seq_16x16_B
|
|
|
|
do
|
|
|
|
iverilog -s $tb -o test_dsp_model test_dsp_model.v test_dsp_model_uut.v test_dsp_model_ref.v
|
|
|
|
vvp -N ./test_dsp_model
|
|
|
|
done
|