mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 03:47:20 -04:00
Added fulladder example files
This commit is contained in:
parent
4cae11ad28
commit
6587bd6944
3 changed files with 20 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue