BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
20735fb
Branches
Tags
master
mips_sys
mips
types.vhd
add missing branch instruction to decoder
Stefan Schuermans
commited
20735fb
at 2012-01-24 21:52:35
types.vhd
Blame
History
Raw
LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.numeric_std.all; PACKAGE mips_types IS -- operation TYPE t_op IS ( op_none, op_alu, -- ALU operation op_b, -- branch (conditional) op_j -- jump ); -- link (store return address in register) TYPE t_link IS ( link_none, link_link -- link ); -- compare mode TYPE t_cmp IS ( cmp_none, cmp_eq, -- equal cmp_gez, -- greater or equal zero cmp_gtz, -- greater than zero cmp_lez, -- less or equal zero cmp_ltz, -- less than zero cmp_ne -- not equal ); -- ALU operation TYPE t_alu IS ( alu_none, alu_add, -- addition alu_and, -- bitwise AND alu_nor, -- bitwise NOR alu_or, -- bitwise OR alu_sub, -- subtraction alu_sll, -- shift left logically alu_sra, -- shift right arithmetically alu_srl, -- shift right logically alu_slt, -- set on less than alu_sltu, -- set on less than unsigned alu_xor -- bitwise XOR ); -- immediate usage TYPE t_imm IS ( imm_none, imm_a, -- "a" immediate imm_16se, -- 16 bit immediate, sign-extension imm_16ze, -- 16 bit immediate, zero-extension imm_26 -- 26 bit immediate ); END PACKAGE;