put block labels into snippet variables
This commit is contained in:
parent
7620866b4a
commit
00dfa2e27b
@ -76,21 +76,21 @@ endcase
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet always_comb "Combinational always block"
|
snippet always_comb "Combinational always block"
|
||||||
always_comb begin : ${1:statement_label}
|
always_comb begin ${1:: statement_label}
|
||||||
$0
|
$0
|
||||||
end : $1
|
end $1
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet always_ff "Sequential logic"
|
snippet always_ff "Sequential logic"
|
||||||
always_ff @(posedge ${1:clk}) begin : ${2:statement_label}
|
always_ff @(posedge ${1:clk}) begin ${2:: statement_label}
|
||||||
$0
|
$0
|
||||||
end : $2
|
end $2
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet always_latch "Latched logic"
|
snippet always_latch "Latched logic"
|
||||||
always_latch begin : ${1:statement_label}
|
always_latch begin ${1:: statement_label}
|
||||||
$0
|
$0
|
||||||
end : $1
|
end $1
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet module "Module block"
|
snippet module "Module block"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user