forked from nathaliafab/Projeto_IH_RISC-V
-
Notifications
You must be signed in to change notification settings - Fork 2
/
instruction.mif
73 lines (59 loc) · 1.26 KB
/
instruction.mif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
DEPTH = 65536; -- The size of memory in words
WIDTH = 8; -- The size of data in bits
ADDRESS_RADIX = DEC; -- The radix for address values
DATA_RADIX = BIN; -- The radix for data values
CONTENT -- Start of (address: data pairs)
BEGIN
000: 00010011; -- addi x2,x0,0
001: 00000001;
002: 00000000;
003: 00000000;
004: 10010011; -- addi x7,x0,8
005: 00000011;
006: 10000000;
007: 00000000;
008: 10010011; -- addi x3,x3,4
009: 10000001;
010: 01000001;
011: 00000000;
012: 00010011; -- addi x2,x0,16
013: 00000001;
014: 00000000;
015: 00000001;
016: 10010011; -- slti x5,x7,9
017: 10100010;
018: 10010011;
019: 00000000;
020: 00010011; -- slti x6,x7,5
021: 10100011;
022: 01010011;
023: 00000000;
024: 10110011; -- slt x5,x7,x2
025: 10100010;
026: 00100011;
027: 00000000;
028: 10110011; -- slt x5,x7,x3
029: 10100010;
030: 00110011;
031: 00000000;
032: 00010011; -- addi x10,x0,-4
033: 00000101;
034: 11000000;
035: 11111111;
036: 10010011; -- slli x11,x7,2
037: 10010101;
038: 00100011;
039: 00000000;
040: 00010011; -- srli x12,x7,1
041: 11010110;
042: 00010011;
043: 00000000;
044: 10010011; -- srai x13,x10,1
045: 01010110;
046: 00010101;
047: 01000000;
048: 00010011; -- srai x14,x7,2
049: 11010111;
050: 00100011;
051: 01000000;
END;