w11 - vhd
0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
bp_rs232_2line_iob.vhd
Go to the documentation of this file.
1
-- $Id: bp_rs232_2line_iob.vhd 1181 2019-07-08 17:00:50Z mueller $
2
-- SPDX-License-Identifier: GPL-3.0-or-later
3
-- Copyright 2010-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
--
5
------------------------------------------------------------------------------
6
-- Module Name: bp_rs232_2line_iob - syn
7
-- Description: iob's for 2 line rs232 (RXD,TXD only)
8
--
9
-- Dependencies: xlib/iob_reg_i
10
-- xlib/iob_reg_o
11
--
12
-- Test bench: -
13
--
14
-- Target Devices: generic
15
-- Tool versions: xst 11.4-14.7; viv 2014.4; ghdl 0.26-0.31
16
--
17
-- Revision History:
18
-- Date Rev Version Comment
19
-- 2011-07-01 386 1.1 Moved and renamed to bpgen
20
-- 2010-04-17 278 1.0 Initial version (as s3_rs232_iob_int)
21
------------------------------------------------------------------------------
22
--
23
24
library
ieee
;
25
use
ieee.std_logic_1164.
all
;
26
27
use
work.
slvtypes
.
all
;
28
use
work.
xlib
.
all
;
29
30
-- ----------------------------------------------------------------------------
31
32
entity
bp_rs232_2line_iob
is
-- iob's for 2 line rs232 (RXD,TXD)
33
port
(
34
CLK
:
in
slbit
;
-- clock
35
RXD
:
out
slbit
;
-- receive data (board view)
36
TXD
:
in
slbit
;
-- transmit data (board view)
37
I_RXD
:
in
slbit
;
-- pad-i: receive data (board view)
38
O_TXD
:
out
slbit
-- pad-o: transmit data (board view)
39
)
;
40
end
bp_rs232_2line_iob
;
41
42
architecture
syn
of
bp_rs232_2line_iob
is
43
begin
44
45
IOB_RXD :
iob_reg_i
-- line idle=1, so init sync flop =1
46
generic
map
(INIT => '1'
)
47
port
map
(CLK =>
CLK
, CE => '1', DI =>
RXD
, PAD =>
I_RXD
)
;
48
49
IOB_TXD :
iob_reg_o
-- line idle=1, so init sync flop =1
50
generic
map
(INIT => '1'
)
51
port
map
(CLK =>
CLK
, CE => '1', DO =>
TXD
, PAD =>
O_TXD
)
;
52
53
end
syn
;
bp_rs232_2line_iob.syn
Definition:
bp_rs232_2line_iob.vhd:42
bp_rs232_2line_iob
Definition:
bp_rs232_2line_iob.vhd:32
bp_rs232_2line_iob.O_TXD
out O_TXD slbit
Definition:
bp_rs232_2line_iob.vhd:39
bp_rs232_2line_iob.I_RXD
in I_RXD slbit
Definition:
bp_rs232_2line_iob.vhd:37
bp_rs232_2line_iob.TXD
in TXD slbit
Definition:
bp_rs232_2line_iob.vhd:36
bp_rs232_2line_iob.CLK
in CLK slbit
Definition:
bp_rs232_2line_iob.vhd:34
bp_rs232_2line_iob.RXD
out RXD slbit
Definition:
bp_rs232_2line_iob.vhd:35
iob_reg_i
Definition:
iob_reg_i.vhd:25
iob_reg_o
Definition:
iob_reg_o.vhd:25
slvtypes
Definition:
slvtypes.vhd:28
slvtypes.slbit
std_logic slbit
Definition:
slvtypes.vhd:30
xlib
Definition:
xlib.vhd:35
bplib
bpgen
bp_rs232_2line_iob.vhd
Generated on Thu Feb 9 2023 12:41:04 for w11 - vhd by
1.9.6