w11 - vhd
0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
serport_uart_rxtx.vhd
Go to the documentation of this file.
1
-- $Id: serport_uart_rxtx.vhd 1181 2019-07-08 17:00:50Z mueller $
2
-- SPDX-License-Identifier: GPL-3.0-or-later
3
-- Copyright 2007-2016 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
--
5
------------------------------------------------------------------------------
6
-- Module Name: serport_uart_rxtx - syn
7
-- Description: serial port UART - transmitter + receiver
8
--
9
-- Dependencies: serport_uart_rx
10
-- serport_uart_tx
11
-- Test bench: tb/tb_serport_uart_rxtx
12
-- Target Devices: generic
13
-- Tool versions: ise 8.2-14.7; viv 2014.4-2016.2; ghdl 0.18-0.33
14
-- Revision History:
15
-- Date Rev Version Comment
16
-- 2007-06-24 60 1.0 Initial version
17
------------------------------------------------------------------------------
18
-- NOTE: for test bench usage a copy of all serport_* entities, with _tb
19
-- !!!! appended to the name, has been created in the /tb sub folder.
20
-- !!!! Ensure to update the copy when this file is changed !!
21
22
library
ieee
;
23
use
ieee.std_logic_1164.
all
;
24
use
ieee.numeric_std.
all
;
25
26
use
work.
slvtypes
.
all
;
27
use
work.
serportlib
.
all
;
28
29
entity
serport_uart_rxtx
is
-- serial port uart: rx+tx combo
30
generic
(
31
CDWIDTH
:
positive
:=
13
)
;
-- clk divider width
32
port
(
33
CLK
:
in
slbit
;
-- clock
34
RESET
:
in
slbit
;
-- reset
35
CLKDIV
:
in
slv
(
CDWIDTH
-
1
downto
0
)
;
-- clock divider setting
36
RXSD
:
in
slbit
;
-- receive serial data (uart view)
37
RXDATA
:
out
slv8
;
-- receiver data out
38
RXVAL
:
out
slbit
;
-- receiver data valid
39
RXERR
:
out
slbit
;
-- receiver data error (frame error)
40
RXACT
:
out
slbit
;
-- receiver active
41
TXSD
:
out
slbit
;
-- transmit serial data (uart view)
42
TXDATA
:
in
slv8
;
-- transmit data in
43
TXENA
:
in
slbit
;
-- transmit data enable
44
TXBUSY
:
out
slbit
-- transmit busy
45
)
;
46
end
serport_uart_rxtx
;
47
48
architecture
syn
of
serport_uart_rxtx
is
49
50
begin
51
52
RX :
serport_uart_rx
53
generic
map
(
54
CDWIDTH
=>
CDWIDTH
)
55
port
map
(
56
CLK
=>
CLK
,
57
RESET
=>
RESET
,
58
CLKDIV
=>
CLKDIV
,
59
RXSD
=>
RXSD
,
60
RXDATA
=>
RXDATA
,
61
RXVAL
=>
RXVAL
,
62
RXERR
=>
RXERR
,
63
RXACT
=>
RXACT
64
)
;
65
66
TX :
serport_uart_tx
67
generic
map
(
68
CDWIDTH
=>
CDWIDTH
)
69
port
map
(
70
CLK
=>
CLK
,
71
RESET
=>
RESET
,
72
CLKDIV
=>
CLKDIV
,
73
TXSD
=>
TXSD
,
74
TXDATA
=>
TXDATA
,
75
TXENA
=>
TXENA
,
76
TXBUSY
=>
TXBUSY
77
)
;
78
79
end
syn
;
serport_uart_rx
Definition:
serport_uart_rx.vhd:46
serport_uart_rx.RESET
in RESET slbit
Definition:
serport_uart_rx.vhd:51
serport_uart_rx.RXSD
in RXSD slbit
Definition:
serport_uart_rx.vhd:53
serport_uart_rx.RXERR
out RXERR slbit
Definition:
serport_uart_rx.vhd:56
serport_uart_rx.CDWIDTH
CDWIDTH positive := 13
Definition:
serport_uart_rx.vhd:48
serport_uart_rx.RXACT
out RXACT slbit
Definition:
serport_uart_rx.vhd:58
serport_uart_rx.CLKDIV
in CLKDIV slv( CDWIDTH- 1 downto 0)
Definition:
serport_uart_rx.vhd:52
serport_uart_rx.CLK
in CLK slbit
Definition:
serport_uart_rx.vhd:50
serport_uart_rx.RXDATA
out RXDATA slv8
Definition:
serport_uart_rx.vhd:54
serport_uart_rx.RXVAL
out RXVAL slbit
Definition:
serport_uart_rx.vhd:55
serport_uart_rxtx.syn
Definition:
serport_uart_rxtx.vhd:48
serport_uart_rxtx
Definition:
serport_uart_rxtx.vhd:29
serport_uart_rxtx.RESET
in RESET slbit
Definition:
serport_uart_rxtx.vhd:34
serport_uart_rxtx.RXSD
in RXSD slbit
Definition:
serport_uart_rxtx.vhd:36
serport_uart_rxtx.RXERR
out RXERR slbit
Definition:
serport_uart_rxtx.vhd:39
serport_uart_rxtx.TXENA
in TXENA slbit
Definition:
serport_uart_rxtx.vhd:43
serport_uart_rxtx.CDWIDTH
CDWIDTH positive := 13
Definition:
serport_uart_rxtx.vhd:31
serport_uart_rxtx.RXACT
out RXACT slbit
Definition:
serport_uart_rxtx.vhd:40
serport_uart_rxtx.CLKDIV
in CLKDIV slv( CDWIDTH- 1 downto 0)
Definition:
serport_uart_rxtx.vhd:35
serport_uart_rxtx.TXDATA
in TXDATA slv8
Definition:
serport_uart_rxtx.vhd:42
serport_uart_rxtx.CLK
in CLK slbit
Definition:
serport_uart_rxtx.vhd:33
serport_uart_rxtx.RXDATA
out RXDATA slv8
Definition:
serport_uart_rxtx.vhd:37
serport_uart_rxtx.RXVAL
out RXVAL slbit
Definition:
serport_uart_rxtx.vhd:38
serport_uart_rxtx.TXSD
out TXSD slbit
Definition:
serport_uart_rxtx.vhd:41
serport_uart_rxtx.TXBUSY
out TXBUSY slbit
Definition:
serport_uart_rxtx.vhd:45
serport_uart_tx
Definition:
serport_uart_tx.vhd:31
serport_uart_tx.RESET
in RESET slbit
Definition:
serport_uart_tx.vhd:36
serport_uart_tx.TXENA
in TXENA slbit
Definition:
serport_uart_tx.vhd:40
serport_uart_tx.CDWIDTH
CDWIDTH positive := 13
Definition:
serport_uart_tx.vhd:33
serport_uart_tx.CLKDIV
in CLKDIV slv( CDWIDTH- 1 downto 0)
Definition:
serport_uart_tx.vhd:37
serport_uart_tx.TXDATA
in TXDATA slv8
Definition:
serport_uart_tx.vhd:39
serport_uart_tx.CLK
in CLK slbit
Definition:
serport_uart_tx.vhd:35
serport_uart_tx.TXSD
out TXSD slbit
Definition:
serport_uart_tx.vhd:38
serport_uart_tx.TXBUSY
out TXBUSY slbit
Definition:
serport_uart_tx.vhd:42
serportlib
Definition:
serportlib.vhd:36
slvtypes
Definition:
slvtypes.vhd:28
slvtypes.slbit
std_logic slbit
Definition:
slvtypes.vhd:30
slvtypes.slv8
std_logic_vector( 7 downto 0) slv8
Definition:
slvtypes.vhd:40
slvtypes.slv
std_logic_vector slv
Definition:
slvtypes.vhd:31
vlib
serport
serport_uart_rxtx.vhd
Generated on Thu Feb 9 2023 12:41:06 for w11 - vhd by
1.9.6