Skip to content

Commit ff8ab9a

Browse files
gatecatlromor
authored andcommitted
Fix handling of features above 32 bits or with offset
Signed-off-by: gatecat <gatecat@ds0.me>
1 parent a7181e1 commit ff8ab9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fpga/assembler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static absl::Status ProcessFasmFeatures(
110110
// Select only bit addresses with value bit set to 1.
111111
for (int addr = 0; addr < tile_feature.width; ++addr) {
112112
const unsigned feature_addr = (addr + tile_feature.start_bit);
113-
const bool value = bits & (1 << feature_addr);
113+
const bool value = bits & (uint64_t(1) << addr);
114114
if (value) {
115115
db.ConfigBits(
116116
tile_name, feature, feature_addr,

0 commit comments

Comments
 (0)