aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/pack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gowin/pack.cc')
-rw-r--r--gowin/pack.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc
index 83820142..5b304f10 100644
--- a/gowin/pack.cc
+++ b/gowin/pack.cc
@@ -26,6 +26,8 @@
#include "log.h"
#include "util.h"
+#include "globals.h"
+
NEXTPNR_NAMESPACE_BEGIN
static void make_dummy_alu(Context *ctx, int alu_idx, CellInfo *ci, CellInfo *packed_head,
@@ -1009,6 +1011,7 @@ bool Arch::pack()
Context *ctx = getCtx();
try {
log_break();
+ pre_pack(ctx);
pack_constants(ctx);
pack_gsr(ctx);
pack_io(ctx);
@@ -1018,6 +1021,7 @@ bool Arch::pack()
pack_alus(ctx);
pack_lut_lutffs(ctx);
pack_nonlut_ffs(ctx);
+ post_pack(ctx);
ctx->settings[id_pack] = 1;
ctx->assignArchInfo();
log_info("Checksum: 0x%08x\n", ctx->checksum());