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
605ce929
Commit
605ce929
authored
3 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
processed review comments
parent
75028a53
Branches
Branches containing commit
No related tags found
1 merge request
!124
Resolve L2SDP-271
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/dp/src/vhdl/dp_block_validate_bsn_at_sync.vhd
+12
-23
12 additions, 23 deletions
libraries/base/dp/src/vhdl/dp_block_validate_bsn_at_sync.vhd
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
+11
-22
11 additions, 22 deletions
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
with
23 additions
and
45 deletions
libraries/base/dp/src/vhdl/dp_block_validate_bsn_at_sync.vhd
+
12
−
23
View file @
605ce929
...
...
@@ -102,10 +102,6 @@ ARCHITECTURE rtl OF dp_block_validate_bsn_at_sync IS
SIGNAL
count_reg
:
STD_LOGIC_VECTOR
(
c_mm_reg
.
nof_dat
*
c_mm_reg
.
dat_w
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'0'
);
SIGNAL
mm_cnt_clr
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
mm_cnt_clr_reg
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
mm_cnt_clr_done
:
STD_LOGIC
;
SIGNAL
cnt_clr_en
:
STD_LOGIC
;
SIGNAL
cnt_clr_dat
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
cnt_clr
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
cnt_sync
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
SIGNAL
cnt_sync_en
:
STD_LOGIC
;
...
...
@@ -122,25 +118,18 @@ ARCHITECTURE rtl OF dp_block_validate_bsn_at_sync IS
BEGIN
mm_cnt_clr_reg
<=
(
OTHERS
=>
'0'
)
WHEN
mm_rst
=
'1'
ELSE
mm_cnt_clr
WHEN
rising_edge
(
mm_clk
)
ELSE
mm_cnt_clr_reg
;
gen_err_cnt_clr
:
FOR
I
IN
0
TO
c_nof_regs
-1
GENERATE
mm_cnt_clr
(
I
)
<=
'1'
WHEN
reg_mosi
.
rd
=
'1'
AND
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
I
ELSE
'0'
WHEN
mm_cnt_clr_done
=
'1'
ELSE
mm_cnt_clr_reg
(
I
);
END
GENERATE
;
u_common_reg_cross_cnt_clr
:
ENTITY
common_lib
.
common_reg_cross_domain
gen_cnt_clr
:
FOR
I
IN
0
TO
c_nof_regs
-1
GENERATE
mm_cnt_clr
(
I
)
<=
reg_mosi
.
rd
WHEN
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
I
ELSE
'0'
;
u_common_spulse
:
ENTITY
common_lib
.
common_spulse
PORT
MAP
(
in_rst
=>
mm_rst
,
in_clk
=>
mm_clk
,
in_new
=>
reg_mosi
.
rd
,
in_dat
=>
mm_cnt_clr
,
in_done
=>
mm_cnt_clr_done
,
in_pulse
=>
mm_cnt_clr
(
I
),
out_rst
=>
dp_rst
,
out_clk
=>
dp_clk
,
out_dat
=>
cnt_clr_dat
,
out_new
=>
cnt_clr_en
out_pulse
=>
cnt_clr
(
I
)
);
cnt_clr
<=
cnt_clr_dat
WHEN
cnt_clr_en
=
'1'
ELSE
(
OTHERS
=>
'0'
)
;
END
GENERATE
;
-- discarded counter
cnt_discarded_en
<=
'1'
WHEN
in_sosi
.
sync
=
'1'
AND
bsn_ok
=
'0'
ELSE
'0'
;
...
...
This diff is collapsed.
Click to expand it.
libraries/base/dp/src/vhdl/dp_block_validate_err.vhd
+
11
−
22
View file @
605ce929
...
...
@@ -116,10 +116,6 @@ ARCHITECTURE rtl OF dp_block_validate_err IS
SIGNAL
count_reg
:
STD_LOGIC_VECTOR
(
c_mm_reg
.
nof_dat
*
c_mm_reg
.
dat_w
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'0'
);
SIGNAL
mm_cnt_clr
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
mm_cnt_clr_reg
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'0'
);
SIGNAL
mm_cnt_clr_done
:
STD_LOGIC
;
SIGNAL
cnt_clr_en
:
STD_LOGIC
;
SIGNAL
cnt_clr_dat
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
cnt_clr
:
STD_LOGIC_VECTOR
(
c_nof_regs
-1
DOWNTO
0
);
SIGNAL
cnt_blk
:
STD_LOGIC_VECTOR
(
g_cnt_w
-1
DOWNTO
0
);
SIGNAL
cnt_blk_en
:
STD_LOGIC
;
...
...
@@ -141,25 +137,18 @@ ARCHITECTURE rtl OF dp_block_validate_err IS
BEGIN
mm_cnt_clr_reg
<=
(
OTHERS
=>
'0'
)
WHEN
mm_rst
=
'1'
ELSE
mm_cnt_clr
WHEN
rising_edge
(
mm_clk
)
ELSE
mm_cnt_clr_reg
;
gen_err_cnt_clr
:
FOR
I
IN
0
TO
c_nof_regs
-1
GENERATE
mm_cnt_clr
(
I
)
<=
'1'
WHEN
reg_mosi
.
rd
=
'1'
AND
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
I
ELSE
'0'
WHEN
mm_cnt_clr_done
=
'1'
ELSE
mm_cnt_clr_reg
(
I
);
END
GENERATE
;
u_common_reg_cross_cnt_clr
:
ENTITY
common_lib
.
common_reg_cross_domain
gen_cnt_clr
:
FOR
I
IN
0
TO
c_nof_regs
-1
GENERATE
mm_cnt_clr
(
I
)
<=
reg_mosi
.
rd
WHEN
TO_UINT
(
reg_mosi
.
address
(
c_mm_reg
.
adr_w
-1
DOWNTO
0
))
=
I
ELSE
'0'
;
u_common_spulse
:
ENTITY
common_lib
.
common_spulse
PORT
MAP
(
in_rst
=>
mm_rst
,
in_clk
=>
mm_clk
,
in_new
=>
reg_mosi
.
rd
,
in_dat
=>
mm_cnt_clr
,
in_done
=>
mm_cnt_clr_done
,
in_pulse
=>
mm_cnt_clr
(
I
),
out_rst
=>
dp_rst
,
out_clk
=>
dp_clk
,
out_dat
=>
cnt_clr_dat
,
out_new
=>
cnt_clr_en
out_pulse
=>
cnt_clr
(
I
)
);
cnt_clr
<=
cnt_clr_dat
WHEN
cnt_clr_en
=
'1'
ELSE
(
OTHERS
=>
'0'
)
;
END
GENERATE
;
-- block counter
cnt_blk_en
<=
snk_in
.
eop
WHEN
UNSIGNED
(
cnt_blk
)
<
UNSIGNED
(
c_max_cnt
)
ELSE
'0'
;
...
...
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