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
1
Merge Requests
1
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
2769e8f7
Commit
2769e8f7
authored
Oct 24, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation models: IWishboneSlave: added extra cyc line check, removed range warning
parent
e7754b96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
if_wb_slave.svh
sim/if_wb_slave.svh
+10
-5
No files found.
sim/if_wb_slave.svh
View file @
2769e8f7
...
...
@@ -168,11 +168,11 @@ interface IWishboneSlave
c_queue
.
push_back
(
current_cycle
)
;
end
if
(
stb
&&
we
&&
!
stall
)
begin
if
(
stb
&&
we
&&
!
stall
&&
cyc
)
begin
int
oc
,
lzc
,
tzc
;
wb_xfer_t
d
;
oc
=
count_ones
(
sel
,
g_data_width
/
8
)
;
lzc
=
count_leading_zeroes
(
sel
,
g_data_width
/
8
)
;
tzc
=
count_trailing_zeroes
(
sel
,
g_data_width
/
8
)
;
...
...
@@ -195,6 +195,8 @@ interface IWishboneSlave
ack
<=
0
;
end
else
ack
<=
0
;
endtask
// pipelined_fsm
...
...
@@ -218,9 +220,12 @@ interface IWishboneSlave
end
initial
begin
settings
.
mode
=
PIPELINED
;
settings
.
gen_random_stalls
=
1
;
settings
.
stall_prob
=
0.1
;
settings
.
mode
=
PIPELINED
;
settings
.
gen_random_stalls
=
1
;
settings
.
stall_prob
=
0.1
;
settings
.
stall_min_duration
=
1
;
settings
.
stall_max_duration
=
2
;
end
...
...
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