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
4aa20587
Commit
4aa20587
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
fixup! sras: size improvements
parent
091e91fd
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
+19
-15
19 additions, 15 deletions
src/frontend/sras.sv
with
19 additions
and
15 deletions
src/frontend/sras.sv
+
19
−
15
View file @
4aa20587
...
@@ -60,16 +60,17 @@ module sras #(
...
@@ -60,16 +60,17 @@ 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
)
begin
if
(
overflow
||
prev_plus_one
==
'0
||
pp_plus_one
==
'0
)
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
ovf_counter_d
[
ptr_spec_d
]
=
ovf_counter_q
[
ptr_spec_q
]
-
1'b1
;
if
((
prev_plus_one
==
'0
||
pp_plus_one
==
'0
)
&&
begin_spec_i
)
begin
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
...
@@ -82,14 +83,17 @@ module sras #(
...
@@ -82,14 +83,17 @@ 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
&&
!
overflow
&&
prev_plus_one
!=
'0
&&
pp_plus_one
!=
'0
)
begin
if
(
push_i
&&
!
pop_i
)
begin
tos_d
[
ptr_spec_d
]
=
prev_plus_one
;
if
(
!
overflow
&&
prev_plus_one
!=
'0
&&
pp_plus_one
!=
'0
)
begin
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.
Ghost User
@ghost
mentioned in commit
fa209d0a
·
8 months ago
mentioned in commit
fa209d0a
mentioned in commit fa209d0aaf85538a7408d5e4fe5f8c70f106f729
Toggle commit list
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