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_fh_mesh_2d_example/] [1.0/] [sim/] [sim.do] - Rev 145

Compare with Previous | Blame | View Log

#
# Run simulation in Modelsim. 
# Very simple stimulus, just toggle the switches
# few times and that's it. 
#

.main clear

#restart -f
vsim work.led_fh_mesh_2d_example
add wave *

# Initialize evertyhing
force /clk 1 0, 0 10 -repeat 20
force /rst_n 0 0, 1 100

force /switch_0_in 0 0
force /switch_1_in 0 0
force /switch_2_in 0 0
force /switch_3_in 0 0
force /switch_4_in 0 0
force /switch_5_in 0 0
force /switch_6_in 0 0
force /switch_7_in 0 0
run 1000


# Switches 0,1,2,3
force /switch_0_in 1 0, 0 500
run 1200
force /switch_0_in 1 0, 0 500
run 1200

force /switch_1_in 1 0, 0 500
run 1200
force /switch_1_in 1 0, 0 500
run 1200

force /switch_2_in 1 0, 0 500
run 1200
force /switch_2_in 1 0, 0 500
run 1200

force /switch_3_in 1 0, 0 500
run 1200
force /switch_3_in 1 0, 0 500
run 1200


# Switches 4, 5, 6, 7
force /switch_4_in 1 0, 0 500
run 2000
force /switch_4_in 1 0, 0 1500
run 2000

force /switch_5_in 1 0, 0 1500
run 2000
force /switch_5_in 1 0, 0 1500
run 2000

force /switch_6_in 1 0, 0 1500
run 2000
force /switch_6_in 1 0, 0 1500
run 2000

force /switch_7_in 1 0, 0 1500
run 2000
force /switch_7_in 1 0, 0 1500
run 2000


# Switches 0 and 4 at the same time
force /switch_0_in 1 0, 0 500
force /switch_4_in 1 0, 0 500
run 2000
force /switch_0_in 1 0, 0 500
force /switch_4_in 1 0, 0 500
run 2000

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.