aboutsummaryrefslogtreecommitdiff
path: root/sverilog_utils.py
AgeCommit message (Collapse)AuthorFilesLines
2024-11-05Enable Pylint in CI and fix its errors (#311)Tim Hutt1-5/+6
* Remove wildcard imports Use explicit imports rather than wildcards. This is more maintainable. * Enable Pylint in CI and fix its errors The main fixes were: * Specify encoding for all file opens. By default it depends on environment variables which is bad. * Use `with` to open files. Otherwise they don't necessarily get closed. There were also a few minor things like using `enumerate`, not using objects as default arguments, etc. In some cases I slightly refactored the code.
2024-10-31Add static type hintsTim Hutt1-1/+1
This makes the code easier to understand and navigate, and also detected a few of bugs: 1. Missing brackets on e.upper. (Fixed) 2. Not strictly related to types, but a lot of the regexes were not raw strings and therefore contained invalid escape sequences. Python prints a warning about these in recent versions. (Fixed) 3. Expression in `process_pseudo_instructions()` that is always false. (Not fixed) 4. Missing definition of `log_and_exit()`. (Fixed) This is validated via pre-commit in CI.
2024-10-30Remove commented out import linesJay Dev Jha1-1/+0
Signed-off-by: Jay Dev Jha <jaydev.neuroscitech@gmail.com>
2024-10-29Remove unused importsTim Hutt1-7/+0
Remove unused Python import statements.
2024-10-09removed walrus operatorIIITM-Jay1-13/+20
2024-09-17Refactored and Optimized Logic:: Parser Logic, Latex Based Output & Shared ↵IIITM-Jay1-0/+30
Modules