Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rp Ecosystem
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
LAGO
Software
Rp Ecosystem
Commits
e0f904e7
Commit
e0f904e7
authored
2 years ago
by
Luis Horacio Arnaldi
Browse files
Options
Downloads
Patches
Plain Diff
Agrego el core axis_trigger
parent
0f8edafd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cores/axis_trigger_v1_0/axis_trigger.vhd
+56
-0
56 additions, 0 deletions
cores/axis_trigger_v1_0/axis_trigger.vhd
cores/axis_trigger_v1_0/core_config.tcl
+17
-0
17 additions, 0 deletions
cores/axis_trigger_v1_0/core_config.tcl
with
73 additions
and
0 deletions
cores/axis_trigger_v1_0/axis_trigger.vhd
0 → 100644
+
56
−
0
View file @
e0f904e7
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
entity
axis_trigger
is
generic
(
AXIS_TDATA_WIDTH
:
natural
:
=
32
;
AXIS_TDATA_SIGNED
:
string
:
=
"FALSE"
);
port
(
-- System signals
aclk
:
in
std_logic
;
pol_data
:
in
std_logic
;
msk_data
:
in
std_logic_vector
(
AXIS_TDATA_WIDTH
-1
downto
0
);
lvl_data
:
in
std_logic_vector
(
AXIS_TDATA_WIDTH
-1
downto
0
);
trg_flag
:
out
std_logic
;
-- Slave side
s_axis_tready
:
out
std_logic
;
s_axis_tdata
:
in
std_logic_vector
(
AXIS_TDATA_WIDTH
-1
downto
0
);
s_axis_tvalid
:
in
std_logic
);
end
axis_trigger
;
architecture
rtl
of
axis_trigger
is
signal
int_comp_reg
:
std_logic_vector
(
1
downto
0
);
signal
int_comp_wire
:
std_logic
;
begin
SIGNED_G
:
if
(
AXIS_TDATA_SIGNED
=
"TRUE"
)
generate
int_comp_wire
<=
'1'
when
signed
(
s_axis_tdata
and
msk_data
)
>=
signed
(
lvl_data
)
else
'0'
;
end
generate
;
UNSIGNED_G
:
if
(
AXIS_TDATA_SIGNED
=
"FALSE"
)
generate
int_comp_wire
<=
'1'
when
unsigned
(
s_axis_tdata
and
msk_data
)
>=
unsigned
(
lvl_data
)
else
'0'
;
end
generate
;
process
(
aclk
)
begin
if
(
rising_edge
(
aclk
))
then
if
(
s_axis_tvalid
=
'1'
)
then
int_comp_reg
<=
int_comp_reg
(
0
)
&
int_comp_wire
;
end
if
;
end
if
;
end
process
;
s_axis_tready
<=
'1'
;
trg_flag
<=
s_axis_tvalid
and
(
pol_data
xor
int_comp_reg
(
0
))
and
(
pol_data
xor
not
(
int_comp_reg
(
1
)));
end
rtl
;
This diff is collapsed.
Click to expand it.
cores/axis_trigger_v1_0/core_config.tcl
0 → 100644
+
17
−
0
View file @
e0f904e7
set display_name
{
AXI4-Stream Trigger
}
set core
[
ipx::current_core
]
set_property DISPLAY_NAME $display_name $core
set_property DESCRIPTION $display_name $core
core_parameter AXIS_TDATA_WIDTH
{
AXIS TDATA WIDTH
}
{
Width of the S_AXIS data bus.
}
core_parameter AXIS_TDATA_SIGNED
{
AXIS_TDATA_SIGNED
}
{
If TRUE, the S_AXIS data are signed values.
}
set bus
[
ipx::get_bus_interfaces -of_objects $core s_axis
]
set_property NAME S_AXIS $bus
set_property INTERFACE_MODE slave $bus
set bus
[
ipx::get_bus_interfaces aclk
]
set parameter
[
ipx::get_bus_parameters -of_objects $bus ASSOCIATED_BUSIF
]
set_property VALUE S_AXIS $parameter
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