nextpnr/himbaechel
Joris van Zwieten 4fd89bca9a himbaechel/xilinx: fix LUTRAM initialisation (INIT_A..INIT_D)
Distributed RAM primitives (RAM32M/RAM64M etc.) carry their per-port
initialisation in parameters named INIT_A..INIT_D, but pack_dram
looked up INITA..INITD. The lookup never matched, so all LUTRAM was
configured with INIT=0 regardless of the design's initial contents.

Fixing the name exposed a second, previously unreachable bug in the
wide (dbits>1) path: the 64-bit INIT slice was converted with
as_bits(), which yields raw bool values rather than the '0'/'1'
characters a Property string requires, producing a corrupt property.
De-interleave the canonical bit string directly (bit k*2+j of the
64-bit INIT is bit j of entry k) and rebuild the Property with
update_intval().

Repro: a RAM32M with a nonzero INIT_A..D readback (WE held low /
driven by a live net); before this change the read data is all-zero.

Hardware-verified on xc7a100t (QMTech Wukong): LUTRAM-based tables in
a MEGA65 core port now read back their initial contents correctly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 15:35:36 +02:00
..
himbaechel_dbgen himbaechel: Extend API to enable cell delay override (#1535) 2025-08-20 06:32:18 +02:00
uarch himbaechel/xilinx: fix LUTRAM initialisation (INIT_A..INIT_D) 2026-07-30 15:35:36 +02:00
.gitignore himbächel: Initial implementation 2023-05-13 08:26:41 +02:00
CMakeLists.txt himbaechel: Merge all test entrypoints into one 2026-07-27 11:01:32 +02:00
arch.cc himbaechel: Enable use of electrostatic placer (#1657) 2026-03-03 12:19:41 +01:00
arch.h himbaechel: bounds check getBelByLocation 2026-05-04 13:38:04 +02:00
arch_pybindings.cc himbaechel: Add Python binding for get_tile_wire_range 2025-06-25 18:37:17 +02:00
arch_pybindings.h himbächel: Initial implementation 2023-05-13 08:26:41 +02:00
archdefs.h Add GroupId related calls to Himbaechel API (#1399) 2024-12-05 13:59:33 +01:00
chipdb.h himbaechel: Extend API to enable cell delay override (#1535) 2025-08-20 06:32:18 +02:00
himbaechel_api.cc himbaechel: Enable use of electrostatic placer (#1657) 2026-03-03 12:19:41 +01:00
himbaechel_api.h himbaechel: Enable use of electrostatic placer (#1657) 2026-03-03 12:19:41 +01:00
himbaechel_constids.h himbächel: Initial implementation 2023-05-13 08:26:41 +02:00
himbaechel_gfxids.h Add GroupId related calls to Himbaechel API (#1399) 2024-12-05 13:59:33 +01:00
himbaechel_helpers.cc himbaechel: Add support for new constants API 2023-11-07 09:00:03 +01:00
himbaechel_helpers.h clangformat 2024-09-30 14:51:33 +02:00
main.cc himbaechel: add uarch specific options parsing (#1582) 2025-10-21 14:41:53 +02:00
test_main.cc himbaechel: Merge all test entrypoints into one 2026-07-27 11:01:32 +02:00