Added VHDL-mode snippets

This commit is contained in:
serveln 2020-04-01 21:28:36 -03:00
parent d9a9ec282c
commit bce50200fe
17 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: architecture
# key: arch
# --
architecture ${1:Type} of ${2:Name} is
begin
$0
end $1;

5
snippets/vhdl-mode/asignation Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: asignation
# key: asig
# --
${1:variable} <= ${2:value};

9
snippets/vhdl-mode/case Executable file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: case
# key: case
# --
case ${1:cond} is
when ${2:Value} =>
$0
end case;

7
snippets/vhdl-mode/component Executable file
View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: component
# key: comp
# --
component ${1:Name}
$0
end component;

5
snippets/vhdl-mode/constant Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: constant
# key: const
# --
constant ${1:Name}: ${2:Type} := ${3:Value};

5
snippets/vhdl-mode/downto Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: downto
# key: dto
# --
${1:name}(${2:start} downto ${3:end})$0

7
snippets/vhdl-mode/entity Executable file
View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: entity
# key: ent
# --
entity ${1:Name} is
$0
end $1;

7
snippets/vhdl-mode/if Executable file
View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: if
# key: if
# --
if ${1:cond} then
$0
end if;

9
snippets/vhdl-mode/ifelif Executable file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: ifelif
# key: ifelif
# --
if ${1:cond1} then
$0
elsif ${2:cond2} then
end if;

9
snippets/vhdl-mode/ifelse Executable file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: ifelse
# key: ifel
# --
if ${1:cond1} then
$0
else
end if;

6
snippets/vhdl-mode/lib Executable file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: library
# key: lib
# --
library IEEE;
use IEEE.std_logic_1164.all;

5
snippets/vhdl-mode/port Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: port
# key: port
# --
port(${1:name}: ${2:IO} ${3:type});

8
snippets/vhdl-mode/process Executable file
View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: process
# key: process
# --
${1:Name}: process(${2:Sensitivity List})
begin
$0
end process $1;

5
snippets/vhdl-mode/signal Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: signal
# key: signal
# --
signal ${1:Names}: ${2:Type};

5
snippets/vhdl-mode/to Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: to
# key: to
# --
${1:name}(${2:start} to ${3:end})$0

5
snippets/vhdl-mode/type Executable file
View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: type
# key: type
# --
type ${1:Name} is (${2:Value list});

6
snippets/vhdl-mode/when Executable file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: when
# key: when
# --
when ${1:Value} =>
$0