init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: architecture
|
||||
# key: arch
|
||||
# --
|
||||
architecture ${1:Type} of ${2:Name} is
|
||||
$3
|
||||
begin
|
||||
$0
|
||||
end $1;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: assignation
|
||||
# key: asg
|
||||
# --
|
||||
${1:variable} <= ${2:value};
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: byte in std_logic_vector
|
||||
# key: byte
|
||||
# --
|
||||
std_logic_vector(7 downto 0)
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: case
|
||||
# key: case
|
||||
# --
|
||||
case ${1:cond} is
|
||||
when ${2:Value} =>
|
||||
$0
|
||||
|
||||
end case;
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: component
|
||||
# key: comp
|
||||
# --
|
||||
component ${1:Name}
|
||||
$0
|
||||
end component;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: constant
|
||||
# key: const
|
||||
# --
|
||||
constant ${1:Name}: ${2:Type} := ${3:Value};
|
||||
@@ -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}
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: downto
|
||||
# key: dto
|
||||
# --
|
||||
${1:name}(${2:start} downto ${3:end})$0
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: entity
|
||||
# key: ent
|
||||
# --
|
||||
entity ${1:Name} is
|
||||
$0
|
||||
end $1;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: fill std_vector with zeros
|
||||
# key: fill
|
||||
# --
|
||||
(others => '0')
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if
|
||||
# key: if
|
||||
# --
|
||||
if ${1:cond} then
|
||||
$0
|
||||
end if;
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ifelif
|
||||
# key: ifelif
|
||||
# --
|
||||
if ${1:cond1} then
|
||||
$0
|
||||
elsif ${2:cond2} then
|
||||
|
||||
end if;
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ifelse
|
||||
# key: ifel
|
||||
# --
|
||||
if ${1:cond1} then
|
||||
$0
|
||||
else
|
||||
|
||||
end if;
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: library
|
||||
# key: lib
|
||||
# --
|
||||
library IEEE;
|
||||
use IEEE.std_logic_1164.all;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: port
|
||||
# key: port
|
||||
# --
|
||||
port(${1:name}: ${2:IO} ${3:type});
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: process
|
||||
# key: process
|
||||
# --
|
||||
${1:Name}: process(${2:Sensitivity List})
|
||||
begin
|
||||
$0
|
||||
end process $1;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: signal
|
||||
# key: signal
|
||||
# --
|
||||
signal ${1:Names}: ${2:Type};
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: std logic vector
|
||||
# key: vec
|
||||
# --
|
||||
std_logic_vector(${1:${2:7} downto ${3:0}})$0
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: stdlib
|
||||
# key: stdlib
|
||||
# --
|
||||
library std;
|
||||
use std.textio.all;
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: to
|
||||
# key: to
|
||||
# --
|
||||
${1:name}(${2:start} to ${3:end})$0
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: type
|
||||
# key: type
|
||||
# --
|
||||
type ${1:Name} is (${2:Value list});
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: when
|
||||
# key: when
|
||||
# --
|
||||
when ${1:Value} =>
|
||||
$0
|
||||
Reference in New Issue
Block a user