Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ccn_packet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
ccn_packet
Commits
6ead1ead
Commit
6ead1ead
authored
Nov 7, 2022
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
Corrections for synthesis
parent
74cc0f5b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
hdl/ccn_pack.vhd
+1
-1
1 addition, 1 deletion
hdl/ccn_pack.vhd
hdl/ccn_unpack.vhd
+1
-0
1 addition, 0 deletions
hdl/ccn_unpack.vhd
hdl/top_ccn_packeter.vhd
+34
-27
34 additions, 27 deletions
hdl/top_ccn_packeter.vhd
hdl/top_ccn_unpacketer.vhd
+21
-12
21 additions, 12 deletions
hdl/top_ccn_unpacketer.vhd
with
57 additions
and
40 deletions
hdl/ccn_pack.vhd
+
1
−
1
View file @
6ead1ead
...
...
@@ -66,7 +66,7 @@ architecture rtl of ccn_pack is
signal
pkt_reg_tuser
:
std_logic_vector
(
G_S_TUSER_W
-1
downto
0
);
-- Sequence detector
signal
prev_seq_r
:
std_logic_vector
(
8
-1
downto
0
);
signal
prev_seq_r
:
std_logic_vector
(
G_S_TUSER_W
-1
downto
0
);
signal
new_seq_valid_r
:
std_logic
;
signal
new_seq
:
std_logic
;
...
...
This diff is collapsed.
Click to expand it.
hdl/ccn_unpack.vhd
+
1
−
0
View file @
6ead1ead
...
...
@@ -131,6 +131,7 @@ begin
);
m_axis_tvalid
<=
wconv_out_tvalid
;
m_axis_tlast
<=
wconv_out_tvalid
;
m_axis_tuser
<=
std_logic_vector
(
frame_cnt
(
m_axis_tuser
'range
));
wconv_in_tvalid
<=
(
not
fsm_dump
)
and
fifo_tvalid
;
...
...
This diff is collapsed.
Click to expand it.
hdl/top_ccn_packeter.vhd
+
34
−
27
View file @
6ead1ead
...
...
@@ -17,7 +17,7 @@ entity top_ccn_packeter is
G_S_TUSER_W
:
positive
;
G_M_TUSER_W
:
positive
;
G_M_TDATA_W
:
positive
;
G_PROTOCOL_ID
:
std_logic_vector
(
7
downto
0
)
G_PROTOCOL_ID
:
positive
);
port
(
-- Asynchronous reset
...
...
@@ -49,8 +49,8 @@ entity top_ccn_packeter is
s_axi_rvalid
:
out
std_logic
;
-- AXIS Packet input
s_axis_clk
:
in
std_logic
;
s_axis_tdata
:
in
std_logic_vector
(
G_S_TDATA_W
-1
downto
0
);
s_axis_tuser
:
in
std_logic_vector
(
G_S_TUSER_W
-1
downto
0
);
s_axis_tvalid
:
in
std_logic
;
s_axis_tready
:
out
std_logic
;
s_axis_tlast
:
in
std_logic
;
...
...
@@ -58,17 +58,23 @@ entity top_ccn_packeter is
-- AXIS Frame output
m_axis_clk
:
in
std_logic
;
-- Only M_AXIS signals on this clk domain
m_axis_tdata
:
out
std_logic_vector
(
G_M_TDATA_W
-1
downto
0
);
m_axis_
tx_
tkeep
:
out
std_logic_vector
(
G_M_TDATA_W
/
8-1
downto
0
);
m_axis_tkeep
:
out
std_logic_vector
(
G_M_TDATA_W
/
8-1
downto
0
);
m_axis_tlast
:
out
std_logic
;
m_axis_tvalid
:
out
std_logic
;
m_axis_tready
:
in
std_logic
;
m_axis_
tx_
tuser
:
out
std_logic_vector
(
G_M_TUSER_W
-1
downto
0
)
m_axis_tuser
:
out
std_logic_vector
(
G_M_TUSER_W
-1
downto
0
)
);
end
entity
top_ccn_packeter
;
architecture
rtl
of
top_ccn_packeter
is
-- Attributes for Xilinx Vivado Block Design
ATTRIBUTE
X_INTERFACE_INFO
:
STRING
;
ATTRIBUTE
X_INTERFACE_INFO
of
m_axis_clk
:
SIGNAL
is
"xilinx.com:signal:clock:1.0 m_axis_clk CLK"
;
ATTRIBUTE
X_INTERFACE_PARAMETER
:
STRING
;
ATTRIBUTE
X_INTERFACE_PARAMETER
of
m_axis_clk
:
SIGNAL
is
"ASSOCIATED_BUSIF m_axis"
;
------------------------
-- SIGNAL DECLARATION --
------------------------
...
...
@@ -137,10 +143,10 @@ begin
G_S_TUSER_W
=>
G_S_TUSER_W
,
G_M_TDATA_W
=>
G_M_TDATA_W
,
G_M_TUSER_W
=>
G_M_TUSER_W
,
G_PROTOCOL_ID
=>
G_PROTOCOL_ID
)
;
G_PROTOCOL_ID
=>
std_logic_vector
(
to_unsigned
(
G_PROTOCOL_ID
,
8
))
)
port
map
(
aclk
=>
s_axis_
clk
,
aclk
=>
a
clk
,
aresetn
=>
aresetn
,
-- Control
...
...
@@ -161,16 +167,17 @@ begin
s_axis_tdata
=>
s_axis_tdata
,
s_axis_tvalid
=>
s_axis_tvalid
,
s_axis_tready
=>
s_axis_tready
,
s_axis_tuser
=>
s_axis_tuser
,
s_axis_tlast
=>
s_axis_tlast
,
-- AXIS Frame output
m_axis_clk
=>
m_axis_
tx_
clk
,
m_axis_tvalid
=>
m_axis_
tx_
tvalid
,
m_axis_tready
=>
m_axis_
tx_
tready
,
m_axis_tdata
=>
m_axis_
tx_
tdata
,
m_axis_tkeep
=>
m_axis_
tx_
tkeep
,
m_axis_tlast
=>
m_axis_
tx_
tlast
,
m_axis_tuser
=>
m_axis_
tx_
tuser
m_axis_clk
=>
m_axis_clk
,
m_axis_tvalid
=>
m_axis_tvalid
,
m_axis_tready
=>
m_axis_tready
,
m_axis_tdata
=>
m_axis_tdata
,
m_axis_tkeep
=>
m_axis_tkeep
,
m_axis_tlast
=>
m_axis_tlast
,
m_axis_tuser
=>
m_axis_tuser
);
...
...
This diff is collapsed.
Click to expand it.
hdl/top_ccn_unpacketer.vhd
+
21
−
12
View file @
6ead1ead
...
...
@@ -16,7 +16,8 @@ entity top_ccn_unpacketer is
G_S_TDATA_W
:
positive
;
G_S_TUSER_W
:
positive
;
G_M_TDATA_W
:
positive
;
G_PROTOCOL_ID
:
std_logic_vector
(
7
downto
0
)
G_M_TUSER_W
:
positive
;
G_PROTOCOL_ID
:
positive
);
port
(
-- Asynchronous reset
...
...
@@ -26,7 +27,7 @@ entity top_ccn_unpacketer is
timeref
:
in
std_logic_vector
(
63
downto
0
);
-- AXI-MM Status and Config
s_axi_clk
:
in
std_logic
;
aclk
:
in
std_logic
;
s_axi_awaddr
:
in
std_logic_vector
(
C_ADDR_WIDTH
-1
downto
0
);
s_axi_awprot
:
in
std_logic_vector
(
2
downto
0
);
s_axi_awvalid
:
in
std_logic
;
...
...
@@ -50,15 +51,15 @@ entity top_ccn_unpacketer is
-- AXIS Frame input
s_axis_clk
:
in
std_logic
;
-- Only S_AXIS signals on this clk domain
s_axis_tdata
:
in
std_logic_vector
(
G_S_TDATA_W
-1
downto
0
);
s_axis_
tx_
tkeep
:
in
std_logic_vector
(
G_S_TDATA_W
/
8-1
downto
0
);
s_axis_tkeep
:
in
std_logic_vector
(
G_S_TDATA_W
/
8-1
downto
0
);
s_axis_tlast
:
in
std_logic
;
s_axis_tvalid
:
in
std_logic
;
s_axis_tready
:
out
std_logic
;
s_axis_
tx_
tuser
:
in
std_logic_vector
(
G_S_TUSER_W
-1
downto
0
);
s_axis_tuser
:
in
std_logic_vector
(
G_S_TUSER_W
-1
downto
0
);
-- AXIS Packet output
m_axis_clk
:
in
std_logic
;
m_axis_tdata
:
out
std_logic_vector
(
G_M_TDATA_W
-1
downto
0
);
m_axis_tuser
:
out
std_logic_vector
(
G_M_TUSER_W
-1
downto
0
);
m_axis_tvalid
:
out
std_logic
;
m_axis_tready
:
in
std_logic
;
m_axis_tlast
:
out
std_logic
...
...
@@ -68,6 +69,12 @@ end entity top_ccn_unpacketer;
architecture
struct
of
top_ccn_unpacketer
is
-- Attributes for Xilinx Vivado Block Design
ATTRIBUTE
X_INTERFACE_INFO
:
STRING
;
ATTRIBUTE
X_INTERFACE_INFO
of
s_axis_clk
:
SIGNAL
is
"xilinx.com:signal:clock:1.0 s_axis_clk CLK"
;
ATTRIBUTE
X_INTERFACE_PARAMETER
:
STRING
;
ATTRIBUTE
X_INTERFACE_PARAMETER
of
s_axis_clk
:
SIGNAL
is
"ASSOCIATED_BUSIF s_axis"
;
------------------------
-- SIGNAL DECLARATION --
------------------------
...
...
@@ -75,8 +82,8 @@ architecture struct of top_ccn_unpacketer is
signal
mac_src
:
std_logic_vector
(
47
downto
0
);
-- AXIMM
signal
addrmap_i
:
t_addrmap_ccn_unpackter_in
;
signal
addrmap_o
:
t_addrmap_ccn_unpackter_out
;
signal
addrmap_i
:
t_addrmap_ccn_unpack
e
ter_in
;
signal
addrmap_o
:
t_addrmap_ccn_unpack
e
ter_out
;
signal
s_axi_m2s
:
t_ccn_unpacketer_m2s
;
signal
s_axi_s2m
:
t_ccn_unpacketer_s2m
;
...
...
@@ -136,10 +143,11 @@ begin
G_S_TDATA_W
=>
G_S_TDATA_W
,
G_S_TUSER_W
=>
G_S_TUSER_W
,
G_M_TDATA_W
=>
G_M_TDATA_W
,
G_PROTOCOL_ID
=>
G_PROTOCOL_ID
);
G_M_TUSER_W
=>
G_M_TUSER_W
,
G_PROTOCOL_ID
=>
std_logic_vector
(
to_unsigned
(
G_PROTOCOL_ID
,
8
))
)
port
map
(
rstn
=>
rs
tn
,
rstn
=>
arese
tn
,
-- System input
pps
=>
'0'
,
...
...
@@ -164,11 +172,12 @@ begin
s_axis_tlast
=>
s_axis_tlast
,
s_axis_tvalid
=>
s_axis_tvalid
,
s_axis_tready
=>
s_axis_tready
,
s_axis_
tx_
tuser
=>
s_axis_
tx_
tuser
,
s_axis_tuser
=>
s_axis_tuser
,
-- AXIS Packet output
m_axis_clk
=>
m_axis_
clk
,
m_axis_clk
=>
a
clk
,
m_axis_tdata
=>
m_axis_tdata
,
m_axis_tuser
=>
m_axis_tuser
,
m_axis_tvalid
=>
m_axis_tvalid
,
m_axis_tready
=>
m_axis_tready
,
m_axis_tlast
=>
m_axis_tlast
...
...
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