Line 1... |
Line 1... |
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
--
|
--
|
-- The Port 2 unit.
|
-- The Port 2 unit.
|
-- Implements the Port 2 logic.
|
-- Implements the Port 2 logic.
|
--
|
--
|
-- $Id: p2.vhd,v 1.4 2004-04-24 23:44:25 arniml Exp $
|
-- $Id: p2.vhd,v 1.5 2004-05-17 13:52:46 arniml Exp $
|
--
|
--
|
-- All rights reserved
|
-- All rights reserved
|
--
|
--
|
-- Redistribution and use in source and synthezised forms, with or without
|
-- Redistribution and use in source and synthezised forms, with or without
|
-- modification, are permitted provided that the following conditions are met:
|
-- modification, are permitted provided that the following conditions are met:
|
Line 168... |
Line 168... |
read_exp_i)
|
read_exp_i)
|
begin
|
begin
|
data_o <= (others => bus_idle_level_c);
|
data_o <= (others => bus_idle_level_c);
|
|
|
if read_p2_i then
|
if read_p2_i then
|
data_o <= p2_i;
|
if read_reg_i then
|
elsif read_reg_i then
|
|
data_o <= p2_q;
|
data_o <= p2_q;
|
elsif read_exp_i then
|
elsif read_exp_i then
|
data_o <= "0000" & p2_i(nibble_t'range);
|
data_o <= "0000" & p2_i(nibble_t'range);
|
|
else
|
|
data_o <= p2_i;
|
|
end if;
|
end if;
|
end if;
|
|
|
end process p2_data;
|
end process p2_data;
|
--
|
--
|
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
Line 192... |
Line 194... |
|
|
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
-- File History:
|
-- File History:
|
--
|
--
|
-- $Log: not supported by cvs2svn $
|
-- $Log: not supported by cvs2svn $
|
|
-- Revision 1.4 2004/04/24 23:44:25 arniml
|
|
-- move from std_logic_arith to numeric_std
|
|
--
|
-- Revision 1.3 2004/03/29 19:39:58 arniml
|
-- Revision 1.3 2004/03/29 19:39:58 arniml
|
-- rename pX_limp to pX_low_imp
|
-- rename pX_limp to pX_low_imp
|
--
|
--
|
-- Revision 1.2 2004/03/28 13:11:43 arniml
|
-- Revision 1.2 2004/03/28 13:11:43 arniml
|
-- rework Port 2 expander handling
|
-- rework Port 2 expander handling
|