init
This commit is contained in:
9
snippets/vhdl-mode/architecture
Normal file
9
snippets/vhdl-mode/architecture
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: architecture
|
||||
# key: arch
|
||||
# --
|
||||
architecture ${1:Type} of ${2:Name} is
|
||||
$3
|
||||
begin
|
||||
$0
|
||||
end $1;
|
||||
5
snippets/vhdl-mode/assignation
Normal file
5
snippets/vhdl-mode/assignation
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: assignation
|
||||
# key: asg
|
||||
# --
|
||||
${1:variable} <= ${2:value};
|
||||
5
snippets/vhdl-mode/byte_vector.yasnippet
Normal file
5
snippets/vhdl-mode/byte_vector.yasnippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: byte in std_logic_vector
|
||||
# key: byte
|
||||
# --
|
||||
std_logic_vector(7 downto 0)
|
||||
9
snippets/vhdl-mode/case
Normal file
9
snippets/vhdl-mode/case
Normal 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
Normal file
7
snippets/vhdl-mode/component
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: component
|
||||
# key: comp
|
||||
# --
|
||||
component ${1:Name}
|
||||
$0
|
||||
end component;
|
||||
5
snippets/vhdl-mode/constant
Normal file
5
snippets/vhdl-mode/constant
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: constant
|
||||
# key: const
|
||||
# --
|
||||
constant ${1:Name}: ${2:Type} := ${3:Value};
|
||||
9
snippets/vhdl-mode/docstring
Normal file
9
snippets/vhdl-mode/docstring
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: docstring
|
||||
# key: doc
|
||||
# contributor: Yannick Reiß
|
||||
# --
|
||||
-- `(file-name-nondirectory ( buffer-file-name))`
|
||||
-- Date: `(current-time-string)`
|
||||
-- Author: ${1:Yannick Reiß}
|
||||
-- E-Mail: ${2:yannick.reiss@protonmail.ch}
|
||||
5
snippets/vhdl-mode/downto
Normal file
5
snippets/vhdl-mode/downto
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: downto
|
||||
# key: dto
|
||||
# --
|
||||
${1:name}(${2:start} downto ${3:end})$0
|
||||
7
snippets/vhdl-mode/entity
Normal file
7
snippets/vhdl-mode/entity
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: entity
|
||||
# key: ent
|
||||
# --
|
||||
entity ${1:Name} is
|
||||
$0
|
||||
end $1;
|
||||
5
snippets/vhdl-mode/fill.yasnippet
Normal file
5
snippets/vhdl-mode/fill.yasnippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: fill std_vector with zeros
|
||||
# key: fill
|
||||
# --
|
||||
(others => '0')
|
||||
7
snippets/vhdl-mode/if
Normal file
7
snippets/vhdl-mode/if
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if
|
||||
# key: if
|
||||
# --
|
||||
if ${1:cond} then
|
||||
$0
|
||||
end if;
|
||||
9
snippets/vhdl-mode/ifelif
Normal file
9
snippets/vhdl-mode/ifelif
Normal 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
Normal file
9
snippets/vhdl-mode/ifelse
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ifelse
|
||||
# key: ifel
|
||||
# --
|
||||
if ${1:cond1} then
|
||||
$0
|
||||
else
|
||||
|
||||
end if;
|
||||
6
snippets/vhdl-mode/lib
Normal file
6
snippets/vhdl-mode/lib
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: library
|
||||
# key: lib
|
||||
# --
|
||||
library IEEE;
|
||||
use IEEE.std_logic_1164.all;
|
||||
5
snippets/vhdl-mode/port
Normal file
5
snippets/vhdl-mode/port
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: port
|
||||
# key: port
|
||||
# --
|
||||
port(${1:name}: ${2:IO} ${3:type});
|
||||
8
snippets/vhdl-mode/process
Normal file
8
snippets/vhdl-mode/process
Normal 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
Normal file
5
snippets/vhdl-mode/signal
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: signal
|
||||
# key: signal
|
||||
# --
|
||||
signal ${1:Names}: ${2:Type};
|
||||
5
snippets/vhdl-mode/std-logic-vector.yasnippet
Normal file
5
snippets/vhdl-mode/std-logic-vector.yasnippet
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: std logic vector
|
||||
# key: vec
|
||||
# --
|
||||
std_logic_vector(${1:${2:7} downto ${3:0}})$0
|
||||
6
snippets/vhdl-mode/stdlib.yasnippet
Normal file
6
snippets/vhdl-mode/stdlib.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: stdlib
|
||||
# key: stdlib
|
||||
# --
|
||||
library std;
|
||||
use std.textio.all;
|
||||
5
snippets/vhdl-mode/to
Normal file
5
snippets/vhdl-mode/to
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: to
|
||||
# key: to
|
||||
# --
|
||||
${1:name}(${2:start} to ${3:end})$0
|
||||
5
snippets/vhdl-mode/type
Normal file
5
snippets/vhdl-mode/type
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: type
|
||||
# key: type
|
||||
# --
|
||||
type ${1:Name} is (${2:Value list});
|
||||
6
snippets/vhdl-mode/when
Normal file
6
snippets/vhdl-mode/when
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: when
|
||||
# key: when
|
||||
# --
|
||||
when ${1:Value} =>
|
||||
$0
|
||||
Reference in New Issue
Block a user