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
dada75d4
Commit
dada75d4
authored
Oct 11, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urv_fetch.v: add g_with_hw_debug parameter to optimize code
parent
8d8f369a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
urv_cpu.v
rtl/urv_cpu.v
+4
-1
urv_fetch.v
rtl/urv_fetch.v
+4
-2
No files found.
rtl/urv_cpu.v
View file @
dada75d4
...
...
@@ -172,6 +172,7 @@ module urv_cpu
urv_fetch
#(
.
g_with_hw_debug
(
g_with_hw_debug
)
,
.
g_with_compressed_insns
(
g_with_compressed_insns
)
)
fetch
...
...
@@ -267,7 +268,9 @@ module urv_cpu
// Register File (RF)
urv_regfile
#(
.
g_with_ecc
(
g_with_ecc
))
#(
.
g_with_ecc
(
g_with_ecc
)
)
regfile
(
.
clk_i
(
clk_i
)
,
...
...
rtl/urv_fetch.v
View file @
dada75d4
...
...
@@ -59,6 +59,7 @@ module urv_fetch
)
;
parameter
g_with_compressed_insns
=
0
;
parameter
g_with_hw_debug
=
0
;
reg
[
31
:
0
]
pc
;
reg
rst_d
;
...
...
@@ -120,7 +121,8 @@ module urv_fetch
f_pc_o
<=
pc
;
pc
<=
pc_next
;
if
(
!
dbg_mode
if
(
g_with_hw_debug
&&
!
dbg_mode
&&
(
dbg_force_i
||
x_dbg_toggle_i
||
pipeline_cnt
!=
0
))
begin
// Enter or entering in debug mode
...
...
@@ -137,7 +139,7 @@ module urv_fetch
else
pipeline_cnt
<=
pipeline_cnt
+
1'b1
;
end
else
if
(
dbg_mode
)
else
if
(
g_with_hw_debug
&&
dbg_mode
)
begin
// In debug mode
if
(
x_dbg_toggle_i
)
...
...
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