aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.h
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2020-06-27 21:52:03 -0400
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit88b7dfce58479f3002e5ba6d71856eeecfa41893 (patch)
tree83e4e7c29d39a1c5cb3cf3214340476f60334985 /machxo2/arch.h
parente5576448eaf9817163c45d0e8778e64b9b205c26 (diff)
downloadnextpnr-88b7dfce58479f3002e5ba6d71856eeecfa41893.tar.gz
nextpnr-88b7dfce58479f3002e5ba6d71856eeecfa41893.tar.bz2
nextpnr-88b7dfce58479f3002e5ba6d71856eeecfa41893.zip
machxo2: Stub out arch API functions and members.
Diffstat (limited to 'machxo2/arch.h')
-rw-r--r--machxo2/arch.h39
1 files changed, 13 insertions, 26 deletions
diff --git a/machxo2/arch.h b/machxo2/arch.h
index b8b9ce85..063eb164 100644
--- a/machxo2/arch.h
+++ b/machxo2/arch.h
@@ -159,28 +159,15 @@ struct Arch : BaseCtx
{
std::string chipName;
- std::unordered_map<IdString, WireInfo> wires;
- std::unordered_map<IdString, PipInfo> pips;
- std::unordered_map<IdString, BelInfo> bels;
- std::unordered_map<GroupId, GroupInfo> groups;
-
- // These functions include useful errors if not found
- WireInfo &wire_info(IdString wire);
- PipInfo &pip_info(IdString wire);
- BelInfo &bel_info(IdString wire);
-
- std::vector<IdString> bel_ids, wire_ids, pip_ids;
-
+ // Placeholders to be removed.
std::unordered_map<Loc, BelId> bel_by_loc;
- std::vector<std::vector<std::vector<BelId>>> bels_by_tile;
-
- std::unordered_map<DecalId, std::vector<GraphicElement>> decal_graphics;
-
- int gridDimX, gridDimY;
- std::vector<std::vector<int>> tileBelDimZ;
- std::vector<std::vector<int>> tilePipDimZ;
-
- std::unordered_map<IdString, CellTiming> cellTiming;
+ std::vector<BelId> bel_id_dummy;
+ std::vector<BelPin> bel_pin_dummy;
+ std::vector<WireId> wire_id_dummy;
+ std::vector<PipId> pip_id_dummy;
+ std::vector<GroupId> group_id_dummy;
+ std::vector<GraphicElement> graphic_element_dummy;
+ std::map<IdString, std::string> attrs_dummy;
// ---------------------------------------------------------------
// Common Arch API. Every arch must provide the following methods.
@@ -192,14 +179,14 @@ struct Arch : BaseCtx
std::string getChipName() const { return chipName; }
- IdString archId() const { return id("generic"); }
+ IdString archId() const { return id("machxo2"); }
ArchArgs archArgs() const { return args; }
IdString archArgsToId(ArchArgs args) const { return id("none"); }
- int getGridDimX() const { return gridDimX; }
- int getGridDimY() const { return gridDimY; }
- int getTileBelDimZ(int x, int y) const { return tileBelDimZ[x][y]; }
- int getTilePipDimZ(int x, int y) const { return tilePipDimZ[x][y]; }
+ int getGridDimX() const { return 0; }
+ int getGridDimY() const { return 0; }
+ int getTileBelDimZ(int x, int y) const { return 0; }
+ int getTilePipDimZ(int x, int y) const { return 0; }
BelId getBelByName(IdString name) const;
IdString getBelName(BelId bel) const;