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
c9f3b568
Commit
c9f3b568
authored
Dec 16, 2021
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: SV BFM support for BLT transfers
parent
4ed9ed02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
vme64x_bfm.svh
hdl/sim/vme64x_bfm/vme64x_bfm.svh
+31
-9
No files found.
hdl/sim/vme64x_bfm/vme64x_bfm.svh
View file @
c9f3b568
...
@@ -336,7 +336,15 @@ class CBusAccessor_VME64x extends CBusAccessor;
...
@@ -336,7 +336,15 @@ class CBusAccessor_VME64x extends CBusAccessor;
if
(
!
write
)
if
(
!
write
)
_
data
[
i
]
=
(
dtype
==
D08Byte0
||
dtype
==
D08Byte2
)
?
(
vme
.
data
>>
8
)
:
(
vme
.
data
)
;
_
data
[
i
]
=
(
dtype
==
D08Byte0
||
dtype
==
D08Byte2
)
?
(
vme
.
data
>>
8
)
:
(
vme
.
data
)
;
#
40
ns
;
#
40
ns
;
end
// for (i=0;i<_data.size();i++)
vme
.
q_ds_n
=
2'b11
;
`assert_wait
(
tmo_rws_bus_idle
,
vme
.
dtack_n
,
4u
s
)
end
// for (i=0;i<_data.size();i++)
release_bus
()
;
release_bus
()
;
endtask
// rw_generic
endtask
// rw_generic
...
@@ -383,15 +391,29 @@ class CBusAccessor_VME64x extends CBusAccessor;
...
@@ -383,15 +391,29 @@ class CBusAccessor_VME64x extends CBusAccessor;
vme_xfer_type_t
xtype
;
vme_xfer_type_t
xtype
;
extract_xtype
(
size
,
xtype
,
asize
,
dtype
)
;
extract_xtype
(
size
,
xtype
,
asize
,
dtype
)
;
if
(
xtype
==
SINGLE
||
xtype
==
CR_CSR
)
for
(
i
=
0
;
i
<
addr
.
size
()
;
i
++
)
case
(
xtype
)
SINGLE
,
CR_CSR
:
begin
begin
uint64_t
tmp
[]
;
for
(
i
=
0
;
i
<
addr
.
size
()
;
i
++
)
tmp
=
new
[
1
]
;
begin
uint64_t
tmp
[]
=
new
[
1
]
;
rw_generic
(
0
,
addr
[
i
]
,
tmp
,
asize
,
xtype
,
dtype
)
;
tmp
[
0
]
=
0
;
data
[
i
]
=
tmp
[
0
]
;
end
rw_generic
(
0
,
addr
[
i
]
,
tmp
,
asize
,
xtype
,
dtype
)
;
data
[
i
]
=
tmp
[
0
]
;
end
end
// case: SINGLE, CR_CSR
BLT:
begin
rw_generic
(
0
,
addr
[
0
]
,
data
,
asize
,
xtype
,
dtype
)
;
end
endcase
endtask
// readm
endtask
// readm
...
...
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