mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Adding notes on generate blocksx
This commit is contained in:
parent
23cdb8d8d4
commit
59d758d9c6
@ -123,10 +123,12 @@ TBD
|
||||
* Use common names: nreset, clk, din, dout, en, rd, wr, addr, etc
|
||||
* Make names descriptive, avoid non-common abbreviations
|
||||
* Make names as short as possible, but not shorter
|
||||
* Use short named generate blocks "g0, g1, etc"
|
||||
* Inside generate blocks use short "i<name>" for instance
|
||||
* Use _ in constants over 4 bits (eg: 8'h1100_1100)
|
||||
* One module per file
|
||||
* Use ".vh" suffix for header files,
|
||||
* yse ".v" for verilog source files
|
||||
* Use ".v" for verilog source files
|
||||
* Use `include files for constants
|
||||
* Use `ifndef _CONSTANTS_V to include file only once
|
||||
* No timescales in design files (only in testbench)
|
||||
|
Loading…
x
Reference in New Issue
Block a user