This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

View File

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

View File

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

View 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
View File

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

View File

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

View File

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

View 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}

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: fill std_vector with zeros
# key: fill
# --
(others => '0')

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

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

View File

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

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 Normal 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 Normal file
View File

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

View File

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

View File

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

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: std logic vector
# key: vec
# --
std_logic_vector(${1:${2:7} downto ${3:0}})$0

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: stdlib
# key: stdlib
# --
library std;
use std.textio.all;

5
snippets/vhdl-mode/to Normal 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 Normal 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 Normal file
View File

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