Skip to content
GitLab
Explore
Sign in
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
02259455
Commit
02259455
authored
8 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the definition of the read register.
parent
93c4cfb8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/diag/src/vhdl/diag_data_buffer_dev.vhd
+4
-2
4 additions, 2 deletions
libraries/base/diag/src/vhdl/diag_data_buffer_dev.vhd
with
4 additions
and
2 deletions
libraries/base/diag/src/vhdl/diag_data_buffer_dev.vhd
+
4
−
2
View file @
02259455
...
@@ -103,8 +103,9 @@ END diag_data_buffer_dev;
...
@@ -103,8 +103,9 @@ END diag_data_buffer_dev;
ARCHITECTURE
rtl
OF
diag_data_buffer_dev
IS
ARCHITECTURE
rtl
OF
diag_data_buffer_dev
IS
CONSTANT
c_
mm_factor
:
NATURAL
:
=
ceil_div
(
g_data_w
,
c_word_w
);
-- must be a power of 2 multiple
CONSTANT
c_
version
:
NATURAL
:
=
1
;
CONSTANT
c_mm_factor
:
NATURAL
:
=
ceil_div
(
g_data_w
,
c_word_w
);
-- must be a power of 2 multiple
CONSTANT
c_nof_data_mm
:
NATURAL
:
=
g_nof_data
*
c_mm_factor
;
CONSTANT
c_nof_data_mm
:
NATURAL
:
=
g_nof_data
*
c_mm_factor
;
CONSTANT
g_data_mm_w
:
NATURAL
:
=
g_data_w
/
c_mm_factor
;
CONSTANT
g_data_mm_w
:
NATURAL
:
=
g_data_w
/
c_mm_factor
;
...
@@ -339,7 +340,8 @@ BEGIN
...
@@ -339,7 +340,8 @@ BEGIN
arm_enable
<=
reg_wr_arr
(
2
);
arm_enable
<=
reg_wr_arr
(
2
);
reg_sync_delay
<=
reg_slv_wr
(
4
*
c_word_w
-1
DOWNTO
3
*
c_word_w
);
reg_sync_delay
<=
reg_slv_wr
(
4
*
c_word_w
-1
DOWNTO
3
*
c_word_w
);
reg_slv_rd
<=
reg_sync_delay
&
valid_cnt
&
word_cnt
&
sync_cnt
;
reg_slv_rd
<=
TO_UVEC
(
c_version
,
c_word_w
)
&
TO_UVEC
(
0
,
c_word_w
)
&
TO_UVEC
(
0
,
c_word_w
)
&
TO_UVEC
(
0
,
c_word_w
)
&
reg_sync_delay
&
valid_cnt
&
word_cnt
&
sync_cnt
;
u_word_cnt
:
ENTITY
common_lib
.
common_counter
u_word_cnt
:
ENTITY
common_lib
.
common_counter
PORT
MAP
(
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