-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9f0d6e
commit b160428
Showing
11 changed files
with
392 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* SPDX-FileCopyrightText: (c) 2024 Tenstorrent Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "device/tt_xy_pair.h" | ||
|
||
|
||
/* | ||
* CoordSystem is an enum class that represents all types of coordinate | ||
* systems that can be used to represent a core's location. | ||
* This is used both for V1 and V2. | ||
*/ | ||
enum class CoordSystem { | ||
LOGICAL, | ||
PHYSICAL, | ||
VIRTUAL, | ||
TRANSLATED, | ||
}; | ||
|
||
// ************************************************************************************************ | ||
// V1 | ||
|
||
/* | ||
* CoreType is an enum class that represents all types of cores | ||
* present on the Tenstorrent chip. | ||
*/ | ||
enum class CoreType { | ||
ARC, | ||
DRAM, | ||
ETH, | ||
PCIE, | ||
TENSIX, | ||
ROUTER_ONLY, | ||
}; | ||
|
||
struct CoreCoord_V1 : public tt_xy_pair { | ||
CoreType core_type; | ||
CoordSystem coord_system; | ||
}; | ||
|
||
// ************************************************************************************************ | ||
// V2 | ||
struct CoreCoord_V2 : public tt_xy_pair { | ||
CoordSystem coord_system; | ||
}; | ||
|
||
struct TensixCoreCoord_V2 : public CoreCoord_V2 { | ||
|
||
}; | ||
|
||
struct DramCoreCoord_V2 : public CoreCoord_V2 { | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.