Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME64x core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
VME64x core
Commits
03b1ca39
Commit
03b1ca39
authored
Sep 12, 2017
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simple_tb: add write32
parent
37e459e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
top_tb.vhd
hdl/vme64x-core/sim/simple_tb/top_tb.vhd
+23
-0
No files found.
hdl/vme64x-core/sim/simple_tb/top_tb.vhd
View file @
03b1ca39
...
...
@@ -643,6 +643,23 @@ begin
write_wait_dtack
;
end
write16
;
procedure
write32
(
addr
:
std_logic_vector
(
31
downto
0
);
am
:
vme_am_t
;
data
:
lword_t
)
is
variable
l
:
line
;
begin
assert
addr
(
1
downto
0
)
=
"00"
report
"unaligned write16"
severity
error
;
write_setup_addr
(
addr
,
'0'
,
am
);
VME_DS_n_i
<=
"00"
;
VME_DATA_i
(
31
downto
0
)
<=
data
;
write_wait_dtack
;
end
write32
;
procedure
write8_conf
(
addr
:
cfg_addr_t
;
data
:
byte_t
)
is
...
...
@@ -873,6 +890,12 @@ begin
read32
(
x"56_00_00_14"
,
c_AM_A32
,
d32
);
assert
d32
=
x"1f00_abcd"
report
"bad read at 014 (3)"
severity
error
;
read32
(
x"56_00_00_18"
,
c_AM_A32
,
d32
);
assert
d32
=
x"0006_0000"
report
"bad read at 018 (1)"
severity
error
;
write32
(
x"56_00_00_18"
,
c_AM_A32
,
x"2345_6789"
);
read32
(
x"56_00_00_18"
,
c_AM_A32
,
d32
);
assert
d32
=
x"2345_6789"
report
"bad read at 018 (2)"
severity
error
;
end
case
;
wait
for
10
ns
;
...
...
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