OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [soc/] [led_ase_mesh1_example/] [1.0/] [sim/] [sim.do] - Rev 145

Compare with Previous | Blame | View Log

#
# Runs the simulation. 
# Uses "force" command to toggle the switch signals a couple of times.
#  
# Erno Salminen, Decemeber 2011

.main clear
#vsim -novopt work.led_ase_mesh1_example
vsim  work.led_ase_mesh1_example
do all_waves.do

# Reset and initialize
force /clk 1 0, 0 10 -repeat 20
force /reset_n 0 0, 1 50
force /switch_0_in 0 0
force /switch_1_in 0 0
run 600


# Toggle the switch1
# Led output gets inverted in about dozen clk cycles
force /switch_1_in 1 0, 0 50
run 600
force /switch_1_in 1 0, 0 50
run 600
force /switch_1_in 1 0, 0 50
run 800


# Toggle the other switch
force /switch_0_in 1 0, 0 50
run 600
force /switch_0_in 1 0, 0 50
run 600
force /switch_0_in 1 0, 0 50
run 800


# Toggle both switches
force /switch_0_in 1 0, 0 50
force /switch_1_in 1 0, 0 50
run 600

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.