forked from robinsonb5/fpgagen
-
Notifications
You must be signed in to change notification settings - Fork 6
/
gen.do
192 lines (178 loc) · 9.1 KB
/
gen.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
vlib work
vcom -explicit -93 "src/TG68_fast.vhd"
vcom -explicit -93 "src/TG68.vhd"
vcom -explicit -93 "src/T80/T80_Pack.vhd"
vcom -explicit -93 "src/T80/T80.vhd"
vcom -explicit -93 "src/T80/T80_ALU.vhd"
vcom -explicit -93 "src/T80/T80_MCode.vhd"
vcom -explicit -93 "src/T80/T80_Reg.vhd"
vcom -explicit -93 "src/T80/T80se.vhd"
vcom -explicit -93 "src/pll.vhd"
vcom -explicit -93 "src/hex.vhd"
vcom -explicit -93 "src/os_rom.vhd"
vcom -explicit -93 "src/flash_sim.vhd"
vcom -explicit -93 "src/sram_sim.vhd"
vcom -explicit -93 "src/sdram_sim.vhd"
vcom -explicit -93 "src/gen_io.vhd"
vcom -explicit -93 "src/gen_fm.vhd"
vcom -explicit -93 "src/vdp_common.vhd"
vcom -explicit -93 "src/vdp_colinfo.vhd"
vcom -explicit -93 "src/vdp_objinfo.vhd"
vcom -explicit -93 "src/vdp.vhd"
vcom -explicit -93 "src/gen_top.vhd"
vcom -explicit -93 "src/gen_top_tb.vhd"
vsim -t 1ps -lib work gen_tb
view wave
delete wave *
view structure
view signals
onerror {resume}
quietly WaveActivateNextPane {} 0
#add wave -noupdate -format Logic /gen_tb/reset
add wave -noupdate -format Logic /gen_tb/gen/mclk
#add wave -noupdate -divider "INIT"
#add wave -noupdate -format Literal /gen_tb/gen/rstseq
#add wave -noupdate -format Logic /gen_tb/gen/mrst_n
add wave -noupdate -divider "68000"
add wave -noupdate -format Logic /gen_tb/gen/vclk
add wave -noupdate -format Literal /gen_tb/gen/vclkcnt
add wave -noupdate -format Logic /gen_tb/gen/tg68_enardreg
add wave -noupdate -format Logic /gen_tb/gen/tg68_enawrreg
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/tg68_a
add wave -noupdate -format Logic /gen_tb/gen/tg68_as_n
add wave -noupdate -format Logic /gen_tb/gen/tg68_uds_n
add wave -noupdate -format Logic /gen_tb/gen/tg68_lds_n
add wave -noupdate -format Logic /gen_tb/gen/tg68_rnw
add wave -noupdate -format Logic /gen_tb/gen/tg68_dtack_n
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/tg68_di
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/tg68_do
#add wave -noupdate -divider "Z80"
#add wave -noupdate -format Logic /gen_tb/gen/zclk
#add wave -noupdate -format Logic /gen_tb/gen/t80_clken
#add wave -noupdate -format Logic /gen_tb/gen/zbusreq
#add wave -noupdate -format Logic /gen_tb/gen/zbusack_n
#add wave -noupdate -format Logic /gen_tb/gen/zreset_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_busrq_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_busak_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_reset_n
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/t80_a
#add wave -noupdate -format Logic /gen_tb/gen/t80_mreq_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_rd_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_wr_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_wait_n
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/t80_di
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/t80_do
#add wave -noupdate -format Logic /gen_tb/gen/t80_int_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_m1_n
#add wave -noupdate -format Logic /gen_tb/gen/t80_iorq_n
#add wave -noupdate -divider "SDRAM"
#add wave -noupdate -format Logic /gen_tb/gen/mclk
#add wave -noupdate -format Logic /gen_tb/gen/vclk
#add wave -noupdate -format Literal /gen_tb/gen/vclkcnt
#add wave -noupdate -format Logic /gen_tb/gen/zclk
#add wave -noupdate -format Literal /gen_tb/gen/sdrc
#add wave -noupdate -format Logic /gen_tb/gen/dram_ras_n
#add wave -noupdate -format Logic /gen_tb/gen/dram_cas_n
#add wave -noupdate -format Logic /gen_tb/gen/dram_we_n
#add wave -noupdate -format Logic /gen_tb/gen/dram_udqm
#add wave -noupdate -format Logic /gen_tb/gen/dram_ldqm
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/dram_addr
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/dram_dq
#add wave -noupdate -divider "FLASH"
#add wave -noupdate -format Logic /gen_tb/gen/mclk
#add wave -noupdate -format Logic /gen_tb/gen/vclk
#add wave -noupdate -format Literal /gen_tb/gen/vclkcnt
#add wave -noupdate -format Logic /gen_tb/gen/zclk
#add wave -noupdate -format Literal /gen_tb/gen/fc
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fl_addr
#add wave -noupdate -format Logic /gen_tb/gen/fl_oe_n
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fl_dq
#add wave -noupdate -divider "INTERRUPTS"
#add wave -noupdate -format Logic /gen_tb/gen/hint
#add wave -noupdate -format Logic /gen_tb/gen/hint_ack
#add wave -noupdate -format Logic /gen_tb/gen/vint_tg68
#add wave -noupdate -format Logic /gen_tb/gen/vint_tg68_ack
#add wave -noupdate -format Literal /gen_tb/gen/tg68_ipl_n
#add wave -noupdate -format Logic /gen_tb/gen/tg68_intack
#add wave -noupdate -format Logic /gen_tb/gen/vint_t80
#add wave -noupdate -format Logic /gen_tb/gen/vint_t80_ack
#add wave -noupdate -divider "I/O"
#add wave -noupdate -format Literal /gen_tb/gen/ioc
#add wave -noupdate -format Logic /gen_tb/gen/io_sel
#add wave -noupdate -format Logic /gen_tb/gen/io_rnw
#add wave -noupdate -format Logic /gen_tb/gen/io_dtack_n
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/io_a
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/io_di
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/io_do
#add wave -noupdate -divider "FM"
#add wave -noupdate -format Literal /gen_tb/gen/fmc
#add wave -noupdate -format Logic /gen_tb/gen/fm_sel
#add wave -noupdate -format Logic /gen_tb/gen/fm_rnw
#add wave -noupdate -format Logic /gen_tb/gen/fm_dtack_n
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm_a
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm_di
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm_do
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm/status
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm/ta_base
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm/ta_div
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/fm/ta_value
add wave -noupdate -divider "VDP"
add wave -noupdate -format Literal /gen_tb/gen/vdpc
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp_a
add wave -noupdate -format Logic /gen_tb/gen/vdp_sel
add wave -noupdate -format Logic /gen_tb/gen/vdp_rnw
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp_di
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp_do
add wave -noupdate -format Logic /gen_tb/gen/vdp_dtack_n
add wave -noupdate -format Literal /gen_tb/gen/vdp/dtc
add wave -noupdate -format Logic /gen_tb/gen/vdp/pending
add wave -noupdate -format Literal /gen_tb/gen/vdp/code
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/addr
add wave -noupdate -format Logic /gen_tb/gen/vdp/dma_fill_pre
add wave -noupdate -format Logic /gen_tb/gen/vdp/dma_fill
add wave -noupdate -format Logic /gen_tb/gen/vdp/dma_copy
add wave -noupdate -format Logic /gen_tb/gen/vdp/dma_vbus
#add wave -noupdate -divider "PSG - BAR"
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/hexvalue
#add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/bar
add wave -noupdate -divider "VDP - SRAM"
add wave -noupdate -format Literal /gen_tb/gen/vdp/vmc
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/addr
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/addr_latch
add wave -noupdate -format Logic /gen_tb/gen/vdp/addr_set_req
add wave -noupdate -format Logic /gen_tb/gen/vdp/addr_set_ack
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/reg_latch
add wave -noupdate -format Logic /gen_tb/gen/vdp/reg_set_req
add wave -noupdate -format Logic /gen_tb/gen/vdp/reg_set_ack
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/vram_addr
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/vram_di
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/vram_do
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_ce_n
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_oe_n
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_we_n
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_ub_n
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_lb_n
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_sel
add wave -noupdate -format Logic /gen_tb/gen/vdp/vram_dtack_n
add wave -noupdate -divider "VDP - VBUS"
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vbus_addr
add wave -noupdate -format Logic /gen_tb/gen/vbus_sel
add wave -noupdate -format Logic /gen_tb/gen/vbus_dtack_n
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vbus_data
add wave -noupdate -format Literal -radix hexadecimal /gen_tb/gen/vdp/dt_dmav_data
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {0 ps} 0}
configure wave -namecolwidth 311
configure wave -valuecolwidth 60
configure wave -justifyvalue left
configure wave -signalnamewidth 0
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
configure wave -timelineunits ns
update