Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
combpm
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
combpm
Commits
c47dd202
Commit
c47dd202
authored
2 years ago
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
WIP: transition package to pkg_bpmframe_stream
parent
371fa51d
Branches
integrate
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/pkg_combpm_stream.vhd
+22
-22
22 additions, 22 deletions
hdl/pkg_combpm_stream.vhd
with
22 additions
and
22 deletions
hdl/pkg_combpm_stream.vhd
+
22
−
22
View file @
c47dd202
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
package
pkg_
com
bpm_stream
is
package
pkg_bpm
frame
_stream
is
----------------------
-- MACRO PARAMETERS --
...
...
@@ -12,7 +12,7 @@ package pkg_combpm_stream is
---------------------------------
-- AXIS MASTER/SLAVE INTERFACE --
---------------------------------
type
t_
com
bpm_axis_m2s
is
record
type
t_bpm
frame
_axis_m2s
is
record
tdest
:
std_logic_vector
(
C_TDEST_W
-1
downto
0
);
tdata
:
std_logic_vector
(
C_TDATA_W
-1
downto
0
);
tlast
:
std_logic
;
...
...
@@ -21,29 +21,29 @@ package pkg_combpm_stream is
--tuser : std_logic_vector(0 downto 0);
--tstrb : std_logic_vector(15 downto 0);
--tkeep : std_logic_vector(15 downto 0);
end
record
t_
com
bpm_axis_m2s
;
end
record
t_bpm
frame
_axis_m2s
;
type
t_
com
bpm_axis_s2m
is
record
type
t_bpm
frame
_axis_s2m
is
record
tready
:
std_logic
;
end
record
t_
com
bpm_axis_s2m
;
end
record
t_bpm
frame
_axis_s2m
;
subtype
t_
com
bpm_m_axis_out
is
t_
com
bpm_axis_m2s
;
subtype
t_
com
bpm_s_axis_in
is
t_
com
bpm_axis_m2s
;
subtype
t_
com
bpm_m_axis_in
is
t_
com
bpm_axis_s2m
;
subtype
t_
com
bpm_s_axis_out
is
t_
com
bpm_axis_s2m
;
subtype
t_bpm
frame
_m_axis_out
is
t_bpm
frame
_axis_m2s
;
subtype
t_bpm
frame
_s_axis_in
is
t_bpm
frame
_axis_m2s
;
subtype
t_bpm
frame
_m_axis_in
is
t_bpm
frame
_axis_s2m
;
subtype
t_bpm
frame
_s_axis_out
is
t_bpm
frame
_axis_s2m
;
------------------------
-- AXIS STREAM PACKET --
------------------------
type
t_
combpm_axis_packet
is
record
type
t_
bpmframe
is
record
pos_x
:
std_logic_vector
(
31
downto
0
);
pos_y
:
std_logic_vector
(
31
downto
0
);
bpm_id
:
std_logic_vector
(
15
downto
0
);
mc_timestamp
:
std_logic_vector
(
39
downto
0
);
fa_seq
:
std_logic_vector
(
7
downto
0
);
end
record
t_
combpm_axis_packet
;
end
record
t_
bpmframe
;
constant
C_
PACKET
_ZERO
:
t_
combpm_axis_packet
:
=
(
constant
C_
BPMFRAME
_ZERO
:
t_
bpmframe
:
=
(
pos_x
=>
(
others
=>
'0'
),
pos_y
=>
(
others
=>
'0'
),
bpm_id
=>
(
others
=>
'0'
),
...
...
@@ -51,27 +51,27 @@ package pkg_combpm_stream is
fa_seq
=>
(
others
=>
'0'
)
);
function
slv2
combpmpacket
(
function
slv2
bpmframe
(
signal
tdata
:
std_logic_vector
(
C_TDATA_W
-1
downto
0
)
)
return
t_
combpm_axis_packet
;
return
t_
bpmframe
;
function
combpmpacket
2slv
(
signal
packet
:
t_
combpm_axis_packet
function
bpmframe
2slv
(
signal
packet
:
t_
bpmframe
)
return
std_logic_vector
;
end
package
;
package
body
pkg_
com
bpm_stream
is
package
body
pkg_bpm
frame
_stream
is
function
slv2
combpmpacket
(
function
slv2
bpmframe
(
signal
tdata
:
std_logic_vector
(
C_TDATA_W
-1
downto
0
)
)
return
t_
combpm_axis_packet
is
variable
packet
:
t_
combpm_axis_packet
;
return
t_
bpmframe
is
variable
packet
:
t_
bpmframe
;
begin
packet
.
pos_x
:
=
tdata
(
31
downto
0
);
packet
.
pos_y
:
=
tdata
(
63
downto
32
);
...
...
@@ -81,8 +81,8 @@ package body pkg_combpm_stream is
return
packet
;
end
function
;
function
combpmpacket
2slv
(
signal
packet
:
t_
combpm_axis_packet
function
bpmframe
2slv
(
signal
packet
:
t_
bpmframe
)
return
std_logic_vector
is
begin
...
...
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