Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
STITCH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Pascal Engeler
STITCH
Commits
54da27a5
Commit
54da27a5
authored
7 months ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Lengthened delay line
parent
3e7611b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stitch_project/stitch/SerialReceiver.vhd
+5
-10
5 additions, 10 deletions
stitch_project/stitch/SerialReceiver.vhd
with
5 additions
and
10 deletions
stitch_project/stitch/SerialReceiver.vhd
+
5
−
10
View file @
54da27a5
...
...
@@ -33,7 +33,7 @@ architecture Behavioral of SerialReceiver is
signal
cmd_received_sig
:
STD_LOGIC
:
=
'0'
;
signal
rxs
:
STD_LOGIC
:
=
'0'
;
signal
rx
s2
:
STD_LOGIC
:
=
'0'
;
signal
rx
_delay_line
:
STD_LOGIC_VECTOR
(
5
downto
0
)
;
signal
serial_data
:
STD_LOGIC_VECTOR
(
9
downto
0
)
:
=
(
others
=>
'0'
);
signal
serial_counter
:
STD_LOGIC_VECTOR
(
9
downto
0
)
:
=
(
others
=>
'0'
);
--baud rate: 115200
...
...
@@ -45,14 +45,9 @@ begin
sanitize_input
:
process
(
clk100
)
begin
if
rising_edge
(
clk100
)
then
rxs
<=
rxs2
;
end
if
;
end
process
;
sanitize_input2
:
process
(
clk100
)
begin
if
rising_edge
(
clk100
)
then
rxs2
<=
s_data_in
;
rx_delay_line
(
5
)
<=
s_data_in
;
rx_delay_line
(
4
downto
0
)
<=
rx_delay_line
(
5
downto
1
);
rxs
<=
rx_delay_line
(
0
);
end
if
;
end
process
;
...
...
@@ -68,7 +63,7 @@ begin
serial_counter
<=
(
others
=>
'0'
);
serial_data
(
8
downto
0
)
<=
serial_data
(
9
downto
1
);
serial_data
(
9
)
<=
NOT
rxs
;
cmd_received_sig
<=
not
serial_data
(
1
);
--this should maybe be serial_data(0)
cmd_received_sig
<=
not
serial_data
(
1
);
--this should maybe be serial_data(0)
update: no, i think this is correct.
else
serial_counter
<=
serial_counter
+
1
;
cmd_received_sig
<=
'0'
;
...
...
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