0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[VHDL]VSCodeでVHDLを書く時に登録しておくと便利なスニペット

Last updated at Posted at 2022-10-04

ファイル→ユーザー設定→ユーザースニペットの構成 から以下の新規スニペットを作成

vhdl.json
{
	"process": {
		"prefix": "process (my snippet)",
		"body": [
			"process(CLK)",
			"begin",
			"\tif (RST='1') then",
			"\t\t",
			"\telsif (rising_edge(CLK)) then",
			"\t\t",
			"\tend if;",
			"end process;"
		]
	},
	"component": {
		"prefix": "component (my snippet)",
		"body": [
			"component $1 is port (",
			"\t",
			"); end component $1;"
		]
	},
	"entity": {
		"prefix": "entity (my snippet)",
		"body": [
			"entity $TM_FILENAME_BASE is",
			"\tport (",
			"\t\tCLK : in std_logic;",
			"\t\tRST : in std_logic;",
			"\t\t",
			"\t);",
			"end entity $TM_FILENAME_BASE;"
		]
	},
	"instance": {
		"prefix": "instance (my snippet)",
		"body": [
			"$1_Inst : $1 port map(",
			"\t",
			");"
		]
	},
	"architecture": {
		"prefix": "architecture (my snippet)",
		"body": [
			"architecture rtl of $TM_FILENAME_BASE is",
			"\t$1",
			"begin",
			"\t",
			"end architecture rtl;"
		]
	}
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?