Skip to content

Add some snippets #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions snippets/vhdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@ entity_declaration:
- "\t\t$0"
- "\t);"
- "end entity ${1:$TM_FILENAME_BASE};"

entity_with_generic_declaration:
prefix: gent
description: Entity With Generic Declaration
scope: source.vhdl
body:
- "entity ${1:$TM_FILENAME_BASE} is"
- "\tgeneric ("
- "\t\t$0"
- "\t);"
- "\tport ("
- "\t\t$0"
- "\t);"
- "end entity ${1:$TM_FILENAME_BASE};"

component_declaration:
prefix: com
description: Component Declaration
scope: source.vhdl
body:
- "component YOUR_COMPONENT"
- "\tport ("
- "\t\t$0"
- "\t);"
- "end component;"

architecture_declaration:
prefix: arch
Expand Down