mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
Emacs : some verilog snippets
This commit is contained in:
14
.doom.d/snippets/verilog-mode/always (asynchronous rst)
Normal file
14
.doom.d/snippets/verilog-mode/always (asynchronous rst)
Normal 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
|
||||
14
.doom.d/snippets/verilog-mode/always (asynchronous rstn)
Normal file
14
.doom.d/snippets/verilog-mode/always (asynchronous rstn)
Normal 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
|
||||
14
.doom.d/snippets/verilog-mode/always (synchronous rst)
Normal file
14
.doom.d/snippets/verilog-mode/always (synchronous rst)
Normal 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
|
||||
14
.doom.d/snippets/verilog-mode/always (synchronous rstn)
Normal file
14
.doom.d/snippets/verilog-mode/always (synchronous rstn)
Normal 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
|
||||
21
.doom.d/snippets/verilog-mode/module(base)
Normal file
21
.doom.d/snippets/verilog-mode/module(base)
Normal 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
|
||||
Reference in New Issue
Block a user