Files
maksyuki d4de33c291 feat: refactor RTL modules and utilities for improved consistency and error handling
- 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.
2026-08-03 17:56:27 +08:00

10 lines
458 B
Markdown

# 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.