experimental

This commit is contained in:
Markus Fröschle
2014-12-23 08:59:40 +00:00
parent 1f50d16cfc
commit a4835a305c

View File

@@ -6,18 +6,15 @@ PACKAGE io_register_pkg IS
TYPE access_width_t IS (LONGWORD, WORD, BYTE); TYPE access_width_t IS (LONGWORD, WORD, BYTE);
COMPONENT io_register IS COMPONENT io_register IS
/*
GENERIC GENERIC
( (
NULL address : IN UNSIGNED (31 DOWNTO 0);
address_mask : IN UNSIGNED (31 DOWNTO 0)
); );
*/
PORT PORT
( (
adress : IN UNSIGNED (31 DOWNTO 0); address_bus : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
address_mask : IN UNSIGNED (31 DOWNTO 0); access_type : IN access_width_t
access_type : IN access_width_t
); );
END COMPONENT; END COMPONENT;
END PACKAGE; END PACKAGE;
@@ -30,20 +27,25 @@ LIBRARY work;
USE work.io_register_pkg.ALL; USE work.io_register_pkg.ALL;
ENTITY io_register IS ENTITY io_register IS
/*
GENERIC GENERIC
( (
NULL address : IN UNSIGNED (31 DOWNTO 0);
address_mask : IN UNSIGNED (31 DOWNTO 0)
); );
*/
PORT PORT
( (
adress : IN UNSIGNED (31 DOWNTO 0); address_bus : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
address_mask : IN UNSIGNED (31 DOWNTO 0);
access_type : IN access_width_t access_type : IN access_width_t
); );
END ENTITY io_register; END ENTITY io_register;
ARCHITECTURE rtl OF io_register IS ARCHITECTURE rtl OF io_register IS
SIGNAL sel : STD_LOGIC := '0';
BEGIN BEGIN
register_select : PROCESS
BEGIN
IF address_bus AND address_mask = address AND address_mask THEN
sel <= '1';
END IF;
END PROCESS register_select;
END rtl; END rtl;