Skip to content
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

token_test.py - missing initialization for component_ranges #16

Open
ajeethakv opened this issue May 17, 2024 · 2 comments
Open

token_test.py - missing initialization for component_ranges #16

ajeethakv opened this issue May 17, 2024 · 2 comments

Comments

@ajeethakv
Copy link

I get an error while trying testbench.py:

  File "testbench.py", line 6, in <module>
    decoded = parse_vhdl(files_to_tb, True)
  File "/home/ajeetha/tools/git_VHLD_Parse/ak_dev/vhdl_tokeniser/token_test.py", line 910, in parse_vhdl
    for range in component_ranges:
UnboundLocalError: local variable 'component_ranges' referenced before assignment

My fix/attempt is simple - initialize it as:

    component_ranges = ''

Do you need a PR?

@cfoge
Copy link
Owner

cfoge commented May 19, 2024 via email

@cfoge
Copy link
Owner

cfoge commented May 20, 2024

I just did some updates and improvements, so you might want to get the latest version. it has improvements to the test-bench generator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants