Added new test mif with no multiplication

This commit is contained in:
Kacper 2020-06-08 13:13:26 +01:00
parent 24b293e24b
commit 47f20744ac
3 changed files with 131 additions and 2 deletions

5
.gitignore vendored
View file

@ -3,5 +3,6 @@ incremental_db/*
output_files/* output_files/*
simulation/* simulation/*
greybox_tmp/cbx_args.txt greybox_tmp/cbx_args.txt
*.vwf *.vwf
.DS_Store .DS_Store
instr_gen

68
test_no_mul.mif Normal file
View file

@ -0,0 +1,68 @@
DEPTH = 2048;
WIDTH = 16;
ADDRESS_RADIX = DEC;
DATA_RADIX = HEX;
CONTENT
BEGIN
0 : 8800;
1 : 9001;
2 : 26D0;
3 : 291A;
4 : 2D20;
5 : 3161;
6 : 3448;
7 : D002;
8 : B003;
9 : 9804;
10 : B811;
11 : 419F;
12 : 304F;
13 : 5008;
14 : 5028;
15 : 284F;
16 : 43F7;
17 : 3568;
18 : 47F5;
19 : 484D;
20 : 8806;
21 : 0040;
22 : B800;
23 : 8807;
24 : 0853;
25 : B800;
26 : 8808;
27 : 0A7D;
28 : B800;
29 : 8809;
30 : 0C53;
31 : B801;
32 : 880A;
33 : B00B;
34 : 0E70;
35 : B800;
36 : 880C;
37 : 105C;
38 : B800;
39 : 880D;
40 : 126D;
41 : B800;
42 : 880E;
43 : 147E;
44 : B800;
45 : 880F;
46 : 5340;
47 : 53C0;
48 : 1678;
49 : B800;
50 : 1863;
51 : 1A5F;
52 : 1FB8;
53 : 7C00;
54 : 1C77;
55 : 204C;
56 : A810;
57 : 226D;
58 : 246D;
59 : 7E00;
[60..2047]: 0;
END;

60
test_no_mul.txt Normal file
View file

@ -0,0 +1,60 @@
LDA R1 0
LDA R2 1
MOV R3 R2
ADD R4 R3 R2
ADO R4 R4
SUB R5 R4 R1
SBO R1 R1
STA R2 2
LDA R6 3
LDA R3 4
LDA R7 17
LSL R6 R3 R7
SUB R1 R1 R7
PSH R1
PSH R5
ADD R1 R1 R7
LSR R7 R6 R7
SBO R5 R5
ASR R7 R6 R5
ROR R1 R1 R5
LDA R1 6
JMP R1
LDA R7 0
LDA R1 7
JC1 R1 R2 R3
LDA R7 0
LDA R1 8
JC2 R1 R7 R5
LDA R7 0
LDA R1 9
JC3 R1 R2 R3
LDA R7 1
LDA R1 10
LDA R6 11
JC4 R1 R6
LDA R7 0
LDA R1 12
JC5 R1 R3 R4
LDA R7 0
LDA R1 13
JC6 R1 R5 R5
LDA R7 0
LDA R1 14
JC7 R1 R7 R6
LDA R7 0
LDA R1 15
POP R5
POP R7
JC8 R1 R7
LDA R7 0
AND R1 R4 R3
_OR R1 R3 R7
NOT R6 R7
NOP
XOR R1 R6 R7
NND R1 R1 R4
LDA R5 16
NOR R1 R5 R5
XNR R1 R5 R5
STP