Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Projects
FMC DIO 5ch TTL a
Commits
3f3164f6
Commit
3f3164f6
authored
Sep 11, 2020
by
Jorge Machado
Browse files
Merge branch 'dio_extension' of
https://ohwr.org/project/fmc-dio-5chttla
into dio_extension
parents
4522b6a6
61bdb074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
hdl/modules/wr_dio/imm_pulse_train_gen.vhd
hdl/modules/wr_dio/imm_pulse_train_gen.vhd
+3
-1
hdl/modules/wr_dio/pulse_gen_pl.vhd
hdl/modules/wr_dio/pulse_gen_pl.vhd
+2
-1
No files found.
hdl/modules/wr_dio/imm_pulse_train_gen.vhd
View file @
3f3164f6
...
...
@@ -103,8 +103,10 @@ begin
state
<=
WAIT_ST
;
end
if
;
when
COUNTING
=>
if
(
counter
=
0
)
then
if
counter
=
0
then
state
<=
CAPTURE_PERIOD
;
elsif
dio_pulse_immed_stb_d2
=
'1'
then
state
<=
WAIT_ST
;
else
state
<=
COUNTING
;
counter
<=
counter
-1
;
...
...
hdl/modules/wr_dio/pulse_gen_pl.vhd
View file @
3f3164f6
...
...
@@ -229,7 +229,8 @@ begin -- architecture rtl
pulse_o_internal
<=
'1'
;
counter
<=
unsigned
(
pulse_length_ref
)
-1
;
train_counter
<=
unsigned
(
pulse_period_ref
);
elsif
train_counter
/=
0
then
--load_values <= '1';
elsif
train_counter
>
1
then
train_counter
<=
train_counter
-1
;
pulse_o_internal
<=
'0'
;
load_values
<=
'0'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment