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
c7f24395
Commit
c7f24395
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Fit one packet in FIFO.
parent
5e9114d7
No related branches found
Branches containing commit
No related tags found
1 merge request
!241
Use dp_sop instead of mm_done and explained why. This makes the code for...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_block_from_mm_dc.vhd
+8
-3
8 additions, 3 deletions
libraries/base/dp/src/vhdl/dp_block_from_mm_dc.vhd
with
8 additions
and
3 deletions
libraries/base/dp/src/vhdl/dp_block_from_mm_dc.vhd
+
8
−
3
View file @
c7f24395
...
@@ -65,8 +65,13 @@ END dp_block_from_mm_dc;
...
@@ -65,8 +65,13 @@ END dp_block_from_mm_dc;
ARCHITECTURE
str
OF
dp_block_from_mm_dc
IS
ARCHITECTURE
str
OF
dp_block_from_mm_dc
IS
CONSTANT
c_packet_size
:
NATURAL
:
=
g_nof_data
*
g_data_size
;
-- 512 * 2 = 1024 words.
CONSTANT
c_packet_size
:
NATURAL
:
=
g_nof_data
*
g_data_size
;
CONSTANT
c_fifo_size
:
NATURAL
:
=
c_packet_size
*
2
;
-- Fit one packet in FIFO, and less than two, to avoid filling the FIFO with
-- multiple packets in case writing FIFO (mm_clk) is faster than reading
-- FIFO (dp_clk).
CONSTANT
c_fifo_fill
:
NATURAL
:
=
c_packet_size
;
CONSTANT
c_fifo_size
:
NATURAL
:
=
c_packet_size
+
c_packet_size
/
2
;
CONSTANT
c_start_addr_w
:
NATURAL
:
=
c_natural_w
;
CONSTANT
c_start_addr_w
:
NATURAL
:
=
c_natural_w
;
CONSTANT
c_delay_len
:
NATURAL
:
=
c_meta_delay_len
;
CONSTANT
c_delay_len
:
NATURAL
:
=
c_meta_delay_len
;
...
@@ -152,7 +157,7 @@ BEGIN
...
@@ -152,7 +157,7 @@ BEGIN
g_bsn_w
=>
g_bsn_w
,
g_bsn_w
=>
g_bsn_w
,
g_use_bsn
=>
TRUE
,
g_use_bsn
=>
TRUE
,
g_use_sync
=>
TRUE
,
g_use_sync
=>
TRUE
,
g_fifo_fill
=>
c_
packet_size
,
g_fifo_fill
=>
c_
fifo_fill
,
g_fifo_size
=>
c_fifo_size
g_fifo_size
=>
c_fifo_size
)
)
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