yosys/examples/cmos/testbench_digital.sh

16 lines
304 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
# iverlog simulation
echo "Doing Verilog simulation with iverilog"
2017-04-08 22:54:31 -05:00
iverilog -o counter_tb counter.v counter_tb.v
./counter_tb; gtkwave counter_tb.gtkw &
# yosys synthesis
../../yosys counter_digital.ys
# requires ngspice with xspice support enabled:
ngspice testbench_digital.sp