Skip to content

Commit

Permalink
Fixes in pylint for labeler_prototype.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gabcro committed Dec 9, 2024
1 parent 3216bcc commit cdd28cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/labeler_prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def determine_cpu_bits(top_file):
with open(top_file, 'r', encoding='utf-8') as file:
content = file.read()

count_32 = 0
count_64 = 0
# Count occurrences of [31:0] and [63:0] for Verilog/SystemVerilog
if top_file.endswith('.v') or top_file.endswith('.sv'):
count_32 = len(re.findall(r'\[31:0\]', content))
Expand Down

0 comments on commit cdd28cf

Please sign in to comment.