Skip to content

Commit

Permalink
Merge pull request #140 from zeroasiccorp/fix-lint
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
gadfort authored Dec 17, 2024
2 parents 242a98b + 0d9909d commit 741985e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
extend-exclude = testbench/build
extend-exclude = testbench/build,build,.venv
max-line-length = 100
ignore =
E125,
Expand Down
6 changes: 3 additions & 3 deletions examples/adder/pin_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def generate_mapped_constraints(part_name):
for i in range(8):
pin_constraints[f'b[{i}]'] = {
"direction": "input",
"pin": f'gpio_in[{i+8}]'
"pin": f'gpio_in[{i + 8}]'
}

for i in range(9):
pin_constraints[f'y[{i}]'] = {
"direction": "output",
"pin": f'gpio_out[{i+16}]'
"pin": f'gpio_out[{i + 16}]'
}

else:
Expand Down Expand Up @@ -82,7 +82,7 @@ def generate_raw_constraints():
else:
pin_constraints[f'y[{i}]'] = {
"direction": "output",
"pin": f'pad_out_1_5[{i-8}]'
"pin": f'pad_out_1_5[{i - 8}]'
}

return pin_constraints
Expand Down
8 changes: 4 additions & 4 deletions logik/templates/logik_demo/umi_pin_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def generate_umi_pin_constraints(fpga_ports_per_umi=300,
umi_bus_index += 1

for j in range(umi_cmd_width):
cur_signal = f'{port}_cmd[{i*umi_cmd_width+j}]'
cur_signal = f'{port}_cmd[{i * umi_cmd_width + j}]'
mapped_signal_name = f"umi_io_{cur_dir_short}[{umi_bus_index}]"
umi_to_fpga_pin_map[cur_signal] = {
"direction": cur_dir,
Expand All @@ -76,7 +76,7 @@ def generate_umi_pin_constraints(fpga_ports_per_umi=300,
umi_bus_index += 1

for j in range(umi_addr_width):
cur_signal = f'{port}_dstaddr[{i*umi_addr_width+j}]'
cur_signal = f'{port}_dstaddr[{i * umi_addr_width + j}]'
mapped_signal_name = f"umi_io_{cur_dir_short}[{umi_bus_index}]"
umi_to_fpga_pin_map[cur_signal] = {
"direction": cur_dir,
Expand All @@ -85,7 +85,7 @@ def generate_umi_pin_constraints(fpga_ports_per_umi=300,
umi_bus_index += 1

for j in range(umi_addr_width):
cur_signal = f'{port}_srcaddr[{i*umi_addr_width+j}]'
cur_signal = f'{port}_srcaddr[{i * umi_addr_width + j}]'
mapped_signal_name = f"umi_io_{cur_dir_short}[{umi_bus_index}]"
umi_to_fpga_pin_map[cur_signal] = {
"direction": cur_dir,
Expand All @@ -94,7 +94,7 @@ def generate_umi_pin_constraints(fpga_ports_per_umi=300,
umi_bus_index += 1

for j in range(umi_data_width):
cur_signal = f'{port}_data[{i*umi_data_width+j}]'
cur_signal = f'{port}_data[{i * umi_data_width + j}]'
mapped_signal_name = f"umi_io_{cur_dir_short}[{umi_bus_index}]"
umi_to_fpga_pin_map[cur_signal] = {
"direction": cur_dir,
Expand Down

0 comments on commit 741985e

Please sign in to comment.