mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added fulladder example files
This commit is contained in:
parent
4cae11ad28
commit
6587bd6944
7
examples/verilog/fulladder/fulladder-batch.do
Normal file
7
examples/verilog/fulladder/fulladder-batch.do
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# fulladder-batch.do
|
||||||
|
# David_Harris@hmc.edu 10 January 2021
|
||||||
|
vlog fulladder.sv
|
||||||
|
vopt +acc work.testbench -o workopt
|
||||||
|
vsim workopt
|
||||||
|
run -all
|
||||||
|
quit
|
12
examples/verilog/fulladder/fulladder.do
Normal file
12
examples/verilog/fulladder/fulladder.do
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# fulladder.do
|
||||||
|
# David_Harris@hmc.edu 10 January 2021
|
||||||
|
|
||||||
|
# compile, optimize, and start the simulation
|
||||||
|
vlog fulladder.sv
|
||||||
|
vopt +acc work.testbench -o workopt
|
||||||
|
vsim workopt
|
||||||
|
|
||||||
|
# Add waveforms and run the simulation
|
||||||
|
add wave *
|
||||||
|
run -all
|
||||||
|
view wave
|
1
examples/verilog/fulladder/sim-fulladder-batch
Executable file
1
examples/verilog/fulladder/sim-fulladder-batch
Executable file
@ -0,0 +1 @@
|
|||||||
|
vsim -c -do fulladder-batch.do
|
Loading…
Reference in New Issue
Block a user