Fixed some bugs.
[calu.git] / cpu / src / execute_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.alu_pkg.all;
7 use work.gpm_pkg.all;
8
9 entity execute_stage is
10
11         generic (
12                         -- active reset value
13                         RESET_VALUE : std_logic
14                         -- active logic value
15                         --LOGIC_ACT : std_logic;
16                         
17                         );
18         port(
19                 --System inputs
20                         clk : in std_logic;
21                         reset : in std_logic;
22                         dec_instr : in dec_op;
23
24                 --System output
25                         result : out gp_register_t;--reg
26                         result_addr : out gp_addr_t;--reg
27                         addr : out word_t; --memaddr
28                         data : out gp_register_t; --mem data --ureg
29                         alu_jump : out std_logic;--reg
30                         brpr  : out std_logic;  --reg
31                         wr_en : out std_logic;--regop --reg
32                         dmem  : out std_logic;--memop
33                         dmem_write_en : out std_logic;
34                         hword  : out std_logic;
35                         byte_s : out std_logic
36                 );
37                 
38 end execute_stage;