aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/pack.cc
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2021-02-07 22:06:23 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit4948e8d914ec5d77777d197d7b2138cba933d33e (patch)
tree8051c80e5dbb7725fc37d3de2c6ce56c7b4ae61c /machxo2/pack.cc
parent086bca18b828488cab4f2a825cffa34812ab8c8f (diff)
downloadnextpnr-4948e8d914ec5d77777d197d7b2138cba933d33e.tar.gz
nextpnr-4948e8d914ec5d77777d197d7b2138cba933d33e.tar.bz2
nextpnr-4948e8d914ec5d77777d197d7b2138cba933d33e.zip
machxo2: Fix packing when FF is driven by a constant; UART test core working on silicon, fails post-synth sim.
Diffstat (limited to 'machxo2/pack.cc')
-rw-r--r--machxo2/pack.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/machxo2/pack.cc b/machxo2/pack.cc
index 786a84d6..c745a1c0 100644
--- a/machxo2/pack.cc
+++ b/machxo2/pack.cc
@@ -142,6 +142,8 @@ static void set_net_constant(Context *ctx, NetInfo *orig, NetInfo *constnet, boo
log_info("FACADE_FF %s is driven by a constant\n", uc->name.c_str(ctx));
std::unique_ptr<CellInfo> lc = create_machxo2_cell(ctx, id_FACADE_SLICE, uc->name.str(ctx) + "_CONST");
+ std::copy(uc->attrs.begin(), uc->attrs.end(), std::inserter(lc->attrs, lc->attrs.begin()));
+
dff_to_lc(ctx, uc, lc.get(), true);
packed_cells.insert(uc->name);