URL
https://opencores.org/ocsvn/lem1_9min/lem1_9min/trunk
[/] [lem1_9min/] [trunk/] [lem1_9min_defs.vhd] - Blame information for rev 7
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
7 |
marcus.erl |
-- lem1_9min_defs.vhd
|
2 |
|
|
-- type declarations & constants
|
3 |
|
|
|
4 |
|
|
library IEEE;
|
5 |
|
|
use IEEE.std_logic_1164.all;
|
6 |
|
|
|
7 |
|
|
package definitions is
|
8 |
|
|
|
9 |
|
|
-- machine instructions memonics sorted by code & sub-code
|
10 |
|
|
-- ir(8..6) op-codes
|
11 |
|
|
constant opMSC: std_logic_vector(2 downto 0) :="000";
|
12 |
|
|
-- ir(5..4) sub op-codes
|
13 |
|
|
constant opHLT: std_logic_vector(1 downto 0) :="00";
|
14 |
|
|
constant opAnC: std_logic_vector(1 downto 0) :="01";
|
15 |
|
|
-- ir(8..6) op-codes cont'd
|
16 |
|
|
constant opST: std_logic_vector(2 downto 0) :="001";
|
17 |
|
|
constant opLD: std_logic_vector(2 downto 0) :="010";
|
18 |
|
|
constant opLDC: std_logic_vector(2 downto 0) :="011";
|
19 |
|
|
constant opAND: std_logic_vector(2 downto 0) :="100";
|
20 |
|
|
constant opOR: std_logic_vector(2 downto 0) :="101";
|
21 |
|
|
constant opXOR: std_logic_vector(2 downto 0) :="110";
|
22 |
|
|
constant opADC: std_logic_vector(2 downto 0) :="111";
|
23 |
|
|
|
24 |
|
|
end definitions;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.