1.编写sim.do文件

##### Quit the Simulation #####
quit -sim
 
##### Make work directory && Create the Project/Lib #####
if {[file exists work]} {
file delete -force
work vlib work
puts "Successfully Created work1 directory"
} else {
vlib work
puts "Successfully Created work directory"
}
 
##### Compile the verilog #####
vlog ../testbench/counter_tb.v
vlog ../prj/ip/counter.v
 
##### Start Simulation #####
vsim -t ps -novopt -L lpm -L altera_mf -L altera_primitives work.counter_tb
radix hex
add wave -position insertpoint sim:/counter_tb/counter0/*
run -all

2.modelsim_run.bat文件

modelsim -do sim.do

相关文章:

  • 2021-08-11
  • 2022-01-21
  • 2021-05-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-08-26
猜你喜欢
  • 2021-07-13
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
相关资源
相似解决方案