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
fb6a08ab
Commit
fb6a08ab
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Only clear counts on MM clear write.
parent
cf314bb7
No related branches found
No related tags found
1 merge request
!297
Resolve L2SDP-837 "B"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_strobe_total_count.vhd
+4
-3
4 additions, 3 deletions
libraries/base/dp/src/vhdl/dp_strobe_total_count.vhd
with
4 additions
and
3 deletions
libraries/base/dp/src/vhdl/dp_strobe_total_count.vhd
+
4
−
3
View file @
fb6a08ab
...
...
@@ -26,8 +26,8 @@
-- * g_nof_counts >= 1, maximum c_nof_counts_max = 15
-- There are g_nof_counts in parallel, one clear that clears them all
-- . count any strobe like e.g. sync, sop, valid, error flag, ...
-- . MM
read or
write of clear registers clears all counter immediately,
--
the
clear data value is dont care.
-- . MM write of clear registers clears all counter immediately,
the
-- clear data value is dont care.
-- . the count clips at 2**g_count_w-1 in case of overflow when g_clip =
-- TRUE, else it wraps and continues from 0.
-- * g_count_w <= 64
...
...
@@ -130,7 +130,8 @@ BEGIN
ASSERT
g_nof_counts
<=
c_nof_counts_max
REPORT
"Too many counters to fit REGMAP."
SEVERITY
FAILURE
;
ASSERT
g_count_w
<=
g_mm_w
*
2
REPORT
"Too wide counter to fit REGMAP."
SEVERITY
FAILURE
;
mm_cnt_clr
<=
(
reg_mosi
.
rd
OR
reg_mosi
.
wr
)
WHEN
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
c_clear_adr
ELSE
'0'
;
-- Only clear on MM write, to allow MM read of all register fields without clear
mm_cnt_clr
<=
reg_mosi
.
wr
WHEN
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
c_clear_adr
ELSE
'0'
;
u_common_spulse
:
ENTITY
common_lib
.
common_spulse
PORT
MAP
(
...
...
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