Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/out
/package-lock.json
/.vscode/
!/.vscode/launch.json
!/.vscode/launch.json
/syntaxes/.antlr/*
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
"args": ["--disable-extensions","--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}
4 changes: 3 additions & 1 deletion BSV.configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
{"open":"[", "close":"]"},
{"open":"{", "close":"}"},
{"open":"\"", "close":"\"", "notIn":["string"]}
]
],

"wordPattern":"((\\\\.)|[a-zA-Z_$])((\\\\.)|[a-zA-Z_$0-9])*"
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## Unreleased - 2021-06-09

### Added

- Add Bluespec Verilog Syntax Support [#162](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/162)

## [1.4.5] - 2021-05-15

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Install it from [VS Code Marketplace](https://marketplace.visualstudio.com/items
- Vivado Logical Simulation - `xvlog`
- Modelsim - `modelsim`
- Verilator - `verilator`
- Linting support
- Bluespec SystemVerilog
- Ctags Integration
- Autocomplete
- Document Symbols Outline
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
],
"icon": "images/icon.png",
"activationEvents": [
"onLanguage:verilog",
"onLanguage:systemverilog"
"onStartupFinished"
],
"main": "./out/src/extension",
"contributes": {
Expand Down Expand Up @@ -153,6 +152,10 @@
{
"language": "systemverilog",
"path": "./snippets/systemverilog.json"
},
{
"language": "bsv",
"path": "./snippets/bsv.json"
}
],
"configuration": {
Expand Down Expand Up @@ -260,16 +263,21 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -w -p ./",
"update-vscode": "vscode-install"
"update-vscode": "vscode-install",
"makeBsv": "antlr4ts -visitor syntaxes/bsv.g4 -o src/bsvjs"
},
"dependencies": {
"antlr4": "^4.9.2",
"antlr4ts": "^0.5.0-alpha.4",
"vsce": "^1.83.0",
"vscode-languageclient": "^6.1.3"
},
"devDependencies": {
"@types/antlr4": "^4.7.2",
"@types/mocha": "^2.2.45",
"@types/node": "^7.10.11",
"@types/vscode": "^1.46.0",
"antlr4ts-cli": "^0.5.0-alpha.4",
"typescript": "^3.9.5",
"vscode-test": "^1.4.0"
},
Expand Down
46 changes: 46 additions & 0 deletions snippets/bsv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"package": {
"prefix": "package",
"body": [
"package $0",
"endpackage : $0"
],
"description": "package"
},
"rule": {
"prefix": "rule",
"body": [
"rule $0 ( $1 );",
"endrule : $0"
],
},
"import": {
"prefix": "import",
"body": [
"import $0 :: *;"
],
"description": "import"
},
"interface": {
"prefix": "interface",
"body": [
"interface $IfcCounter #($type $t);",
"method $t readCounter;",
"endinterface"
],
"description": "interface"
},
"example module": {
"prefix": "module ex",
"body": [
"module ${0:mkExample}(${1:Empty});",
"",
" rule ${2:rl_print_answer};",
" \\$display (\"Deep Thought says: Hello, World! The answer is 42.\");",
" \\$finish;",
" endrule",
"endmodule"
],
"description": "example module"
}
}
Loading