1#
2# This is the simulator script for the menagerie cpu example.  It
3# is registered to run automatically when the example is simulated.
4#
5
6#
7# Initialize the memories with the data in the menagerie.mem file.
8# The menagerie.mem file was compiled using gmac from the menagerie.gm
9# file.
10#
11load "menagerie.mem"
12
13#
14# Set the zoom factor for the scope.  This command will zoom out
15# three steps to show a larger time range.
16#
17zoom 3
18
19#
20# Command such as these can be uncommented to set probes or
21# breakpoints.
22#
23#probe clk
24#break iunit.extra==8'h15
25
26#
27# Set the reset (active low) line to '0', step two clocks and
28# then set the reset line back to '1'.  This sequence resets
29# the cpu.
30#
31set reset 1'b0
32clock +2
33set reset 1'b1
34
35#
36# Start simulating the circuit in continous mode.
37#
38run
39