Skip to content

Commit

Permalink
Document blocks in tabular formatting
Browse files Browse the repository at this point in the history
In tabular formatting, an empty line indicates a block boundary that
restarts the "table". Document that.

(This was implicitly done in the past and discussed in #48 as intended
behavior.)
  • Loading branch information
imphil committed Apr 19, 2021
1 parent c5b9392 commit 9a5c883
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions VerilogCodingStyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ that the identical parts are directly above one another. This alignment makes it
easy to see which characters are the same and which characters are different
between lines.

Each block of code, separated by an empty line, is treated as separate "table".

Use spaces, not tabs.

For example:
Expand All @@ -538,6 +540,10 @@ logic [7:0] my_interface_data;
logic [15:0] my_interface_address;
logic my_interface_enable;
logic another_signal;
logic [7:0] something_else;
```

:+1:
```systemverilog
mod u_mod (
Expand Down

0 comments on commit 9a5c883

Please sign in to comment.