Advertisement
STANAANDREY

script with graph ac

Nov 2nd, 2023
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # add all Verilog source files, separated by spaces
  2. set sourcefiles {sadd.v}
  3.  
  4. # set name of the top module
  5. set topmodule sadd_tb
  6.  
  7. ###################################################
  8. #####DO NOT MODIFY THE SCRIPT BELLOW THIS LINE#####
  9. ###################################################
  10.  
  11. # quit current simulation if any
  12. quit -sim
  13.  
  14. # empty the work library if present
  15. if [file exists "work"] {vdel -all}
  16. #create a new work library
  17. vlib work
  18.  
  19. # run the compiler
  20. if [catch "eval vlog $sourcefiles"] {
  21. puts "correct the compilation errors"
  22. return
  23. }
  24.  
  25. vsim -voptargs=+acc $topmodule
  26. add *wave
  27. run -all
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement