Skip to content

fix: removed duplicate variable #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions fpga/assembler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ static absl::Status ProcessFasmFeatures(
absl::flat_hash_set<fpga::ConfigBusType> used_config_buses;
// Select only bit addresses with value bit set to 1.
for (int addr = 0; addr < tile_feature.width; ++addr) {
const unsigned bit_addr = (addr + tile_feature.start_bit);
const bool value = bits & (1 << bit_addr);
const unsigned feature_addr = (addr + tile_feature.start_bit);
const bool value = bits & (1 << feature_addr);
if (value) {
const int feature_addr = addr + tile_feature.start_bit;
db.ConfigBits(
tile_name, feature, feature_addr,
[&frames, &used_config_buses](
Expand Down