Line 1... |
Line 1... |
-- $Id: rlinktblib.vhd 389 2011-07-07 21:59:00Z mueller $
|
-- $Id: rlinktblib.vhd 444 2011-12-25 10:04:58Z mueller $
|
--
|
--
|
-- Copyright 2007-2010 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
-- Copyright 2007-2011 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
--
|
--
|
-- This program is free software; you may redistribute and/or modify it under
|
-- This program is free software; you may redistribute and/or modify it under
|
-- the terms of the GNU General Public License as published by the Free
|
-- the terms of the GNU General Public License as published by the Free
|
-- Software Foundation, either version 2, or at your option any later version.
|
-- Software Foundation, either version 2, or at your option any later version.
|
--
|
--
|
Line 14... |
Line 14... |
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- Package Name: rlinktblib
|
-- Package Name: rlinktblib
|
-- Description: rlink test environment components
|
-- Description: rlink test environment components
|
--
|
--
|
-- Dependencies: -
|
-- Dependencies: -
|
-- Tool versions: xst 8.1, 8.2, 9.1, 9.2, 11.4, 12.1; ghdl 0.18-0.29
|
-- Tool versions: xst 8.2, 9.1, 9.2, 11.4, 12.1, 13.1; ghdl 0.18-0.29
|
-- Revision History:
|
-- Revision History:
|
-- Date Rev Version Comment
|
-- Date Rev Version Comment
|
|
-- 2011-12-23 444 3.1 new clock iface for tbcore_rlink; drop .._dcm
|
-- 2010-12-29 351 3.0.1 add rbtba_aif;
|
-- 2010-12-29 351 3.0.1 add rbtba_aif;
|
-- 2010-12-24 347 3.0 rename rritblib->rlinktblib, CP_*->RL_*;
|
-- 2010-12-24 347 3.0 rename rritblib->rlinktblib, CP_*->RL_*;
|
-- many rri->rlink renames; drop rbus parts;
|
-- many rri->rlink renames; drop rbus parts;
|
-- 2010-11-13 338 2.5.2 add rritb_core_dcm
|
-- 2010-11-13 338 2.5.2 add rritb_core_dcm
|
-- 2010-06-26 309 2.5.1 add rritb_sres_or_mon
|
-- 2010-06-26 309 2.5.1 add rritb_sres_or_mon
|
Line 123... |
Line 124... |
RB_STAT : out slv3 -- rbus: status flags
|
RB_STAT : out slv3 -- rbus: status flags
|
);
|
);
|
end component;
|
end component;
|
|
|
component tbcore_rlink is -- core of vhpi_cext based test bench
|
component tbcore_rlink is -- core of vhpi_cext based test bench
|
generic (
|
|
CLK_PERIOD : time := 20 ns; -- clock period
|
|
CLK_OFFSET : time := 200 ns; -- clock offset (time to start clock)
|
|
SETUP_TIME : time := 5 ns; -- setup time
|
|
C2OUT_TIME : time := 10 ns); -- clock to output time
|
|
port (
|
port (
|
CLK : out slbit; -- main clock
|
CLK : in slbit; -- control interface clock
|
RX_DATA : out slv8; -- read data (data ext->tb)
|
CLK_STOP : out slbit; -- clock stop trigger
|
RX_VAL : out slbit; -- read data valid (data ext->tb)
|
|
RX_HOLD : in slbit; -- read data hold (data ext->tb)
|
|
TX_DATA : in slv8; -- write data (data tb->ext)
|
|
TX_ENA : in slbit -- write data enable (data tb->ext)
|
|
);
|
|
end component;
|
|
|
|
component tbcore_rlink_dcm is -- dcm aware core of vhpi_cext based tb
|
|
generic (
|
|
CLKOSC_PERIOD : time := 20 ns; -- clock osc period
|
|
CLKOSC_OFFSET : time := 200 ns; -- clock osc offset (time to start clk)
|
|
SETUP_TIME : time := 5 ns; -- setup time
|
|
C2OUT_TIME : time := 10 ns); -- clock to output time
|
|
port (
|
|
CLKOSC : out slbit; -- clock osc
|
|
CLKSYS : in slbit; -- DCM derived system clock
|
|
RX_DATA : out slv8; -- read data (data ext->tb)
|
RX_DATA : out slv8; -- read data (data ext->tb)
|
RX_VAL : out slbit; -- read data valid (data ext->tb)
|
RX_VAL : out slbit; -- read data valid (data ext->tb)
|
RX_HOLD : in slbit; -- read data hold (data ext->tb)
|
RX_HOLD : in slbit; -- read data hold (data ext->tb)
|
TX_DATA : in slv8; -- write data (data tb->ext)
|
TX_DATA : in slv8; -- write data (data tb->ext)
|
TX_ENA : in slbit -- write data enable (data tb->ext)
|
TX_ENA : in slbit -- write data enable (data tb->ext)
|