Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MINOTAuR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MINOTAuR
MINOTAuR
Commits
fa209d0a
Commit
fa209d0a
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
Revert "fixup! sras: size improvements"
This reverts commit
4aa20587
.
parent
bf6074dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frontend/sras.sv
+15
-19
15 additions, 19 deletions
src/frontend/sras.sv
with
15 additions
and
19 deletions
src/frontend/sras.sv
+
15
−
19
View file @
fa209d0a
...
@@ -60,17 +60,16 @@ module sras #(
...
@@ -60,17 +60,16 @@ module sras #(
ovf_counter_d
=
'0
;
ovf_counter_d
=
'0
;
end
else
if
(
!
bad_spec_i
)
begin
end
else
if
(
!
bad_spec_i
)
begin
if
(
push_i
&&
!
pop_i
)
begin
if
(
push_i
&&
!
pop_i
)
begin
if
(
overflow
||
prev_plus_one
==
'0
||
pp_plus_one
==
'0
)
begin
if
(
overflow
)
begin
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
+
1'b1
;
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
+
1'b1
;
end
else
if
(
prev_plus_one
==
'0
||
pp_plus_one
==
'0
)
begin
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
+
1'b1
;
if
(
begin_spec_i
)
begin
ovf_counter_d
[
ptr_spec_q
]
=
ovf_counter_q
[
ptr_spec_q
]
+
1'b1
;
end
end
end
end
else
if
(
!
push_i
&&
pop_i
&&
ovf_counter_q
[
ptr_spec_q
]
!=
'0
)
begin
if
((
prev_plus_one
==
'0
||
pp_plus_one
==
'0
)
&&
begin_spec_i
)
begin
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
-
1'b1
;
ovf_counter_d
[
ptr_spec_q
]
=
ovf_counter_q
[
ptr_spec_q
]
+
1'b1
;
end
end
else
if
(
!
push_i
&&
pop_i
)
begin
if
(
ovf_counter_q
[
ptr_spec_q
]
!=
'0
)
begin
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
-
1'b1
;
end
end
else
if
(
!
bad_spec_i
&&
begin_spec_i
)
begin
end
else
if
(
!
bad_spec_i
&&
begin_spec_i
)
begin
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
];
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
];
end
end
...
@@ -83,17 +82,14 @@ module sras #(
...
@@ -83,17 +82,14 @@ module sras #(
if
(
flush_i
)
begin
if
(
flush_i
)
begin
tos_d
=
'0
;
tos_d
=
'0
;
end
else
if
(
!
bad_spec_i
)
begin
end
else
if
(
!
bad_spec_i
)
begin
if
(
push_i
&&
!
pop_i
)
begin
if
(
push_i
&&
!
pop_i
&&
!
overflow
&&
prev_plus_one
!=
'0
&&
pp_plus_one
!=
'0
)
begin
if
(
!
overflow
&&
prev_plus_one
!=
'0
&&
pp_plus_one
!=
'0
)
begin
tos_d
[
ptr_spec_d
]
=
prev_plus_one
;
tos_d
[
ptr_spec_d
]
=
prev_plus_one
;
if
(
begin_spec_i
)
begin
if
(
begin_spec_i
)
begin
tos_d
[
ptr_spec_q
]
=
pp_plus_one
;
tos_d
[
ptr_spec_q
]
=
pp_plus_one
;
end
end
end
else
if
(
!
push_i
&&
pop_i
)
begin
if
(
ovf_counter_q
[
ptr_spec_q
]
==
'0
)
begin
tos_d
[
ptr_spec_d
]
=
prev_minus_one
;
end
end
end
else
if
(
!
push_i
&&
pop_i
&&
ovf_counter_q
[
ptr_spec_q
]
==
'0
)
begin
tos_d
[
ptr_spec_d
]
=
prev_minus_one
;
end
else
if
(
!
bad_spec_i
&&
begin_spec_i
)
begin
end
else
if
(
!
bad_spec_i
&&
begin_spec_i
)
begin
tos_d
[
ptr_spec_d
]
=
tos_q
[
ptr_spec_q
];
tos_d
[
ptr_spec_d
]
=
tos_q
[
ptr_spec_q
];
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment