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
98a16adf
Commit
98a16adf
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
controller: force D$ and BP flush on fence.i instructions
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
fd12a3c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/controller.sv
+4
-8
4 additions, 8 deletions
src/controller.sv
with
4 additions
and
8 deletions
src/controller.sv
+
4
−
8
View file @
98a16adf
...
@@ -97,17 +97,13 @@ module controller import ariane_pkg::*; (
...
@@ -97,17 +97,13 @@ module controller import ariane_pkg::*; (
flush_id_o
=
1'b1
;
flush_id_o
=
1'b1
;
flush_ex_o
=
1'b1
;
flush_ex_o
=
1'b1
;
flush_icache_o
=
1'b1
;
flush_icache_o
=
1'b1
;
// this is not needed in the case since we
// Force D$ flushing to avoid issues on the FPGA.
// have a write-through cache in this case
`ifndef
WT_DCACHE
flush_dcache
=
1'b1
;
flush_dcache
=
1'b1
;
fence_active_d
=
1'b1
;
fence_active_d
=
1'b1
;
`endif
flush_bp_o
=
1'b1
;
end
end
// this is not needed in the case since we
// have a write-through cache in this case
`ifndef
WT_DCACHE
// wait for the acknowledge here
// wait for the acknowledge here
if
(
flush_dcache_ack_i
&&
fence_active_q
)
begin
if
(
flush_dcache_ack_i
&&
fence_active_q
)
begin
fence_active_d
=
1'b0
;
fence_active_d
=
1'b0
;
...
@@ -115,7 +111,7 @@ module controller import ariane_pkg::*; (
...
@@ -115,7 +111,7 @@ module controller import ariane_pkg::*; (
end
else
if
(
fence_active_q
)
begin
end
else
if
(
fence_active_q
)
begin
flush_dcache
=
1'b1
;
flush_dcache
=
1'b1
;
end
end
`endif
// ---------------------------------
// ---------------------------------
// SFENCE.VMA
// SFENCE.VMA
// ---------------------------------
// ---------------------------------
...
...
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