Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit core collection
Commits
e7754b96
Commit
e7754b96
authored
Oct 24, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation models: IWishboneMaster: fixed read bug
parent
f687fcb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
if_wb_master.svh
sim/if_wb_master.svh
+7
-7
No files found.
sim/if_wb_master.svh
View file @
e7754b96
...
...
@@ -108,19 +108,19 @@ interface IWishboneMaster
function
automatic
uint64_t
decode_data
(
uint64_t
addr
,
logic
[
g_data_width
-
1
:
0
]
data
,
int
xfer_size
)
;
int
rem
;
// $display("decode: %x", data
);
// $display("decode: a %x d %x xs %x", addr, data ,xfer_size
);
rem
=
addr
%
xfer_size
;
return
(
data
[
rem
]
>>
(
8
*
rem
))
&
((
1
<<
(
xfer_size
*
8
))
-
1
)
;
return
(
data
>>
(
8
*
rem
))
&
((
1
<<
(
xfer_size
*
8
))
-
1
)
;
endfunction
// decode_data
task
automatic
classic_cycle
(
wb_xfer_t
xfer
[]
,
bit
rw
,
int
n_xfers
,
inout
wb_xfer_t
xfer
[]
,
input
bit
rw
,
in
put
in
t
n_xfers
,
output
wb_cycle_result_t
result
)
;
...
...
@@ -154,7 +154,7 @@ interface IWishboneMaster
end
xfer
[
i
]
.
d
=
decode_data
(
xfer
[
i
]
.
a
,
dat_i
,
xfer
[
i
]
.
size
)
;
cyc
<=
0
;
we
<=
0
;
stb
<=
0
;
...
...
@@ -328,7 +328,7 @@ class CIWBMasterAccessor extends CWishboneAccessor;
endtask
// clear
task
put
(
ref
wb_cycle_t
xfer
)
;
// $display("WBMaster[%d]: PutCycle",g_data_width);
// $display("WBMaster[%d]: PutCycle",g_data_width);
request_queue
.
push_back
(
xfer
)
;
endtask
// put
...
...
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