diff options
author | David Shah <dave@ds0.me> | 2020-11-09 16:06:40 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:28 +0000 |
commit | fa9194e3e2212ef265b94b1be58da7c59d9a0bbf (patch) | |
tree | bd4c0827720012d8a14b3f7ef9f3aca92763a315 /nexus/pack.cc | |
parent | 963fd175ad69c5468bfc486e789cf6c7ff85f57e (diff) | |
download | nextpnr-fa9194e3e2212ef265b94b1be58da7c59d9a0bbf.tar.gz nextpnr-fa9194e3e2212ef265b94b1be58da7c59d9a0bbf.tar.bz2 nextpnr-fa9194e3e2212ef265b94b1be58da7c59d9a0bbf.zip |
nexus: Add cell delay lookup
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/pack.cc')
-rw-r--r-- | nexus/pack.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc index c085c5ee..5dcfd9e2 100644 --- a/nexus/pack.cc +++ b/nexus/pack.cc @@ -1257,12 +1257,14 @@ void Arch::assignArchInfo() void Arch::assignCellInfo(CellInfo *cell) { + cell->tmg_index = -1; if (cell->type == id_OXIDE_COMB) { cell->lutInfo.is_memory = str_or_default(cell->params, id_MODE, "LOGIC") == "DPRAM"; cell->lutInfo.is_carry = str_or_default(cell->params, id_MODE, "LOGIC") == "CCU2"; cell->lutInfo.mux2_used = port_used(cell, id_OFX); cell->lutInfo.f = get_net_or_empty(cell, id_F); cell->lutInfo.ofx = get_net_or_empty(cell, id_OFX); + cell->tmg_index = get_cell_timing_idx(id_OXIDE_COMB, id_LUT4); } else if (cell->type == id_OXIDE_FF) { cell->ffInfo.ctrlset.async = str_or_default(cell->params, id_SRMODE, "LSR_OVER_CE") == "ASYNC"; cell->ffInfo.ctrlset.regddr_en = is_enabled(cell, id_REGDDR); |