decode stage die erste
[calu.git] / cpu / src / common_pkg.vhd
index 0bd0be722821852838825963195c85a70163620d..01548e44bdad09ec854e51b231e2f9b37756cd67 100644 (file)
@@ -5,8 +5,11 @@ use IEEE.numeric_std.all;
 
 package common_pkg is
        
-       constant WORD_WIDTH  : INTEGER := 32;
-       constant BYTE_WIDTH  : INTEGER :=  8;
+       constant WORD_WIDTH   : INTEGER := 32;
+       constant HWORD_WIDTH  : INTEGER := 16;
+       constant BYTE_WIDTH   : INTEGER :=  8;
+       constant OPCODE_WIDTH : INTEGER :=  5;
+       constant DISPL_WIDTH  : INTEGER := 15;
 
        constant INSTR_ADDR_WIDTH       : INTEGER := 32;
        constant PHYS_INSTR_ADDR_WIDTH  : INTEGER := 11;
@@ -20,6 +23,8 @@ package common_pkg is
        subtype gp_register_t is std_logic_vector(WORD_WIDTH-1 downto 0);
 
        subtype data_ram_word_t is std_logic_vector(WORD_WIDTH-1 downto 0);
-       subtype data_ram_addr_t is std_logic_vecotr(DATA_ADDR_WIDTH-1 downto 0);
+       subtype data_ram_addr_t is std_logic_vector(DATA_ADDR_WIDTH-1 downto 0);
+
+       subtype opcode_t is std_logic_vector(OPCODE_WIDTH-1 downto 0);
        
 end package common_pkg;