From de1bee9352c9f760cb21a35912c48ed2f830c023 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Mon, 6 Jun 2022 14:35:33 +0200 Subject: lutram actually PnRs --- gowin/pack.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gowin/pack.cc') diff --git a/gowin/pack.cc b/gowin/pack.cc index fa88772a..7d3a8e98 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -695,6 +695,8 @@ static void pack_gsr(Context *ctx) // Pack shadow RAM void pack_sram(Context *ctx) { + log_info("Packing Shadow RAM..\n"); + pool packed_cells; std::vector> new_cells; @@ -755,7 +757,7 @@ void pack_sram(Context *ctx) ramw_slice->constr_abs_z = true; ramw_slice->constr_x = 0; ramw_slice->constr_y = 0; - ramw_slice->constr_z = 4; + ramw_slice->constr_z = BelZ::lutram_0_z; ram_comb[0]->constr_children.push_back(ramw_slice.get()); for (int i = 0; i < 4; i++) @@ -1091,6 +1093,7 @@ bool Arch::pack() try { log_break(); pack_constants(ctx); + pack_sram(ctx); pack_gsr(ctx); pack_io(ctx); pack_diff_io(ctx); -- cgit v1.2.3