emsec / hal

HAL – The Hardware Analyzer
MIT License
622 stars 76 forks source link

bugs and unnecessary code parts in hdl_writer/hdl_writer_vhdl.cpp #161

Closed FabianAlbertRub closed 3 years ago

FabianAlbertRub commented 5 years ago

(Since these are only small issues, which can easily fixed by only one person, i wrote them together in one report ;))

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.64. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

nils1603 commented 5 years ago

This reallyyy needs work! We need to write tests. Is there any VHDL parser that could be used to parse our written VHDL again? We could use the parser to write tests!

RenWal commented 5 years ago

Can we implement basic self-testing by looping back our VHDL output to our own VHDL parser?

FabianAlbertRub commented 5 years ago

Yeah, I've already written tests for the writer, based on comparisons with our parsers input(this thread is actually based on my testing observations). To check the output for every call of the writer may be an interesting idea, but can result in worse run-time (especially for bigger netlists). At the other hand it seems to be a nice idea to feed the tests with more data. Maybe we can discuss this in our next meeting ;)

nils1603 commented 5 years ago

We could do that, but our parser is also excepting VHDL code that is 100% accurate regarding the specification.