chaseruskin / legoHDL

An experimental package manager and development tool for Hardware Description Languages (HDL).
https://c-rus.github.io/legoHDL
MIT License
14 stars 2 forks source link

Add option for auto-alignment (neat vs. compact) for entity/component prints #33

Closed chaseruskin closed 3 years ago

chaseruskin commented 3 years ago

Add an additional setting under 'general' for having users decide if they want to have the component declarations print with aligned =, =>, :, etc. Currently, the components print out in what will be called "compact" form where there is no alignment among signal names. Setting it to "neat" will align the respective signal tokens.

chaseruskin commented 3 years ago

The printMapping method for each entity has improved and gained additional parameters to the method for better customization. Some parameters include:

chaseruskin commented 3 years ago

These settings will need a home in the settings.cfg file. Potentially:

[HDL-styling]
    hang-end = yes
    align = yes
    spaces = 1
chaseruskin commented 3 years ago

Another HDL-styling option:

setting wire/signal names. For example, rather than defaulting to print out signals/wires of same name as port names, users can optionally add a prefix or suffix to the signals/wires being printed. This may help if users want to find/replace signal names as they are instantiated into their code.

Example:

w_* - will add "w_" to every signal