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
8dd55a0e
Commit
8dd55a0e
authored
2 years ago
by
Luis Horacio Arnaldi
Browse files
Options
Downloads
Patches
Plain Diff
Agrego el core time_trig_gen_v1_0
parent
fab4ee4f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-1
2 additions, 1 deletion
Makefile
cores/time_trig_gen_v1_0/core_config.tcl
+7
-0
7 additions, 0 deletions
cores/time_trig_gen_v1_0/core_config.tcl
cores/time_trig_gen_v1_0/time_trig_gen.vhd
+49
-0
49 additions, 0 deletions
cores/time_trig_gen_v1_0/time_trig_gen.vhd
with
58 additions
and
1 deletion
Makefile
+
2
−
1
View file @
8dd55a0e
...
@@ -60,7 +60,8 @@ CORES = axi_axis_reader_v1_0 \
...
@@ -60,7 +60,8 @@ CORES = axi_axis_reader_v1_0 \
pps_gen_v1_1
\
pps_gen_v1_1
\
pwm_gen_v1_0
\
pwm_gen_v1_0
\
ramp_gen_v1_0
\
ramp_gen_v1_0
\
selector_v1_0
selector_v1_0
\
time_trig_gen_v1_0
VIVADO
=
vivado
-nolog
-nojournal
-mode
batch
VIVADO
=
vivado
-nolog
-nojournal
-mode
batch
XSCT
=
xsct
XSCT
=
xsct
...
...
This diff is collapsed.
Click to expand it.
cores/time_trig_gen_v1_0/core_config.tcl
0 → 100644
+
7
−
0
View file @
8dd55a0e
set display_name
{
Time Trigger Generator
}
set core
[
ipx::current_core
]
set_property DISPLAY_NAME $display_name $core
set_property DESCRIPTION $display_name $core
This diff is collapsed.
Click to expand it.
cores/time_trig_gen_v1_0/time_trig_gen.vhd
0 → 100644
+
49
−
0
View file @
8dd55a0e
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
entity
time_trig_gen
is
port
(
aclk
:
in
std_logic
;
aresetn
:
in
std_logic
;
cfg_data
:
in
std_logic_vector
(
32-1
downto
0
);
trig_o
:
out
std_logic
);
end
time_trig_gen
;
architecture
rtl
of
time_trig_gen
is
signal
cntr_reg
,
cntr_next
:
std_logic_vector
(
32-1
downto
0
);
signal
trig_reg
,
trig_next
:
std_logic
;
signal
comp_reg
,
comp_next
:
std_logic
;
begin
process
(
aclk
)
begin
if
rising_edge
(
aclk
)
then
if
(
aresetn
=
'0'
)
then
cntr_reg
<=
(
others
=>
'0'
);
trig_reg
<=
'0'
;
comp_reg
<=
'0'
;
else
cntr_reg
<=
cntr_next
;
trig_reg
<=
trig_next
;
comp_reg
<=
comp_next
;
end
if
;
end
if
;
end
process
;
comp_next
<=
'0'
when
(
unsigned
(
cntr_reg
)
=
unsigned
(
cfg_data
)
-1
)
else
'1'
;
cntr_next
<=
std_logic_vector
(
unsigned
(
cntr_reg
)
+
1
)
when
(
comp_reg
=
'1'
)
else
(
others
=>
'0'
)
when
(
comp_reg
=
'0'
)
else
--reset
cntr_reg
;
trig_next
<=
'1'
when
(
unsigned
(
cntr_reg
)
=
unsigned
(
cfg_data
)
-1
)
else
'0'
;
trig_o
<=
trig_reg
;
end
rtl
;
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