From 1c4adf5f933ce25af212e635f4bd0dec20845a54 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 25 Jun 2025 15:39:55 +0200 Subject: [PATCH] Fix handling of features above 32 bits or with offset Signed-off-by: gatecat --- fpga/assembler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpga/assembler.cc b/fpga/assembler.cc index 5913c1f..8a269db 100644 --- a/fpga/assembler.cc +++ b/fpga/assembler.cc @@ -110,7 +110,7 @@ static absl::Status ProcessFasmFeatures( // Select only bit addresses with value bit set to 1. for (int addr = 0; addr < tile_feature.width; ++addr) { const unsigned feature_addr = (addr + tile_feature.start_bit); - const bool value = bits & (1 << feature_addr); + const bool value = bits & (uint64_t(1) << addr); if (value) { db.ConfigBits( tile_name, feature, feature_addr,