Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
RTSD
HDL
Commits
4f03acd0
Commit
4f03acd0
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Correct c_diag_bg_gapsize_w to 31 bit to fit NATURAL range.
parent
6978f56d
No related branches found
No related tags found
1 merge request
!297
Resolve L2SDP-837 "B"
Pipeline
#40468
passed
2 years ago
Stage: simulation
Stage: synthesis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/diag/src/vhdl/diag_pkg.vhd
+3
-1
3 additions, 1 deletion
libraries/base/diag/src/vhdl/diag_pkg.vhd
with
3 additions
and
1 deletion
libraries/base/diag/src/vhdl/diag_pkg.vhd
+
3
−
1
View file @
4f03acd0
...
@@ -106,10 +106,12 @@ PACKAGE diag_pkg IS
...
@@ -106,10 +106,12 @@ PACKAGE diag_pkg IS
CONSTANT
c_diag_bg_reg_adr_w
:
NATURAL
:
=
ceil_log2
(
c_diag_bg_reg_nof_dat
);
CONSTANT
c_diag_bg_reg_adr_w
:
NATURAL
:
=
ceil_log2
(
c_diag_bg_reg_nof_dat
);
CONSTANT
c_diag_bg_reg_adr_span
:
NATURAL
:
=
2
**
c_diag_bg_reg_adr_w
;
CONSTANT
c_diag_bg_reg_adr_span
:
NATURAL
:
=
2
**
c_diag_bg_reg_adr_w
;
-- Use c_diag_bg_gapsize_w = 31 to fit gapsize in 31 bit NATURAL. At 200 MHz
-- clock this allows a gap of 2**31 / 200e6 = 10.7 s
CONSTANT
c_diag_bg_mode_w
:
NATURAL
:
=
8
;
CONSTANT
c_diag_bg_mode_w
:
NATURAL
:
=
8
;
CONSTANT
c_diag_bg_samples_per_packet_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_samples_per_packet_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_blocks_per_sync_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_blocks_per_sync_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_gapsize_w
:
NATURAL
:
=
3
2
;
CONSTANT
c_diag_bg_gapsize_w
:
NATURAL
:
=
3
1
;
CONSTANT
c_diag_bg_mem_adrs_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_mem_adrs_w
:
NATURAL
:
=
24
;
CONSTANT
c_diag_bg_mem_low_adrs_w
:
NATURAL
:
=
c_diag_bg_mem_adrs_w
;
CONSTANT
c_diag_bg_mem_low_adrs_w
:
NATURAL
:
=
c_diag_bg_mem_adrs_w
;
CONSTANT
c_diag_bg_mem_high_adrs_w
:
NATURAL
:
=
c_diag_bg_mem_adrs_w
;
CONSTANT
c_diag_bg_mem_high_adrs_w
:
NATURAL
:
=
c_diag_bg_mem_adrs_w
;
...
...
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