OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [rtl/] [vlib/] [rbus/] [rbdlib.vhd] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 36 wfjm
-- $Id: rbdlib.vhd 758 2016-04-02 18:01:39Z mueller $
2 9 wfjm
--
3 36 wfjm
-- Copyright 2010-2016 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 9 wfjm
--
5
-- This program is free software; you may redistribute and/or modify it under
6
-- the terms of the GNU General Public License as published by the Free
7
-- Software Foundation, either version 2, or at your option any later version.
8
--
9
-- This program is distributed in the hope that it will be useful, but
10
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
-- for complete details.
13
--
14
------------------------------------------------------------------------------
15
-- Package Name:   rbdlib
16
-- Description:    Definitions for rbus devices
17
--
18
-- Dependencies:   -
19 36 wfjm
-- Tool versions:  xst 12.1-14.7; viv 2014.4-2015.4; ghdl 0.29-0.33
20 9 wfjm
--
21
-- Revision History: 
22
-- Date         Rev Version  Comment
23 36 wfjm
-- 2016-04-02   758   4.1    add rbd_usracc
24 27 wfjm
-- 2014-09-13   593   4.0    use new rlink v4 iface and 4 bit STAT
25
-- 2014-08-15   583   3.5    rb_mreq addr now 16 bit
26 13 wfjm
-- 2011-11-19   427   1.2.1  now numeric_std clean
27 9 wfjm
-- 2010-12-29   351   1.2    new address layout; add rbd_timer
28
-- 2010-12-27   349   1.1    now correct defs for _rbmon and _eyemon
29
-- 2010-12-04   343   1.0    Initial version
30
------------------------------------------------------------------------------
31
--
32 27 wfjm
-- two devices have standard addresses
33
--   rbd_rbmon     x"ffe8"
34
--   rbd_tester    x"ffe0"
35 9 wfjm
--
36
 
37
 
38
library ieee;
39
use ieee.std_logic_1164.all;
40 13 wfjm
use ieee.numeric_std.all;
41 9 wfjm
 
42
use work.slvtypes.all;
43
use work.rblib.all;
44
 
45
package rbdlib is
46 13 wfjm
 
47 36 wfjm
constant rbaddr_usracc : slv16 := x"fffa"; -- fffa/8: 1111 1111 1111 1010
48 28 wfjm
constant rbaddr_rbmon  : slv16 := x"ffe8"; -- ffe8/8: 1111 1111 1110 1xxx
49
constant rbaddr_tester : slv16 := x"ffe0"; -- ffe0/8: 1111 1111 1110 0xxx
50 9 wfjm
 
51
component rbd_tester is                 -- rbus dev: rbus tester
52
                                        -- complete rbus_aif interface
53
  generic (
54 27 wfjm
    RB_ADDR : slv16 := rbaddr_tester);
55 9 wfjm
  port (
56
    CLK  : in slbit;                    -- clock
57
    RESET : in slbit;                   -- reset
58
    RB_MREQ : in rb_mreq_type;          -- rbus: request
59
    RB_SRES : out rb_sres_type;         -- rbus: response
60
    RB_LAM : out slv16;                 -- rbus: look at me
61 27 wfjm
    RB_STAT : out slv4                  -- rbus: status flags
62 9 wfjm
  );
63
end component;
64
 
65
component rbd_rbmon is                  -- rbus dev: rbus monitor
66
  generic (
67 27 wfjm
    RB_ADDR : slv16 := rbaddr_rbmon;
68 30 wfjm
    AWIDTH : natural := 9);
69 9 wfjm
  port (
70
    CLK  : in slbit;                    -- clock
71
    RESET : in slbit;                   -- reset
72
    RB_MREQ : in rb_mreq_type;          -- rbus: request
73
    RB_SRES : out rb_sres_type;         -- rbus: response
74
    RB_SRES_SUM : in rb_sres_type       -- rbus: response (sum for monitor)
75
  );
76
end component;
77
 
78
component rbd_eyemon is                 -- rbus dev: eye monitor for serport's
79
  generic (
80 27 wfjm
    RB_ADDR : slv16 := (others=>'0');
81 13 wfjm
    RDIV : slv8 := (others=>'0'));
82 9 wfjm
  port (
83
    CLK  : in slbit;                    -- clock
84
    RESET : in slbit;                   -- reset
85
    RB_MREQ : in rb_mreq_type;          -- rbus: request
86
    RB_SRES : out rb_sres_type;         -- rbus: response
87
    RXSD : in slbit;                    -- rx: serial data
88
    RXACT : in slbit                    -- rx: active (start seen)
89
  );
90
end component;
91
 
92 27 wfjm
component rbd_bram is                   -- rbus dev: bram test target
93
                                        -- incomplete rbus_aif interface
94
  generic (
95
    RB_ADDR : slv16 := (others=>'0'));
96
  port (
97
    CLK  : in slbit;                    -- clock
98
    RESET : in slbit;                   -- reset
99
    RB_MREQ : in rb_mreq_type;          -- rbus: request
100
    RB_SRES : out rb_sres_type          -- rbus: response
101
  );
102
end component;
103
 
104 9 wfjm
component rbd_timer is                  -- rbus dev: usec precision timer
105
  generic (
106 27 wfjm
    RB_ADDR : slv16 := (others=>'0'));
107 9 wfjm
  port (
108
    CLK  : in slbit;                    -- clock
109
    CE_USEC : in slbit;                 -- usec pulse
110
    RESET : in slbit;                   -- reset
111
    RB_MREQ : in rb_mreq_type;          -- rbus: request
112
    RB_SRES : out rb_sres_type;         -- rbus: response
113
    DONE : out slbit;                   -- mark last timer cycle
114
    BUSY : out slbit                    -- timer running
115
  );
116
end component;
117
 
118 36 wfjm
component rbd_usracc is                 -- rbus dev: return usr_access register
119
  generic (
120
    RB_ADDR : slv16 := rbaddr_usracc);
121
  port (
122
    CLK  : in slbit;                    -- clock
123
    RB_MREQ : in rb_mreq_type;          -- rbus: request
124
    RB_SRES : out rb_sres_type          -- rbus: response
125
  );
126
end component;
127
 
128 9 wfjm
end package rbdlib;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.