soft reset
[calu.git] / cpu / src / fetch_stage.vhd
1 library IEEE;
2 use IEEE.std_logic_1164.all;
3 use IEEE.numeric_std.all;
4
5 use work.common_pkg.all;
6 use work.core_pkg.all;
7
8 entity fetch_stage is
9
10         generic (
11                         -- active reset value
12                         RESET_VALUE : std_logic;
13                         -- active logic value
14                         LOGIC_ACT : std_logic
15                         
16                         );
17         port(
18                 --System inputs
19                         clk : in std_logic;
20                         reset : in std_logic;
21                         s_reset : in std_logic;
22                 
23                 --Data inputs
24                         jump_result : in instruction_addr_t;
25                         prediction_result : in instruction_addr_t;
26                         branch_prediction_bit : in std_logic;
27                         alu_jump_bit : in std_logic;
28                         int_req : in interrupt_t;
29                 -- instruction memory program port :D
30                         new_im_data_in : in std_logic;
31                         im_addr : in gp_register_t;
32                         im_data : in gp_register_t;
33
34                 --Data outputs
35                         instruction : out instruction_word_t;
36                         prog_cnt : out instruction_addr_t;
37                 -- debug
38                         led2 : out std_logic
39                 );
40                 
41 end fetch_stage;