Emacs : some verilog snippets

This commit is contained in:
2022-06-13 11:00:23 +09:00
parent c7bbf1ff7b
commit 56c3c61e30
5 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: always (asynchronous rst)
# uuid:
# key: trigger-key
# condition: t
# --
always@(posedge clk or posedge rst)
if(rst) begin
/*AUTORESET*/
end
else begin
end
end

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: always (asynchronous rstn)
# uuid:
# key: trigger-key
# condition: t
# --
always@(posedge clk or negedge rstn)
if(!rstn) begin
/*AUTORESET*/
end
else begin
end
end

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: always (synchronous rst)
# uuid:
# key: trigger-key
# condition: t
# --
always@(posedge clk)
if(rst) begin
/*AUTORESET*/
end
else begin
end
end

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: always (synchronous rstn)
# uuid:
# key: trigger-key
# condition: t
# --
always@(posedge clk)
if(!rstn) begin
/*AUTORESET*/
end
else begin
end
end

View File

@ -0,0 +1,21 @@
# -*- mode: snippet -*-
# name: module(base)
# uuid:
# key: trigger-key
# condition: t
# --
module example
#(
parameter DIN_LEN = 8
)
(/*AUTOARG*/);
/*AUTOINPUT*/
/*AUTOOUTPUT*/
/*AUTOWIRE*/
/*AUTOREG*/
endmodule