Move muxpack from passes/techmap to passes/opt
[yosys.git] / tests / bram / run-single.sh
1 #!/bin/bash
2 set -e
3 ../../yosys -qq -p "proc; opt; memory -nomap -bram temp/brams_${2}.txt; opt -fast -full" \
4 -l temp/synth_${1}_${2}.log -o temp/synth_${1}_${2}.v temp/brams_${1}.v
5 iverilog -Dvcd_file=\"temp/tb_${1}_${2}.vcd\" -DSIMLIB_MEMDELAY=1 -o temp/tb_${1}_${2}.tb temp/brams_${1}_tb.v \
6 temp/brams_${1}_ref.v temp/synth_${1}_${2}.v temp/brams_${2}.v ../../techlibs/common/simlib.v
7 temp/tb_${1}_${2}.tb > temp/tb_${1}_${2}.txt
8 if grep -q ERROR temp/tb_${1}_${2}.txt; then
9 grep -HC2 ERROR temp/tb_${1}_${2}.txt | head
10 exit 1
11 fi
12 exit 0