Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Uart Transmitter FPGA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamási Benjamin
Uart Transmitter FPGA
Commits
9eb5d0b9
Commit
9eb5d0b9
authored
Oct 18, 2014
by
Tamási Benjamin
Browse files
Options
Downloads
Patches
Plain Diff
another
parent
95a20cbf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
uartop.v
+13
-6
13 additions, 6 deletions
uartop.v
with
13 additions
and
6 deletions
uartop.v
+
13
−
6
View file @
9eb5d0b9
...
@@ -11,6 +11,7 @@ module uartop(
...
@@ -11,6 +11,7 @@ module uartop(
reg
outbuf
;
reg
outbuf
;
reg
[
6
:
0
]
datacntr
;
reg
[
6
:
0
]
datacntr
;
reg
main_en
;
reg
main_en
;
reg
eot
;
// end of transmit
wire
iclk
;
// Internal CLK for correct Baud Rate
wire
iclk
;
// Internal CLK for correct Baud Rate
wire
starten
;
// Main enabler
wire
starten
;
// Main enabler
...
@@ -20,9 +21,7 @@ module uartop(
...
@@ -20,9 +21,7 @@ module uartop(
wire
w_parity
;
wire
w_parity
;
wire
uart_data
;
wire
uart_data
;
wire
[
15
:
0
]
uart_mpx
;
wire
[
15
:
0
]
uart_mpx
;
wire
wordend
;
wire
[
6
:
0
]
data_count
;
wire
[
6
:
0
]
data_count
;
wire
eot
;
// End of transmit
wire
dbnc
;
wire
dbnc
;
assign
uart_mpx
[
0
]
=
0
;
// Start bit
assign
uart_mpx
[
0
]
=
0
;
// Start bit
...
@@ -77,9 +76,9 @@ module uartop(
...
@@ -77,9 +76,9 @@ module uartop(
parity
parity
(
parity
parity
(
.
clk
(
clk
),
.
clk
(
clk
),
.
rst
(
rst
||
word
en
d
),
.
rst
(
rst
||
~
shift
en
),
.
din
(
dout
),
.
din
(
dout
),
.
en
(
iclk
),
.
en
(
iclk
&&
iclk
&&
starten
),
.
par
(
1
),
// Odd Parity
.
par
(
1
),
// Odd Parity
.
q
(
w_parity
)
.
q
(
w_parity
)
);
);
...
@@ -115,9 +114,17 @@ module uartop(
...
@@ -115,9 +114,17 @@ module uartop(
end
end
always
@
(
negedge
clk
)
begin
if
(
rst
)
begin
eot
<=
0
;
end
else
if
(
data_count
==
42
)
begin
eot
<=
1
;
end
else
eot
<=
0
;
end
assign
data_count
=
datacntr
;
assign
data_count
=
datacntr
;
assign
wordend
=
((
data_count
%
6
)
==
0
);
assign
eot
=
(
data_count
==
42
);
assign
starten
=
main_en
;
assign
starten
=
main_en
;
assign
txd
=
outbuf
;
assign
txd
=
outbuf
;
...
...
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