Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Platform-independent core collection
Commits
f70d37be
Commit
f70d37be
authored
Dec 15, 2022
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: follow up with the API changes in CWishboneAccessor class
parent
3e297837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
if_wishbone_accessor.svh
sim/wishbone/if_wishbone_accessor.svh
+6
-12
No files found.
sim/wishbone/if_wishbone_accessor.svh
View file @
f70d37be
...
...
@@ -3,6 +3,8 @@
`include
"if_wishbone_types.svh"
import
gencores_sim_pkg
::
CBusAccessor
;
virtual
class
CWishboneAccessor
extends
CBusAccessor
;
static
int
_
null
=
0
;
...
...
@@ -49,7 +51,7 @@ virtual class CWishboneAccessor extends CBusAccessor;
endfunction
// idle
// [master only] generic write(s), blocking
virtual
task
automatic
writem
(
u
int64_t
addr
[]
,
uint64_t
data
[]
,
int
size
=
4
,
ref
int
result
=
_
null
)
;
virtual
task
automatic
writem
(
u
64_vector_t
addr
,
u64_vector_t
data
,
int
size
=
4
,
ref
int
result
=
_
null
)
;
wb_cycle_t
cycle
;
int
i
;
...
...
@@ -77,7 +79,7 @@ virtual class CWishboneAccessor extends CBusAccessor;
endtask
// write
// [master only] generic read(s), blocking
virtual
task
automatic
readm
(
u
int64_t
addr
[]
,
ref
uint64_t
data
[]
,
input
int
size
=
4
,
ref
int
result
=
_
null
)
;
virtual
task
automatic
readm
(
u
64_vector_t
addr
,
ref
u64_vector_t
data
,
input
int
size
=
4
,
ref
int
result
=
_
null
)
;
wb_cycle_t
cycle
;
int
i
;
...
...
@@ -107,21 +109,13 @@ virtual class CWishboneAccessor extends CBusAccessor;
endtask
// readm
virtual
task
automatic
read
(
uint64_t
addr
,
ref
uint64_t
data
,
input
int
size
=
4
,
ref
int
result
=
_
null
)
;
uint64_t
aa
[]
,
da
[]
;
aa
=
new
[
1
]
;
da
=
new
[
1
]
;
aa
[
0
]
=
addr
;
automatic
u64_vector_t
aa
=
'
{
addr
},
da
=
'
{
0
};
readm
(
aa
,
da
,
size
,
result
)
;
data
=
da
[
0
]
;
endtask
virtual
task
automatic
write
(
uint64_t
addr
,
uint64_t
data
,
int
size
=
4
,
ref
int
result
=
_
null
)
;
uint64_t
aa
[]
,
da
[]
;
aa
=
new
[
1
]
;
da
=
new
[
1
]
;
aa
[
0
]
=
addr
;
da
[
0
]
=
data
;
automatic
u64_vector_t
aa
=
'
{
addr
},
da
=
'
{
data
};
writem
(
aa
,
da
,
size
,
result
)
;
endtask
...
...
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