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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 wfjm
-- $Id: rbdlib.vhd 672 2015-05-02 21:58:28Z mueller $
2 9 wfjm
--
3 27 wfjm
-- Copyright 2010-2014 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 27 wfjm
-- Tool versions:  xst 12.1-14.7; ghdl 0.29-0.31
20 9 wfjm
--
21
-- Revision History: 
22
-- Date         Rev Version  Comment
23 27 wfjm
-- 2014-09-13   593   4.0    use new rlink v4 iface and 4 bit STAT
24
-- 2014-08-15   583   3.5    rb_mreq addr now 16 bit
25 13 wfjm
-- 2011-11-19   427   1.2.1  now numeric_std clean
26 9 wfjm
-- 2010-12-29   351   1.2    new address layout; add rbd_timer
27
-- 2010-12-27   349   1.1    now correct defs for _rbmon and _eyemon
28
-- 2010-12-04   343   1.0    Initial version
29
------------------------------------------------------------------------------
30
--
31 27 wfjm
-- two devices have standard addresses
32
--   rbd_rbmon     x"ffe8"
33
--   rbd_tester    x"ffe0"
34 9 wfjm
--
35
 
36
 
37
library ieee;
38
use ieee.std_logic_1164.all;
39 13 wfjm
use ieee.numeric_std.all;
40 9 wfjm
 
41
use work.slvtypes.all;
42
use work.rblib.all;
43
 
44
package rbdlib is
45 13 wfjm
 
46 28 wfjm
constant rbaddr_rbmon  : slv16 := x"ffe8"; -- ffe8/8: 1111 1111 1110 1xxx
47
constant rbaddr_tester : slv16 := x"ffe0"; -- ffe0/8: 1111 1111 1110 0xxx
48 9 wfjm
 
49
component rbd_tester is                 -- rbus dev: rbus tester
50
                                        -- complete rbus_aif interface
51
  generic (
52 27 wfjm
    RB_ADDR : slv16 := rbaddr_tester);
53 9 wfjm
  port (
54
    CLK  : in slbit;                    -- clock
55
    RESET : in slbit;                   -- reset
56
    RB_MREQ : in rb_mreq_type;          -- rbus: request
57
    RB_SRES : out rb_sres_type;         -- rbus: response
58
    RB_LAM : out slv16;                 -- rbus: look at me
59 27 wfjm
    RB_STAT : out slv4                  -- rbus: status flags
60 9 wfjm
  );
61
end component;
62
 
63
component rbd_rbmon is                  -- rbus dev: rbus monitor
64
  generic (
65 27 wfjm
    RB_ADDR : slv16 := rbaddr_rbmon;
66 30 wfjm
    AWIDTH : natural := 9);
67 9 wfjm
  port (
68
    CLK  : in slbit;                    -- clock
69
    RESET : in slbit;                   -- reset
70
    RB_MREQ : in rb_mreq_type;          -- rbus: request
71
    RB_SRES : out rb_sres_type;         -- rbus: response
72
    RB_SRES_SUM : in rb_sres_type       -- rbus: response (sum for monitor)
73
  );
74
end component;
75
 
76
component rbd_eyemon is                 -- rbus dev: eye monitor for serport's
77
  generic (
78 27 wfjm
    RB_ADDR : slv16 := (others=>'0');
79 13 wfjm
    RDIV : slv8 := (others=>'0'));
80 9 wfjm
  port (
81
    CLK  : in slbit;                    -- clock
82
    RESET : in slbit;                   -- reset
83
    RB_MREQ : in rb_mreq_type;          -- rbus: request
84
    RB_SRES : out rb_sres_type;         -- rbus: response
85
    RXSD : in slbit;                    -- rx: serial data
86
    RXACT : in slbit                    -- rx: active (start seen)
87
  );
88
end component;
89
 
90 27 wfjm
component rbd_bram is                   -- rbus dev: bram test target
91
                                        -- incomplete rbus_aif interface
92
  generic (
93
    RB_ADDR : slv16 := (others=>'0'));
94
  port (
95
    CLK  : in slbit;                    -- clock
96
    RESET : in slbit;                   -- reset
97
    RB_MREQ : in rb_mreq_type;          -- rbus: request
98
    RB_SRES : out rb_sres_type          -- rbus: response
99
  );
100
end component;
101
 
102 9 wfjm
component rbd_timer is                  -- rbus dev: usec precision timer
103
  generic (
104 27 wfjm
    RB_ADDR : slv16 := (others=>'0'));
105 9 wfjm
  port (
106
    CLK  : in slbit;                    -- clock
107
    CE_USEC : in slbit;                 -- usec pulse
108
    RESET : in slbit;                   -- reset
109
    RB_MREQ : in rb_mreq_type;          -- rbus: request
110
    RB_SRES : out rb_sres_type;         -- rbus: response
111
    DONE : out slbit;                   -- mark last timer cycle
112
    BUSY : out slbit                    -- timer running
113
  );
114
end component;
115
 
116
end package rbdlib;

powered by: WebSVN 2.1.0

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