Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
urv-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
urv-core
Commits
e4e81fad
Commit
e4e81fad
authored
Jan 31, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urv_exec.v: fix to allow data memory wait state.
parent
59b9c3ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
urv_exec.v
rtl/urv_exec.v
+10
-5
No files found.
rtl/urv_exec.v
View file @
e4e81fad
...
...
@@ -507,15 +507,16 @@ module urv_exec
w_load_o
<=
0
;
w_store_o
<=
0
;
w_valid_o
<=
0
;
end
else
begin
w_valid_o
<=
!
x_exception
&&
!
x_stall_i
;
end
else
begin
if
(
!
x_stall_i
)
begin
// Stay valid for memory operations
w_valid_o
<=
!
x_exception
;
f_branch_target_o
<=
branch_target
;
w_rd_o
<=
d_rd_i
;
w_rd_value_o
<=
rd_value
;
f_branch_take
<=
branch_take
&&
!
x_kill_i
&&
d_valid_i
;
f_dbg_toggle_o
<=
g_with_hw_debug
&&
d_is_ebreak_i
&&
!
x_kill_i
&&
d_valid_i
;
w_rd_write_o
<=
d_rd_write_i
&&
!
x_kill_i
&&
d_valid_i
&&
!
x_exception
;
...
...
@@ -525,7 +526,11 @@ module urv_exec
w_rd_source_o
<=
d_rd_source_i
;
w_fun_o
<=
d_fun_i
;
w_dm_addr_o
<=
dm_addr
;
end
end
else
if
(
divider_stall_req
||
multiply_stall_req
)
begin
// Do not be valid while the mul/div is working
w_valid_o
<=
0
;
end
end
// else: !if(rst_i)
always
@*
...
...
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