blob: 7cf0c26a75443e20405f3a9ab5d72a307d443a3f [file] [log] [blame]
Zane Shelley11b89942019-11-07 11:07:28 -06001#include "simulator.hpp"
2
3START_TEST_CASE(SampleTestSet1)
4
Zane Shelley1be4c3c2020-04-17 15:55:07 -05005CHIP(proc0, SAMPLE)
Zane Shelley11b89942019-11-07 11:07:28 -06006
7START_ITERATION
8
Zane Shelleyaadf3bf2020-04-30 21:25:29 -05009REG_SCOM(proc0, 0xf0000000, 0x0000000000000000) // GFIR_CS
10REG_SCOM(proc0, 0xf0000001, 0x0000000000000000) // GFIR_RE
11
12REG_SCOM(proc0, 0x00f00000, 0x0000000000000000) // CFIR0_CS inst 0
13REG_SCOM(proc0, 0x00f00001, 0x0000000000000000) // CFIR0_RE inst 0
14REG_SCOM(proc0, 0x00f00002, 0x0000000000000000) // CFIR0_MASK inst 0
15
16REG_SCOM(proc0, 0x00f00010, 0x0000000000000000) // CFIR0_CS inst 1
17REG_SCOM(proc0, 0x00f00011, 0x0000000000000000) // CFIR0_RE inst 1
18REG_SCOM(proc0, 0x00f00012, 0x0000000000000000) // CFIR0_MASK inst 1
19
20REG_SCOM(proc0, 0x00f10000, 0x0000000000000000) // CFIR1_CS inst 0
21REG_SCOM(proc0, 0x00f10001, 0x0000000000000000) // CFIR1_RE inst 0
22REG_SCOM(proc0, 0x00f10002, 0x0000000000000000) // CFIR1_MASK inst 0
23
24REG_SCOM(proc0, 0x0000f000, 0x0000000000000000) // LFIR0 inst 0
25REG_SCOM(proc0, 0x0000f003, 0x0000000000000000) // LFIR0_MASK inst 0
26REG_SCOM(proc0, 0x0000f006, 0x0000000000000000) // LFIR0_ACT0 inst 0
27REG_SCOM(proc0, 0x0000f007, 0x0000000000000000) // LFIR0_ACT1 inst 0
28
29REG_SCOM(proc0, 0x0000f010, 0x0000000000000000) // LFIR0 inst 1
30REG_SCOM(proc0, 0x0000f013, 0x0000000000000000) // LFIR0_MASK inst 1
31REG_SCOM(proc0, 0x0000f016, 0x0000000000000000) // LFIR0_ACT0 inst 1
32REG_SCOM(proc0, 0x0000f017, 0x0000000000000000) // LFIR0_ACT1 inst 1
33
34REG_SCOM(proc0, 0x0000f100, 0x0000000000000000) // LFIR1 inst 0
35REG_SCOM(proc0, 0x0000f103, 0x0000000000000000) // LFIR1_MASK inst 0
36REG_SCOM(proc0, 0x0000f106, 0x0000000000000000) // LFIR1_ACT0 inst 0
37REG_SCOM(proc0, 0x0000f107, 0x0000000000000000) // LFIR1_ACT1 inst 0
38
39REG_SCOM(proc0, 0x0000f110, 0x0000000000000000) // LFIR1 inst 1
40REG_SCOM(proc0, 0x0000f113, 0x0000000000000000) // LFIR1_MASK inst 1
41REG_SCOM(proc0, 0x0000f116, 0x0000000000000000) // LFIR1_ACT0 inst 1
42REG_SCOM(proc0, 0x0000f117, 0x0000000000000000) // LFIR1_ACT1 inst 1
43
44REG_SCOM(proc0, 0x0000f120, 0x0000000000000000) // LFIR1 inst 2
45REG_SCOM(proc0, 0x0000f123, 0x0000000000000000) // LFIR1_MASK inst 2
46REG_SCOM(proc0, 0x0000f126, 0x0000000000000000) // LFIR1_ACT0 inst 2
47REG_SCOM(proc0, 0x0000f127, 0x0000000000000000) // LFIR1_ACT1 inst 2
48
49REG_SCOM(proc0, 0x0000f130, 0x0000000000000000) // LFIR1 inst 3
50REG_SCOM(proc0, 0x0000f133, 0x0000000000000000) // LFIR1_MASK inst 3
51REG_SCOM(proc0, 0x0000f136, 0x0000000000000000) // LFIR1_ACT0 inst 3
52REG_SCOM(proc0, 0x0000f137, 0x0000000000000000) // LFIR1_ACT1 inst 3
53
54REG_SCOM(proc0, 0x0000f140, 0x0000000000000000) // LFIR1 inst 4
55REG_SCOM(proc0, 0x0000f143, 0x0000000000000000) // LFIR1_MASK inst 4
56REG_SCOM(proc0, 0x0000f146, 0x0000000000000000) // LFIR1_ACT0 inst 4
57REG_SCOM(proc0, 0x0000f147, 0x0000000000000000) // LFIR1_ACT1 inst 4
58
59REG_SCOM(proc0, 0x0000f150, 0x0000000000000000) // LFIR1 inst 5
60REG_SCOM(proc0, 0x0000f153, 0x0000000000000000) // LFIR1_MASK inst 5
61REG_SCOM(proc0, 0x0000f156, 0x0000000000000000) // LFIR1_ACT0 inst 5
62REG_SCOM(proc0, 0x0000f157, 0x0000000000000000) // LFIR1_ACT1 inst 5
63
64REG_SCOM(proc0, 0x0000f200, 0x0000000000000000) // LFIR2 inst 0
65REG_SCOM(proc0, 0x0000f203, 0x0000000000000000) // LFIR2_MASK inst 0
66REG_SCOM(proc0, 0x0000f206, 0x0000000000000000) // LFIR2_ACT0 inst 0
67REG_SCOM(proc0, 0x0000f207, 0x0000000000000000) // LFIR2_ACT1 inst 0
68
69// start temp test case
Zane Shelley11b89942019-11-07 11:07:28 -060070REG_IDSCOM(proc0, 0x80000000FF000000, 0x8000) // parent FIR bit 48
71
72REG_SCOM(proc0, 0x00FF0000, 0x8800000000000000) // child FIR bits 0 and 4
73
74EXP_SIG(proc0, 0x2222, 0, 0, CHECKSTOP)
75EXP_SIG(proc0, 0x2222, 0, 4, CHECKSTOP)
Zane Shelleyaadf3bf2020-04-30 21:25:29 -050076// end temp test case
Zane Shelley11b89942019-11-07 11:07:28 -060077
78END_ITERATION
79
80END_TEST_CASE