2019-07-09 13:58:59 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
2021-12-09 17:22:37 -06:00
|
|
|
../../yosys -q -o async_syn.v -r uut -p 'synth; rename uut syn' async.v
|
|
|
|
../../yosys -q -o async_prp.v -r uut -p 'prep; rename uut prp' async.v
|
|
|
|
../../yosys -q -o async_a2s.v -r uut -p 'prep; async2sync; rename uut a2s' async.v
|
|
|
|
../../yosys -q -o async_ffl.v -r uut -p 'prep; clk2fflogic; rename uut ffl' async.v
|
2019-07-09 15:21:25 -05:00
|
|
|
iverilog -o async_sim -DTESTBENCH async.v async_???.v
|
2019-07-09 13:58:59 -05:00
|
|
|
vvp -N async_sim > async.out
|
2019-07-09 15:21:25 -05:00
|
|
|
tail async.out
|
|
|
|
grep PASS async.out
|
|
|
|
rm -f async_???.v async_sim async.out async.vcd
|