OpenCores
URL https://opencores.org/ocsvn/mips_16/mips_16/trunk

Subversion Repositories mips_16

[/] [mips_16/] [trunk/] [doc/] [instruction_set.txt] - Blame information for rev 6

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 Doyya
My mips_16 instrction set:
2
 
3
R-type:
4
                |       15:12           11:9    8:6             5:3     2:0
5
        -------------------------------------------
6
        NOP     |       0000            rd(0)   rs1(0)  rs2(0)000
7
        ADD     |       0001            rd              rs1             rs2     000
8
        SUB     |       0010            rd              rs1             rs2     000
9
        AND     |       0011            rd              rs1             rs2     000
10
        OR      |       0100            rd              rs1             rs2     000
11
        XOR     |       0101            rd              rs1             rs2     000
12
        SL      |       0110            rd              rs1             rs2     000
13
        SR      |       0111            rd              rs1             rs2     000
14
        SRU     |       1000            rd              rs1             rs2     000
15
 
16
 
17
I-type:
18
                |       15:12           11:9    8:6             5:3     2:0
19
        -------------------------------------------
20
        ADDI|   1001            rd              rs1     imm
21
        LD      |       1010            rd              base    offset
22
        ST      |       1011            rd(rs)  base    offset
23
        BZ      |       1100            000             rs1             offset
24
//      BGT     |       1100            001             rs1     offset
25
//      BLE     |       1100            010             rs1     offset
26
 
27
 
28
J-type:
29
                |       15:12           11:9    8:6             5:3     2:0
30
        -------------------------------------------
31
 
32
 
33
 
34
NOTE:
35
 Immediate number field is 6-bit long, so in ADDI/LD/ST/BZ, -32<= imm(offset) <32

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.