Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-nic
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-nic
Commits
c43c6ab2
Commit
c43c6ab2
authored
Mar 20, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
top level testbench: check if all peripherals respond without hanging the bus
parent
bd3cabc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
main.sv
testbench/top_level/main.sv
+10
-1
No files found.
testbench/top_level/main.sv
View file @
c43c6ab2
...
@@ -34,7 +34,14 @@ module main;
...
@@ -34,7 +34,14 @@ module main;
@
(
posedge
I_Gennum
.
ready
)
;
@
(
posedge
I_Gennum
.
ready
)
;
$
display
(
"Startup"
)
;
$
display
(
"Startup"
)
;
acc
.
write
(
'ha0400
,
'h1deadbee
)
;
acc
.
write
(
'ha0400
,
'h0deadbee
)
;
acc
.
write
(
'hc0000
,
'h0deadbee
)
;
acc
.
write
(
'he0000
,
'h0deadbee
)
;
acc
.
write
(
'he1000
,
'h0deadbee
)
;
acc
.
write
(
'he2000
,
'h0deadbee
)
;
acc
.
write
(
BASE_WRPC
+
'h100
,
'hdeadbeef
)
;
acc
.
write
(
BASE_WRPC
+
'h100
,
'hdeadbeef
)
;
acc
.
write
(
BASE_WRPC
+
'h104
,
'hcafebabe
)
;
acc
.
write
(
BASE_WRPC
+
'h104
,
'hcafebabe
)
;
...
@@ -47,9 +54,11 @@ module main;
...
@@ -47,9 +54,11 @@ module main;
acc
.
read
(
BASE_WRPC
+
'h104
,
rval
)
;
acc
.
read
(
BASE_WRPC
+
'h104
,
rval
)
;
$
display
(
"MemReadback2 %x"
,
rval
)
;
$
display
(
"MemReadback2 %x"
,
rval
)
;
/* -----\/----- EXCLUDED -----\/-----
acc.write(BASE_VIC + 'h4, 'h1); // enable IRQ 0
acc.write(BASE_VIC + 'h4, 'h1); // enable IRQ 0
acc.write(BASE_VIC + 'h0, 'h3); // positive polarity, enable VIC
acc.write(BASE_VIC + 'h0, 'h3); // positive polarity, enable VIC
acc.write(BASE_VIC + 'h18, 'h1); // software IRQ trigger
acc.write(BASE_VIC + 'h18, 'h1); // software IRQ trigger
-----/\----- EXCLUDED -----/\----- */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment