SystemVerilog mode
string msg ("%d + %d = %d", a, b, result);
1
// Literals
2
1'b0
3
1'bx
4
1'bz
5
16'hDC78
6
'hdeadbeef
7
'b0011xxzz
8
1234
9
32'd5678
10
3.4e6
11
128.7
12
13
// Macro definition
14
`define BUS_WIDTH 8;
15
16
// Module definition
17
module block(
18
input clk,
19
input rst_n,
20
input [`BUS_WIDTH1:0] data_in,
21
output [`BUS_WIDTH1:0] data_out
22
);
23
24
always @(posedge clk or negedge rst_n) begin
25
26
if (rst_n) begin
27
data_out < 8'b0;
28
end else begin
29
data_out < data_in;
30
end
31
32
if (rst_n)
Syntax highlighting and indentation for the Verilog and SystemVerilog languages (IEEE 1800).
Configuration options:
- noIndentKeywords - List of keywords which should not cause identation to increase. E.g. ["package", "module"]. Default: None
MIME types defined: text/x-verilog
and text/x-systemverilog
.