Skip to content

Commit

Permalink
pyfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoling-yi committed Feb 18, 2025
1 parent 11e4dc7 commit 2a66e7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def emit_conv_data(**kwargs):
if broadcast_C == 1:
assert meshCol * output_data_width % bankWidth == 0
# Note: if C is hanged to wide ports, the mimimum number of bits to enable is multipliers of 8 (8 narrow channels equal to 1 wide channel)
channel_en_C_1_bits = int((meshCol * output_data_width / bankWidth + 7 ) // 8 * 8)
channel_en_C_1_bits = int(
(meshCol * output_data_width / bankWidth + 7) // 8 * 8
)
# Generate the elements
channel_en_C = [0] * enabled_channel_CSR_num # Initialize with zeros

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ def emit_matmul_data(**kwargs):
if broadcast_C == 1:
assert meshCol * output_data_width % bankWidth == 0
# Note: if C is hanged to wide ports, the mimimum number of bits to enable is multipliers of 8 (8 narrow channels equal to 1 wide channel)
channel_en_C_1_bits = int((meshCol * output_data_width / bankWidth + 7 ) // 8 * 8)
channel_en_C_1_bits = int(
(meshCol * output_data_width / bankWidth + 7) // 8 * 8
)
# Generate the elements
channel_en_C = [0] * enabled_channel_CSR_num # Initialize with zeros

Expand Down

0 comments on commit 2a66e7d

Please sign in to comment.