f37f3caa21112967db5b5270351480fc58140496
[calu.git] / cpu / src / extension.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.extension_pkg.all;
7 --use work.alu_pkg.all;
8 --use work.gpm_pkg.all;
9
10 entity extension_gpm is
11
12         generic (
13                         -- active reset value
14                         RESET_VALUE : std_logic
15                         );
16         port(
17                 --System inputs
18                         clk :   in std_logic;
19                         reset : in std_logic;
20                 -- general extension interface                  
21                         ext_reg  : in extmod_rec;
22                          data_out : out gp_register_t;
23                 -- Input
24                         psw_nxt : in status_rec;
25                         paddr   : in paddr_t;
26                         pinc    : in std_logic;
27                         pwr_en  : in std_logic;
28                 -- Ouput
29                          psw     : out status_rec;
30                          pval    : out gp_register_t;
31                          pval_nxt : out gp_register_t
32                 );
33                 
34 end extension_gpm;