Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnoel committed Jan 31, 2024
1 parent 562d153 commit a884e11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/end2end/test_end2end_bnn_pynq.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,12 @@ def test_set_fifo_depths(self, topology, wbits, abits, board):
model = load_test_checkpoint_or_skip(prev_chkpt_name)
test_fpga_part = get_build_env(board, target_clk_ns)["part"]
if topology == "cnv" and wbits == 2 and abits == 2 and board == "Pynq-Z1":
# Enabling swg_exception for this single test case. Disabling the exception results in a design
# that exceeds the resources of the Pynq-Z1 board. In future this should be revisited and handled
# correctly as the swg_exception is poorly justified.
model = model.transform(InsertAndSetFIFODepths(test_fpga_part, target_clk_ns, swg_exception=True))
# Enabling swg_exception for this single test case. Disabling the exception results in
# a design that exceeds the resources of the Pynq-Z1 board. In future this should be
# revisited and handled correctly as the swg_exception is poorly justified.
model = model.transform(
InsertAndSetFIFODepths(test_fpga_part, target_clk_ns, swg_exception=True)
)
else:
model = model.transform(InsertAndSetFIFODepths(test_fpga_part, target_clk_ns))
fifo_layers = model.get_nodes_by_op_type("StreamingFIFO")
Expand Down

0 comments on commit a884e11

Please sign in to comment.