Line 43... |
Line 43... |
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
--
|
--
|
-- CVS Revision History
|
-- CVS Revision History
|
--
|
--
|
-- $Log: not supported by cvs2svn $
|
-- $Log: not supported by cvs2svn $
|
|
-- Revision 1.2 2004/06/04 15:55:07 gedra
|
|
-- Cleaned up lint warnings.
|
|
--
|
-- Revision 1.1 2004/06/03 17:47:17 gedra
|
-- Revision 1.1 2004/06/03 17:47:17 gedra
|
-- Generic control register. Used in both recevier and transmitter.
|
-- Generic control register. Used in both recevier and transmitter.
|
--
|
--
|
--
|
--
|
|
|
Line 54... |
Line 57... |
use IEEE.std_logic_1164.all;
|
use IEEE.std_logic_1164.all;
|
use IEEE.std_logic_arith.all;
|
use IEEE.std_logic_arith.all;
|
|
|
entity gen_control_reg is
|
entity gen_control_reg is
|
generic (DATA_WIDTH: integer;
|
generic (DATA_WIDTH: integer;
|
ACTIVE_BIT_MASK: std_logic_vector); -- note that this vector is (0 to xx),
|
-- note that this vector is (0 to xx), reverse order
|
port ( -- reverse order
|
ACTIVE_BIT_MASK: std_logic_vector);
|
|
port (
|
clk: in std_logic; -- clock
|
clk: in std_logic; -- clock
|
rst: in std_logic; -- reset
|
rst: in std_logic; -- reset
|
ctrl_wr: in std_logic; -- control register write
|
ctrl_wr: in std_logic; -- control register write
|
ctrl_rd: in std_logic; -- control register read
|
ctrl_rd: in std_logic; -- control register read
|
ctrl_din: in std_logic_vector(DATA_WIDTH - 1 downto 0); -- write data
|
ctrl_din: in std_logic_vector(DATA_WIDTH - 1 downto 0); -- write data
|