projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modified: first approach to pointers. not finished, alu missing etc.
[calu.git]
/
cpu
/
src
/
alu_pkg.vhd
diff --git
a/cpu/src/alu_pkg.vhd
b/cpu/src/alu_pkg.vhd
index bb15c6a27324f08d92721a6f1479fd863aa971e0..7a9564e913149c6f0b4c25a407f75234b3d5c5df 100755
(executable)
--- a/
cpu/src/alu_pkg.vhd
+++ b/
cpu/src/alu_pkg.vhd
@@
-15,6
+15,10
@@
package alu_pkg is
sign : std_logic;
carry : std_logic;
end record;
sign : std_logic;
carry : std_logic;
end record;
+
+ constant PADDR_WIDTH : integer := 2;
+ type pointers_t is array(0 to 2**PADDR_WIDTH-1) of gp_register_t;
+ subtype paddr_t is std_logic_vector(PADDR_WIDTH-1 downto 0);
subtype status_t is byte_t;
--type alu_interal_rec is record
subtype status_t is byte_t;
--type alu_interal_rec is record
@@
-26,14
+30,12
@@
package alu_pkg is
result_addr : gp_addr_t;
status : status_rec;
result_addr : gp_addr_t;
status : status_rec;
- --stackpointer : gp_register_t;
alu_jump : std_logic;
brpr : std_logic;
reg_op : std_logic;
mem_op : std_logic;
alu_jump : std_logic;
brpr : std_logic;
reg_op : std_logic;
mem_op : std_logic;
- --new_val : std_logic;
mem_en : std_logic;
hw_op : std_logic;
mem_en : std_logic;
hw_op : std_logic;