Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add all Verilog source files, separated by spaces
- set sourcefiles {sadd.v}
- # set name of the top module
- set topmodule sadd_tb
- ###################################################
- #####DO NOT MODIFY THE SCRIPT BELLOW THIS LINE#####
- ###################################################
- # quit current simulation if any
- quit -sim
- # empty the work library if present
- if [file exists "work"] {vdel -all}
- #create a new work library
- vlib work
- # run the compiler
- if [catch "eval vlog $sourcefiles"] {
- puts "correct the compilation errors"
- return
- }
- vsim -voptargs=+acc $topmodule
- add *wave
- run -all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement