aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-08 17:17:16 +0200
committerClifford Wolf <clifford@clifford.at>2018-08-08 17:17:16 +0200
commitf875a37467477aa0aa60ba89b428c71de6645736 (patch)
tree68dab0e130a909c9b5212db49027837686cd98a4 /ice40/arch_place.cc
parente03ae50e21abdcb05a887c467b97968b1cbdb460 (diff)
downloadnextpnr-f875a37467477aa0aa60ba89b428c71de6645736.tar.gz
nextpnr-f875a37467477aa0aa60ba89b428c71de6645736.tar.bz2
nextpnr-f875a37467477aa0aa60ba89b428c71de6645736.zip
Get rid of old iCE40 id_ Arch members
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r--ice40/arch_place.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc
index 46f1f54f..bbddb7ee 100644
--- a/ice40/arch_place.cc
+++ b/ice40/arch_place.cc
@@ -91,7 +91,7 @@ bool Arch::isBelLocationValid(BelId bel) const
bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const
{
- if (cell->type == id_icestorm_lc) {
+ if (cell->type == id_ICESTORM_LC) {
NPNR_ASSERT(getBelType(bel) == id_ICESTORM_LC);
std::vector<const CellInfo *> bel_cells;
@@ -105,7 +105,7 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const
bel_cells.push_back(cell);
return logicCellsCompatible(bel_cells);
- } else if (cell->type == id_sb_io) {
+ } else if (cell->type == id_SB_IO) {
// Do not allow placement of input SB_IOs on blocks where there a PLL is outputting to.
// Find shared PLL by looking for driving bel siblings from D_IN_0
@@ -137,9 +137,9 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const
}
}
return getBelPackagePin(bel) != "";
- } else if (cell->type == id_sb_gb) {
- NPNR_ASSERT(cell->ports.at(id_glb_buf_out).net != nullptr);
- const NetInfo *net = cell->ports.at(id_glb_buf_out).net;
+ } else if (cell->type == id_SB_GB) {
+ NPNR_ASSERT(cell->ports.at(id_GLOBAL_BUFFER_OUTPUT).net != nullptr);
+ const NetInfo *net = cell->ports.at(id_GLOBAL_BUFFER_OUTPUT).net;
IdString glb_net = getWireName(getBelPinWire(bel, id_GLOBAL_BUFFER_OUTPUT));
int glb_id = std::stoi(std::string("") + glb_net.str(this).back());
if (net->is_reset && net->is_enable)