2018-11-30 22:14:43 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# iverlog simulation
|
|
|
|
echo "Doing Verilog simulation with iverilog"
|
2019-05-23 17:03:08 -05:00
|
|
|
iverilog -o counter_tb counter.v counter_tb.v
|
2018-11-30 22:14:43 -06:00
|
|
|
./counter_tb; gtkwave counter_tb.gtkw &
|
|
|
|
|
|
|
|
# yosys synthesis
|
|
|
|
../../yosys counter_digital.ys
|
|
|
|
|
|
|
|
# requires ngspice with xspice support enabled:
|
|
|
|
ngspice testbench_digital.sp
|
|
|
|
|