VLSIDA / OpenRAM

An open-source static random access memory (SRAM) compiler.
http://www.openram.org
BSD 3-Clause "New" or "Revised" License
780 stars 198 forks source link

Validate tech_name param in compiler/globals.py #210

Open htm23x opened 8 months ago

htm23x commented 8 months ago

We need to pre-validate the tech_name param in the config file or python will comply with a non-very-descriptive message that can confuse the user about where's the problem.

htm23x commented 8 months ago

Oh, very true... let me check if I can modify the code to validate it in that way.

htm23x commented 8 months ago

Ok, got it! I changed the code to iterate over all the technology subfolders. If the user tries to specify a technology name not present there, an error will be emit and the execution quits. Please, take a look to my changes in the compiler/globals.py and try to merge it (I tested it, works ok apparently).