diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-21 15:47:41 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-21 15:47:41 +0200 |
commit | a29bfc788eba9f11f1e0cd3d62a32c3894cddf49 (patch) | |
tree | 01c8675cb47f509d816cca23962b88a51d4a8c85 /ice40 | |
parent | 477c33efba4362282cf88f02cf4d17f13d3ad8fd (diff) | |
download | nextpnr-a29bfc788eba9f11f1e0cd3d62a32c3894cddf49.tar.gz nextpnr-a29bfc788eba9f11f1e0cd3d62a32c3894cddf49.tar.bz2 nextpnr-a29bfc788eba9f11f1e0cd3d62a32c3894cddf49.zip |
Add ctx->checksum(), slightly improve log messages
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.h | 16 | ||||
-rw-r--r-- | ice40/pack.cc | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h index 4896736b..7778e1c5 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -515,6 +515,11 @@ struct Arch : BaseCtx return id(chip_info->bel_data[bel.index].name.get()); } + uint32_t getBelChecksum(BelId bel) const + { + return bel.index; + } + void bindBel(BelId bel, IdString cell) { assert(bel != BelId()); @@ -607,6 +612,11 @@ struct Arch : BaseCtx return id(chip_info->wire_data[wire.index].name.get()); } + uint32_t getWireChecksum(WireId wire) const + { + return wire.index; + } + void bindWire(WireId wire, IdString net) { assert(wire != WireId()); @@ -646,6 +656,11 @@ struct Arch : BaseCtx PipId getPipByName(IdString name) const; IdString getPipName(PipId pip) const; + uint32_t getPipChecksum(PipId pip) const + { + return pip.index; + } + void bindPip(PipId pip, IdString net) { assert(pip != PipId()); @@ -758,6 +773,7 @@ struct Arch : BaseCtx delay_t getDelayEpsilon() const { return 20; } delay_t getRipupDelayPenalty() const { return 200; } float getDelayNS(delay_t v) const { return v * 0.001; } + uint32_t getDelayChecksum(delay_t v) const { return v; } // ------------------------------------------------- diff --git a/ice40/pack.cc b/ice40/pack.cc index 8a6f1c45..7fcf2750 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -487,12 +487,14 @@ static void promote_globals(Context *ctx) // Main pack function bool pack_design(Context *ctx) { + log_break(); pack_constants(ctx); promote_globals(ctx); pack_io(ctx); pack_lut_lutffs(ctx); pack_nonlut_ffs(ctx); pack_ram(ctx); + log_info("Checksum: 0x%08x\n", ctx->checksum()); return true; } |