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
a59ee550
Commit
a59ee550
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add store_busy.
parent
8abeacdc
No related branches found
Branches containing commit
No related tags found
1 merge request
!339
Resolve L2SDP-959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/reorder/src/vhdl/reorder_store.vhd
+10
-0
10 additions, 0 deletions
libraries/base/reorder/src/vhdl/reorder_store.vhd
with
10 additions
and
0 deletions
libraries/base/reorder/src/vhdl/reorder_store.vhd
+
10
−
0
View file @
a59ee550
...
@@ -47,6 +47,7 @@ use dp_lib.dp_stream_pkg.all;
...
@@ -47,6 +47,7 @@ use dp_lib.dp_stream_pkg.all;
-- ch_cnt = nof_ch_in-1.
-- ch_cnt = nof_ch_in-1.
-- . The store_done signal occurs when the last data of the input_sosi block
-- . The store_done signal occurs when the last data of the input_sosi block
-- is being written, so 1 cycle after the input_sosi.eop.
-- is being written, so 1 cycle after the input_sosi.eop.
-- . The store_busy goes high at in_sosi.sop and goes low after store_done.
entity
reorder_store
is
entity
reorder_store
is
generic
(
generic
(
...
@@ -62,6 +63,7 @@ entity reorder_store is
...
@@ -62,6 +63,7 @@ entity reorder_store is
-- Streaming
-- Streaming
input_sosi
:
in
t_dp_sosi
;
input_sosi
:
in
t_dp_sosi
;
-- Timing
-- Timing
store_busy
:
out
std_logic
;
store_done
:
out
std_logic
;
store_done
:
out
std_logic
;
-- Write databuf control
-- Write databuf control
store_mosi
:
out
t_mem_mosi
store_mosi
:
out
t_mem_mosi
...
@@ -80,6 +82,8 @@ architecture rtl of reorder_store is
...
@@ -80,6 +82,8 @@ architecture rtl of reorder_store is
signal
i_store_mosi
:
t_mem_mosi
;
signal
i_store_mosi
:
t_mem_mosi
;
signal
nxt_store_mosi
:
t_mem_mosi
:
=
c_mem_mosi_rst
;
signal
nxt_store_mosi
:
t_mem_mosi
:
=
c_mem_mosi_rst
;
signal
store_busy_reg
:
std_logic
;
signal
nxt_store_busy
:
std_logic
;
signal
nxt_store_done
:
std_logic
;
signal
nxt_store_done
:
std_logic
;
begin
begin
store_mosi
<=
i_store_mosi
;
store_mosi
<=
i_store_mosi
;
...
@@ -91,16 +95,22 @@ begin
...
@@ -91,16 +95,22 @@ begin
ch_cnt
<=
0
;
ch_cnt
<=
0
;
-- Output registers.
-- Output registers.
i_store_mosi
<=
c_mem_mosi_rst
;
i_store_mosi
<=
c_mem_mosi_rst
;
store_busy_reg
<=
'0'
;
store_done
<=
'0'
;
store_done
<=
'0'
;
elsif
rising_edge
(
clk
)
then
elsif
rising_edge
(
clk
)
then
-- Internal registers.
-- Internal registers.
ch_cnt
<=
nxt_ch_cnt
;
ch_cnt
<=
nxt_ch_cnt
;
-- Output registers.
-- Output registers.
i_store_mosi
<=
nxt_store_mosi
;
i_store_mosi
<=
nxt_store_mosi
;
store_busy_reg
<=
nxt_store_busy
;
store_done
<=
nxt_store_done
;
store_done
<=
nxt_store_done
;
end
if
;
end
if
;
end
process
;
end
process
;
store_busy
<=
nxt_store_busy
or
store_busy_reg
;
nxt_store_busy
<=
'0'
when
ch_cnt
=
0
and
input_sosi
.
valid
=
'0'
else
'1'
;
p_ch_cnt
:
process
(
ch_cnt
,
input_sosi
,
nof_ch_in
)
p_ch_cnt
:
process
(
ch_cnt
,
input_sosi
,
nof_ch_in
)
begin
begin
nxt_store_done
<=
'0'
;
nxt_store_done
<=
'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