forked from mauricioAndrey/RISC-V_attempt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstruction.mif
58 lines (47 loc) · 1.04 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
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: 01100011; -- beq x0,x0,16
001: 00001000;
002: 00000000;
003: 00000000;
004: 10110011; -- add x5,x5,x3
005: 10000010;
006: 00110010;
007: 00000000;
008: 11100011; -- blt x5,x6,-4
009: 11001110;
010: 01100010;
011: 11111110;
012: 01100011; -- beq x0,x0,24
013: 00001100;
014: 00000000;
015: 00000000;
016: 10010011; -- addi x3,x0,1
017: 00000001;
018: 00010000;
019: 00000000;
020: 10010011; -- addi x5,x0,0
021: 00000010;
022: 00000000;
023: 00000000;
024: 00010011; -- addi x6,x0,2
025: 00000011;
026: 00100000;
027: 00000000;
028: 00010011; -- addi x8,x0,32
029: 00000100;
030: 00000000;
031: 00000010;
032: 01100111; -- jalr x10,x8,-28
033: 00000101;
034: 01000100;
035: 11111110;
036: 10010011; -- addi x29,x0,6
037: 00001110;
038: 01100000;
039: 00000000;
END;