lac-dcc / chimera

A tool for synthesizing Verilog programs
GNU General Public License v3.0
42 stars 4 forks source link

Use without declaration #13

Closed joaovam closed 2 months ago

joaovam commented 2 months ago

There are cases of use of an identifier without declaring it previously. It is done in the file Identifier Renaming Visitor. Today we maintain a list of vars that have been used but not declared yet to declare later, since Verilog accepts this behavior, we must consider if it is worth forcing these declarations at the end of a module or changing it to increase acceptance.

rafasumi commented 2 months ago

This commit possibly fix this problem. I'll close the issue for now, but we may re-open it in the future if necessary