forked from hlpaa/ProjetoX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beqtaken.mif
53 lines (43 loc) · 945 Bytes
/
beqtaken.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
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: 10010011; -- addi x7,x0,1
001: 00000011;
002: 00010000;
003: 00000000;
004: 00010011; -- addi x2,x0,4
005: 00000001;
006: 01000000;
007: 00000000;
008: 01101111; -- jal x10,8
009: 00000101;
010: 10000000;
011: 00000000;
012: 00110011; -- or x4,x2,x0
013: 01100010;
014: 00000001;
015: 00000000;
016: 00110011; -- add x6,x4,x2
017: 00000011;
018: 00100010;
019: 00000000;
020: 10010011; -- addi x7,x0,1
021: 00000011;
022: 00010000;
023: 00000000;
024: 00010011; -- addi x8,x0,2
025: 00000100;
026: 00100000;
027: 00000000;
028: 11100011; -- beq x7,x7,-8
029: 10001100;
030: 01110011;
031: 11111110;
032: 00110011; -- or x4,x2,x0
033: 01100010;
034: 00000001;
035: 00000000;
END;