fetch und decode kompilierbar, generelle tb, änderung in pkgs, eigene decoder entity
[calu.git] / cpu / src / fetch_stage_b.vhd
index 2dd8e92446af2123e53a0596a918882bf47bb731..e774901a01dc6b93b514d15d9d6e707886ccc8fb 100644 (file)
@@ -4,6 +4,7 @@ use IEEE.numeric_std.all;
 
 use work.core_pkg.all;
 use work.common_pkg.all;
+use work.mem_pkg.all;
 
 architecture behav of fetch_stage is
 
@@ -23,7 +24,7 @@ begin
                )
                
                port map (
-                       sys_clk,
+                       clk,
                        instr_w_addr(PHYS_INSTR_ADDR_WIDTH-1 downto 0),
                        instr_r_addr_nxt(PHYS_INSTR_ADDR_WIDTH-1 downto 0),
                        instr_we,
@@ -31,20 +32,20 @@ begin
                        instr_rd_data
                );
 
-syn: process(sys_clk, reset)
+syn: process(clk, reset)
 
 begin
 
        if (reset = RESET_VALUE) then
                instr_r_addr <= (others => '0');
-       elsif rising_edge(sys_clk) then
+       elsif rising_edge(clk) then
                instr_r_addr <= instr_r_addr_nxt;               
        end if;
        
 end process; 
 
 
-asyn: process(instr_r_addr, jump_result, prediction_result, branch_prediction_bit, alu_jump_bit)
+asyn: process(instr_r_addr, jump_result, prediction_result, branch_prediction_bit, alu_jump_bit, instr_rd_data)
 
 begin