Skip to content

Comments

When a signal is missing print the signal name instead of the default … AttributeError None type...#107

Open
jahagirdar wants to merge 1 commit intoalexforencich:masterfrom
jahagirdar:master
Open

When a signal is missing print the signal name instead of the default … AttributeError None type...#107
jahagirdar wants to merge 1 commit intoalexforencich:masterfrom
jahagirdar:master

Conversation

@jahagirdar
Copy link

The current code prints

                                                        AttributeError: 'NoneType' object has no attribute 'value'

when it is not able to find a signal, The message has no information on which signal is missing. The patch prints

     0.00ns CRITICAL cocotb.tb.                         signal rid does not exist
...
                                                        AttributeError: 'NoneType' object has no attribute 'value'

which aids in debug.

PS: there might be other places where sinilar try,catch block might be required... My RTL hit this case.

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

Successfully merging this pull request may close these issues.

1 participant