summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/patterns.C
blob: c9eb2d3ba0c734b5c1d7781ac2d7b7a02ece7fbb (plain)
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
74
75
76
77
78
79
80
81
82
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: chips/p9/procedures/hwp/memory/lib/mcbist/patterns.C $        */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* EKB Project                                                            */
/*                                                                        */
/* COPYRIGHT 2016                                                         */
/* [+] International Business Machines Corp.                              */
/*                                                                        */
/*                                                                        */
/* The source code for this program is not published or otherwise         */
/* divested of its trade secrets, irrespective of what has been           */
/* deposited with the U.S. Copyright Office.                              */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */

///
/// @file patterns.C
/// @brief Static definition of MCBIST patterns
///
// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com>
// *HWP HWP Backup: Marc Gollub <gollub@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 2
// *HWP Consumed by: FSP:HB

#include <fapi2.H>
#include <vector>
#include <lib/mcbist/patterns.H>

namespace mss
{

namespace mcbist
{

/// Vector of cache lines, seaprated in to two 64B chunks
// TK Real patterns from Marc representing the proper bits for ECC checking
const std::vector< pattern > patterns =
{
    // Pattern index 0 (Pattern 1 is this inverted)
    {   {0x0000000000000000, 0x0000000000000000},
        {0x0000000000000000, 0x0000000000000000},
        {0x0000000000000000, 0x0000000000000000},
        {0x0000000000000000, 0x0000000000000000},
    },

    // Pattern index 2 (Pattern 3 is this inverted)
    {   {0x5555555555555555, 0x5555555555555555},
        {0xAAAAAAAAAAAAAAAA, 0xAAAAAAAAAAAAAAAA},
        {0x5555555555555555, 0x5555555555555555},
        {0xAAAAAAAAAAAAAAAA, 0xAAAAAAAAAAAAAAAA},
    },

    // Pattern index 4 (Pattern 5 is this inverted)
    {   {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF},
        {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF},
        {0x0000000000000000, 0x0000000000000000},
        {0x0000000000000000, 0x0000000000000000},
    },

    // Pattern index 6 (Pattern 7 is this inverted)
    {   {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF},
        {0x0000000000000000, 0x0000000000000000},
        {0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF},
        {0x0000000000000000, 0x0000000000000000},
    },

    // Pattern index 8 Random Seed
    {   {0x1234567887654321, 0x8765432112345678},
        {0x1234567887654321, 0x8765432112345678},
        {0x1234567887654321, 0x8765432112345678},
        {0x1234567887654321, 0x8765432112345678},
    },
};

}

}
OpenPOWER on IntegriCloud