w11 - vhd
0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
rlink_rlbmux.vhd
Go to the documentation of this file.
1
-- $Id: rlink_rlbmux.vhd 1181 2019-07-08 17:00:50Z mueller $
2
-- SPDX-License-Identifier: GPL-3.0-or-later
3
-- Copyright 2012- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
--
5
------------------------------------------------------------------------------
6
-- Module Name: rlink_rlbmux - syn
7
-- Description: rlink rlb multiplexer
8
--
9
-- Dependencies: -
10
-- Test bench: -
11
-- Tool versions: xst 13.3-14.7; ghdl 0.29-0.31
12
--
13
-- Revision History:
14
-- Date Rev Version Comment
15
-- 2012-12-29 466 1.0 Initial version
16
------------------------------------------------------------------------------
17
18
library
ieee
;
19
use
ieee.std_logic_1164.
all
;
20
use
ieee.numeric_std.
all
;
21
use
ieee.std_logic_textio.
all
;
22
use
std.textio.
all
;
23
24
use
work.
slvtypes
.
all
;
25
26
entity
rlink_rlbmux
is
-- rlink rlb multiplexer
27
port
(
28
SEL
:
in
slbit
;
-- port select (0:RLB<->P0; 1:RLB<->P1)
29
RLB_DI
:
out
slv8
;
-- rlb: data in
30
RLB_ENA
:
out
slbit
;
-- rlb: data enable
31
RLB_BUSY
:
in
slbit
;
-- rlb: data busy
32
RLB_DO
:
in
slv8
;
-- rlb: data out
33
RLB_VAL
:
in
slbit
;
-- rlb: data valid
34
RLB_HOLD
:
out
slbit
;
-- rlb: data hold
35
P0_RXDATA
:
in
slv8
;
-- p0: rx data
36
P0_RXVAL
:
in
slbit
;
-- p0: rx valid
37
P0_RXHOLD
:
out
slbit
;
-- p0: rx hold
38
P0_TXDATA
:
out
slv8
;
-- p0: tx data
39
P0_TXENA
:
out
slbit
;
-- p0: tx enable
40
P0_TXBUSY
:
in
slbit
;
-- p0: tx busy
41
P1_RXDATA
:
in
slv8
;
-- p1: rx data
42
P1_RXVAL
:
in
slbit
;
-- p1: rx valid
43
P1_RXHOLD
:
out
slbit
;
-- p1: rx hold
44
P1_TXDATA
:
out
slv8
;
-- p1: tx data
45
P1_TXENA
:
out
slbit
;
-- p1: tx enable
46
P1_TXBUSY
:
in
slbit
-- p1: tx busy
47
)
;
48
end
rlink_rlbmux
;
49
50
51
architecture
syn
of
rlink_rlbmux
is
52
53
begin
54
55
proc_rlmux :
process
(
SEL
,
RLB_DO
,
RLB_VAL
,
RLB_BUSY
,
56
P0_RXDATA
,
P0_RXVAL
,
P0_TXBUSY
,
57
P1_RXDATA
,
P1_RXVAL
,
P1_TXBUSY
)
58
begin
59
60
P0_TXDATA
<=
RLB_DO
;
61
P1_TXDATA
<=
RLB_DO
;
62
63
if
SEL
=
'
0
'
then
64
RLB_DI
<=
P0_RXDATA
;
65
RLB_ENA
<=
P0_RXVAL
;
66
P0_RXHOLD
<=
RLB_BUSY
;
67
P0_TXENA
<=
RLB_VAL
;
68
RLB_HOLD
<=
P0_TXBUSY
;
69
P1_RXHOLD
<=
'
0
'
;
70
P1_TXENA
<=
'
0
'
;
71
else
72
RLB_DI
<=
P1_RXDATA
;
73
RLB_ENA
<=
P1_RXVAL
;
74
P1_RXHOLD
<=
RLB_BUSY
;
75
P1_TXENA
<=
RLB_VAL
;
76
RLB_HOLD
<=
P1_TXBUSY
;
77
P0_RXHOLD
<=
'
0
'
;
78
P0_TXENA
<=
'
0
'
;
79
end
if
;
80
81
end
process
proc_rlmux
;
82
83
end
syn;
rlink_rlbmux.syn
Definition:
rlink_rlbmux.vhd:51
rlink_rlbmux
Definition:
rlink_rlbmux.vhd:26
rlink_rlbmux.P1_RXVAL
in P1_RXVAL slbit
Definition:
rlink_rlbmux.vhd:42
rlink_rlbmux.RLB_DO
in RLB_DO slv8
Definition:
rlink_rlbmux.vhd:32
rlink_rlbmux.P1_RXDATA
in P1_RXDATA slv8
Definition:
rlink_rlbmux.vhd:41
rlink_rlbmux.P1_TXDATA
out P1_TXDATA slv8
Definition:
rlink_rlbmux.vhd:44
rlink_rlbmux.P0_RXVAL
in P0_RXVAL slbit
Definition:
rlink_rlbmux.vhd:36
rlink_rlbmux.RLB_ENA
out RLB_ENA slbit
Definition:
rlink_rlbmux.vhd:30
rlink_rlbmux.P0_RXDATA
in P0_RXDATA slv8
Definition:
rlink_rlbmux.vhd:35
rlink_rlbmux.P1_TXENA
out P1_TXENA slbit
Definition:
rlink_rlbmux.vhd:45
rlink_rlbmux.P1_RXHOLD
out P1_RXHOLD slbit
Definition:
rlink_rlbmux.vhd:43
rlink_rlbmux.RLB_DI
out RLB_DI slv8
Definition:
rlink_rlbmux.vhd:29
rlink_rlbmux.RLB_VAL
in RLB_VAL slbit
Definition:
rlink_rlbmux.vhd:33
rlink_rlbmux.RLB_HOLD
out RLB_HOLD slbit
Definition:
rlink_rlbmux.vhd:34
rlink_rlbmux.P0_RXHOLD
out P0_RXHOLD slbit
Definition:
rlink_rlbmux.vhd:37
rlink_rlbmux.P0_TXDATA
out P0_TXDATA slv8
Definition:
rlink_rlbmux.vhd:38
rlink_rlbmux.P0_TXBUSY
in P0_TXBUSY slbit
Definition:
rlink_rlbmux.vhd:40
rlink_rlbmux.RLB_BUSY
in RLB_BUSY slbit
Definition:
rlink_rlbmux.vhd:31
rlink_rlbmux.SEL
in SEL slbit
Definition:
rlink_rlbmux.vhd:28
rlink_rlbmux.P1_TXBUSY
in P1_TXBUSY slbit
Definition:
rlink_rlbmux.vhd:47
rlink_rlbmux.P0_TXENA
out P0_TXENA slbit
Definition:
rlink_rlbmux.vhd:39
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
vlib
rlink
rlink_rlbmux.vhd
Generated on Thu Feb 9 2023 12:41:05 for w11 - vhd by
1.9.6