verilog:module¶
- 
module 
module_test();¶ 
ANSI style¶
- 
module 
ansi_top(input wirei_clk, input wirei_inp, output rego_out);¶ 
- 
module 
ansi_style_1(inputx);¶ References:
ansi_style_1x
- 
module 
ansi_style_2(inputx, outputy);¶ References:
ansi_style_2xy
- 
module 
ansi_style_3(wirex);¶ References:
ansi_style_3x
- 
module 
ansi_style_4(output signedx);¶ References:
ansi_style_4x
- 
module 
ansi_style_5(output signedx= 1);¶ References:
ansi_style_5x
- 
module 
ansi_style_6(inputx= 0, outputy= 2*2);¶ References:
ansi_style_6xy
- 
module 
ansi_style_7(inout integerx);¶ References:
ansi_style_7x
- 
module 
ansi_style_8(output [7:0]x);¶ References:
ansi_style_8x
- 
module 
ansi_style_9(input signed [7:0]x);¶ References:
ansi_style_9x
- 
module 
ansi_style_10([7:0]x);¶ References:
ansi_style_10x
- 
module 
ansi_style_11([7:0]x, inputy);¶ References:
ansi_style_11xy
- 
module 
ansi_style_12((* attr *) output integerx);¶ References:
ansi_style_12x
- 
module 
ansi_style_13((* attr *) output integerx,(* attr_other *) input [3:0]y);¶ References:
ansi_style_13xy
- 
module 
ansi_style_14((* attr *) output integer [7:0]x,(* other, attr *) wirey);¶ References:
ansi_style_14xy
- 
module 
ansi_style_15(ref [7:0]x,y);¶ References:
ansi_style_15xy
- 
module 
ansi_style_16(refx[7:0],y);¶ References:
ansi_style_16xy
- 
module 
ansi_style_17(ref [7:0]x[7:0],y);¶ References:
ansi_style_17xy
- 
module 
ansi_style_18(input .ext1(x[7:4]), input .ext2(x[3:0]), inouty, output .ext3(z));¶ References:
ansi_style_18xyz
Non-ANSI style¶
- 
(* attr = 2 * 2 *) module 
test1(a,b,c,d,e,f,g,h);¶ 
- 
module 
test2(a,b,c,d,e,f,g,h);¶ 
- 
module 
complex_ports({c,d}, .e(f));¶ 
- 
module 
split_ports(a[7:4],a[3:0]);¶ 
- 
module 
same_port(.a(i), .b(i));¶ 
- 
module 
renamed_concat(.a({b,c}),f, .g(h[1]));¶ 
- 
module 
same_input(a,a);¶ 
- 
module 
mixed_direction(.p({a,e}));¶ 
Module parameters¶
- 
(* x=1 *) module 
non_ansi_params_test_1#()(port_name);¶ References:
non_ansi_params_test_1
- 
(* x=1 *) module 
ansi_params_test_1#()(inputport_name);¶ References:
ansi_params_test_1
- 
(* x=1 *) module 
non_ansi_params_test_2#(num= 3,other_num= 2 * 2)(port_name);¶ References:
non_ansi_params_test_2,num,other_num
- 
(* x=1 *) module 
ansi_params_test_2#(num= 3,other_num= 2 * 2)(inputport_name);¶ References:
ansi_params_test_2,num,other_num
- 
(* x=1 *) module 
non_ansi_params_test_3#(num,other_num)(port_name);¶ References:
non_ansi_params_test_3,num,other_numParameter
other_numis explicitly described below. The declaration in module header should link to it.- 
parameter 
other_num= 2 * 2;¶ Parameter description.
- 
parameter 
 
- 
(* x=1 *) module 
ansi_params_test_3#(num,other_num)(inputport_name);¶ References:
ansi_params_test_3,num,other_numParameter
other_numis explicitly described below. The declaration in module header should link to it.- 
parameter 
other_num= 2 * 2;¶ Parameter description.
- 
parameter 
 
- 
(* x=1 *) module 
non_ansi_params_test_4#(parameternum= 3,other_num= 2 * 2)(port_name);¶ References:
non_ansi_params_test_4,num,other_num
- 
(* x=1 *) module 
non_ansi_params_test_5#(parameternum= 3, localparamother_num= 2 * 2,yet_another_one= 42)(port_name);¶ References:
non_ansi_params_test_5,num,other_numyet_another_oneParameter
numis explicitly described below. The declaration in module header should link to it.- 
parameter 
num;¶ Parameter description.
- 
parameter 
 
- 
(* x=1 *) module 
non_ansi_params_test_6#(parameternum= 3, localparamother_num,yet_another_one= 42)(port_name);¶ References:
non_ansi_params_test_6,num,other_numyet_another_one