mirror of
https://github.com/retroSoC/common.git
synced 2026-11-04 14:22:39 +00:00
- Updated license headers to use SPDX format across all RTL files. - Enhanced error checking in various modules (e.g., tech_ram, tech_regfile, bin2gray, gray2bin, lfsr) to validate parameters and prevent invalid configurations. - Refactored FIFO implementation to simplify pointer management and ensure proper handling of push/pop operations. - Introduced new scripts for checking formatting and license headers, ensuring compliance with project standards. - Added style guidelines to maintain consistent coding practices across the RTL codebase. - Updated testbench files to include license headers and maintain compatibility with legacy structures.
458 B
458 B
RTL Style
Use four-space indentation and the checked .verible-format configuration.
Ports use direction suffixes (_i, _o, _io), sequential state uses r_,
and combinational nets use s_. Prefer named module ports for new code.
All branches in combinational logic assign defaults before conditional updates.
Use always_ff for state and always_comb for combinational functions. New
parameters must be typed and have a documented legal range.