Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit core collection
Commits
cf7ae807
Commit
cf7ae807
authored
Sep 18, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_softpll_ng: avoid index error
parent
72796f34
Pipeline
#4870
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
wr_softpll_ng.vhd
modules/wr_softpll_ng/wr_softpll_ng.vhd
+10
-6
No files found.
modules/wr_softpll_ng/wr_softpll_ng.vhd
View file @
cf7ae807
...
...
@@ -522,6 +522,10 @@ begin -- rtl
r_stat_low_fb
,
r_stat_low_ref
,
regs_in
)
begin
regs_out
.
dmtd_stat_cr_valid_i
<=
'0'
;
regs_out
.
dmtd_stat_val_low_i
<=
(
others
=>
'0'
);
regs_out
.
dmtd_stat_val_high_i
<=
(
others
=>
'0'
);
case
regs_in
.
dmtd_stat_cr_chan_sel_o
is
when
"0000"
=>
regs_out
.
dmtd_stat_val_high_i
<=
r_stat_high_ref
(
0
);
...
...
@@ -532,13 +536,13 @@ begin -- rtl
regs_out
.
dmtd_stat_val_low_i
<=
r_stat_low_fb
(
0
);
regs_out
.
dmtd_stat_cr_valid_i
<=
r_stat_valid_fb
(
0
);
when
"0010"
=>
-- fixme: hack
regs_out
.
dmtd_stat_val_high_i
<=
r_stat_high_fb
(
1
);
regs_out
.
dmtd_stat_val_low_i
<=
r_stat_low_fb
(
1
);
regs_out
.
dmtd_stat_cr_valid_i
<=
r_stat_valid_fb
(
1
);
if
g_num_outputs
>
1
then
regs_out
.
dmtd_stat_val_high_i
<=
r_stat_high_fb
(
1
);
regs_out
.
dmtd_stat_val_low_i
<=
r_stat_low_fb
(
1
);
regs_out
.
dmtd_stat_cr_valid_i
<=
r_stat_valid_fb
(
1
);
end
if
;
when
others
=>
regs_out
.
dmtd_stat_cr_valid_i
<=
'0'
;
regs_out
.
dmtd_stat_val_low_i
<=
(
others
=>
'0'
);
regs_out
.
dmtd_stat_val_high_i
<=
(
others
=>
'0'
);
null
;
end
case
;
end
process
;
...
...
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