spacevim/bundle/neosnippet-snippets/neosnippets/verilog.snip
JIe 2bb7059579
Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
init
2024-08-21 14:17:26 +08:00

159 lines
2.7 KiB
Plaintext

snippet al
abbr always @()
always @(${1:*})${2:TARGET}
snippet alclk
abbr always @(posedge clk)
always @(posedge clk${1})${2:TARGET}
snippet beginend
alias be
abbr begin ... end
begin
${1:TARGET}
end
snippet module
alias mod
abbr module () ... endmodule
module ${1:`expand("%:r")`}(
${2:TARGET}
);
endmodule
snippet rw
abbr reg [] _r, _w;
reg${1:#: nbit} ${2:reg}_r, $2_w;${3:TARGET}
snippet I
abbr input [] i_,
input${1:#: nbit} i_${2:name},
snippet O
abbr output [] o_,
output${1:#: nbit} o_${2:name},
snippet IO
abbr inout [] io_,
inout${1:#: nbit} io_${2:name},
snippet regmemory
alias regm
abbr reg [] name []
reg [${1}:${2:0}] ${3:name} [${4:0}:${5}];${6:TARGET}
snippet regseq
abbr _r <= _w;
${1:reg}_r <= $1_w;${2:TARGET}
snippet regkeep
abbr _w = _r
${1:reg}_w = $1_r;${2:TARGET}
snippet assign
alias as
abbr assign ... = ...
assign ${1:#:name} = ${2:#:val};${3:TARGET}
snippet parameter
alias pa
abbr parameter ... = ...
parameter ${1:#:name} = ${2:#:val};${3:TARGET}
snippet localparam
alias lpa
abbr localparam ... = ...
localparam ${1:#:name} = ${2:#:val};${3:TARGET}
snippet if
abbr if()
if (${1:#:condition})${0:TARGET}
snippet else
alias el
abbr else
else${0:TARGET}
snippet elseif
abbr else if ()
else if (${1:#:condition})${0:TARGET}
snippet initial
alias init
abbr initial begin ... end
initial begin
${0:TARGET}
end
snippet for
abbr for () begin ... end
for (${1:i} = ${2}; $1 < ${3}; ${4:$1 = $1 + 1})${0:TARGET}
snippet while
abbr while () begin ... end
while (${1:#:condition})${0:TARGET}
snippet case
abbr case () ... endcase
case (${1})
${2:'b0}: begin
${3}
end
default : begin
${4}
end
endcase
snippet function
alias func
abbr function ... endfunction
function${1:# nbit} ${1:func_name};
${2:portlist};
begin
${0:TARGET};
end
endfunction
snippet inc
alias `inc, `include
abbr `include "..."
\`include "${1}"${0}
snippet def
alias `def, `define
abbr `define ... ...
\`define ${1} ${2}
snippet default_nettype
alias dn, defn
\`default_nettype ${1:none}${0}
snippet timescale
alias ts, `time, `timescale
abbr `timescale 1ns/100ps
\`timescale ${1:1ns}/${2:100ps}${0}
snippet ternary
alias ter
abbr () ? a : b
(${1:#:condition}) ? ${2:#:a} : ${3:#:b}
snippet dumpfile
alias df
abbr $dumpfile("....vcd");
$dumpfile("${1:`expand("%:r")`}.vcd");${0}
snippet dumpvars
alias dv
abbr $dumpvars(0, ...);
$dumpvars(${1:0}, ${2:`expand("%:r")`});${0}
snippet display
abbr $display("...", ...);
$display("${1}", ${2});
snippet strobe
abbr $strobe("...", ...);
$strobe("${1}", ${2});