From 8ce3ad72158ba217fbdf0e26f354b85de0b116be Mon Sep 17 00:00:00 2001 From: Louis Stermole Date: Fri, 11 Aug 2017 07:45:19 -0500 Subject: Rename access_delay_regs API perspective MC to C4 and add real MC perspective Change-Id: Icd1a30f3eaab67f609928dc30fadf40d1535c84f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44519 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Reviewed-by: STEPHEN GLANCY Reviewed-by: ANDRE A. MARIN Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52086 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Christian R. Geddes --- .../procedures/hwp/memory/lib/rosetta_map/rosetta_map.C | 17 +++++++++++++++++ .../procedures/hwp/memory/lib/rosetta_map/rosetta_map.H | 6 ++++++ 2 files changed, 23 insertions(+) (limited to 'src/import/chips/p9/procedures/hwp/memory') diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.C b/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.C index e88b9b413..39ef0439e 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.C +++ b/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.C @@ -383,4 +383,21 @@ const rosetta_map::PhyMap rosettaTraits::C4_TO_PHY } }; +// Map from MC index to PHY pin. Not a PhyMap because it's the same for every port +const std::vector> rosettaTraits::MC_TO_PHY = +{ + {0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}, {0, 8}, {0, 9}, {0, 10}, {0, 11}, {0, 12}, {0, 13}, {0, 14}, {0, 15}, + {1, 0}, {1, 1}, {1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 7}, {1, 8}, {1, 9}, {1, 10}, {1, 11}, {1, 12}, {1, 13}, {1, 14}, {1, 15}, + {2, 0}, {2, 1}, {2, 2}, {2, 3}, {2, 4}, {2, 5}, {2, 6}, {2, 7}, {2, 8}, {2, 9}, {2, 10}, {2, 11}, {2, 12}, {2, 13}, {2, 14}, {2, 15}, + {3, 0}, {3, 1}, {3, 2}, {3, 3}, {3, 4}, {3, 5}, {3, 6}, {3, 7}, {3, 8}, {3, 9}, {3, 10}, {3, 11}, {3, 12}, {3, 13}, {3, 14}, {3, 15}, + {4, 0}, {4, 1}, {4, 2}, {4, 3}, {4, 4}, {4, 5}, {4, 6}, {4, 7}, +}; + +// Map from MC index to PHY pin. Not a PhyMap because it's the same for every port +const std::vector> rosettaTraits::MC_TO_PHY = +{ + {0, 16}, {0, 20}, {1, 16}, {1, 20}, {2, 16}, {2, 20}, {3, 16}, {3, 20}, {4, 16}, {0, 18}, {0, 22}, {1, 18}, {1, 22}, {2, 18}, {2, 22}, {3, 18}, + {3, 22}, {4, 18}, +}; + } // ns mss diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.H b/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.H index 6e6771f73..329bfa4d2 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/rosetta_map/rosetta_map.H @@ -167,6 +167,8 @@ class rosettaTraits public: // Each pin type has a table of vector>, indexed by [port][c4bit]-->{block, lane} static const rosetta_map::PhyMap C4_TO_PHY; + // Map from MC index to PHY pin. Not a PhyMap because it's the same for every port + static const std::vector> MC_TO_PHY; }; /// @@ -179,6 +181,8 @@ class rosettaTraits public: // Each pin type has a table of vector>, indexed by [port][c4bit]-->{block, lane} static const rosetta_map::PhyMap C4_TO_PHY; + // Map from MC index to PHY pin. Not a PhyMap because it's the same for every port + static const std::vector> MC_TO_PHY; }; /// @@ -191,6 +195,8 @@ class rosettaTraits public: // Each pin type has a table of vector>, indexed by [port][c4bit]-->{block, lane} static const rosetta_map::PhyMap C4_TO_PHY; + // Constexpr defines how many pins there are on an ADR instance + static constexpr uint64_t PINS_PER_ADR = 12; }; /// -- cgit v1.2.1