-
Notifications
You must be signed in to change notification settings - Fork 80
Vscode extension #437
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
quekyj
wants to merge
34
commits into
intel:main
Choose a base branch
from
quekyj:vscode-extension
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vscode extension #437
Changes from 14 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
bfd0eb1
Added commit of module snippet
quekyj 668ac09
Update Readme and several snippets
quekyj 28b21fb
Add ROHD example
quekyj 684a628
Added ROHD snippet
quekyj 3734f9a
Added details to package.json
quekyj 442e140
Add License
quekyj 23f2773
Fix spacing in module
quekyj 4a3ccd5
Add readme.md
quekyj b06554c
Clean up package
quekyj 1b91924
Removed default readme.md
quekyj e94eb2f
Removed redundance code
quekyj 69dc901
Remove the command entry
quekyj 91f8607
Remove gif
quekyj 1c764a3
Add rohd testbench snippet
quekyj 9ce7dac
Add vscode readme version check to config test
quekyj 35f5100
Merge branch 'main' into vscode-extension
quekyj 8292e58
Check for vscode readme version
quekyj 486b50b
update the message for extension
quekyj 7396baa
Add ROHD-VF testbench
quekyj 01314b9
Add more prefix for Testbench
quekyj 3b5ceca
Fix broken link for ROHD FSM auto complete snippet
quekyj 09e749e
Add comment for sequential & Add output and logic to create module
quekyj 0ccd597
Fix conditional assign
quekyj 93a0462
Clarify on the conditional assignment
quekyj a286b88
ditch the waitNegEdges Function
quekyj 51f82f9
update build devtool version (#17)
quekyj 89fdef6
Fix version issue in build-devtools
quekyj 72cd948
Merge branch 'main' of https://github.com/quekyj/rohd
quekyj aa45a45
Merge branch 'intel:main' into main
quekyj dd15957
Merge branch 'main' into vscode-extension
quekyj 196d1d2
remove example.dart
quekyj 9b99e6e
use new simulation method
quekyj 9e7f23c
Fix markdown lint
quekyj bac4fc7
update the config version code
quekyj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "root": true, | ||
| "parser": "@typescript-eslint/parser", | ||
| "parserOptions": { | ||
| "ecmaVersion": 6, | ||
| "sourceType": "module" | ||
| }, | ||
| "plugins": [ | ||
| "@typescript-eslint" | ||
| ], | ||
| "rules": { | ||
| "@typescript-eslint/naming-convention": "warn", | ||
| "@typescript-eslint/semi": "warn", | ||
| "curly": "warn", | ||
| "eqeqeq": "warn", | ||
| "no-throw-literal": "warn", | ||
| "semi": "off" | ||
| }, | ||
| "ignorePatterns": [ | ||
| "out", | ||
| "dist", | ||
| "**/*.d.ts" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| out | ||
| dist | ||
| node_modules | ||
| .vscode-test/ | ||
| *.vsix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| // See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
| // for the documentation about the extensions.json format | ||
| "recommendations": [ | ||
| "dbaeumer.vscode-eslint" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // A launch configuration that compiles the extension and then opens it inside a new window | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Run Extension", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "args": [ | ||
| "--extensionDevelopmentPath=${workspaceFolder}" | ||
| ], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/out/**/*.js" | ||
| ], | ||
| "preLaunchTask": "${defaultBuildTask}" | ||
| }, | ||
| { | ||
| "name": "Extension Tests", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "args": [ | ||
| "--extensionDevelopmentPath=${workspaceFolder}", | ||
| "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
| ], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/out/test/**/*.js" | ||
| ], | ||
| "preLaunchTask": "${defaultBuildTask}" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Place your settings in this file to overwrite default and user settings. | ||
| { | ||
| "files.exclude": { | ||
| "out": false // set this to true to hide the "out" folder with the compiled JS files | ||
| }, | ||
| "search.exclude": { | ||
| "out": true // set this to false to include "out" folder in search results | ||
| }, | ||
| // Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
| "typescript.tsc.autoDetect": "off" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
| // for the documentation about the tasks.json format | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "npm", | ||
| "script": "watch", | ||
| "problemMatcher": "$tsc-watch", | ||
| "isBackground": true, | ||
| "presentation": { | ||
| "reveal": "never" | ||
| }, | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": true | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| .vscode/** | ||
| .vscode-test/** | ||
| src/** | ||
| .gitignore | ||
| .yarnrc | ||
| vsc-extension-quickstart.md | ||
| **/tsconfig.json | ||
| **/.eslintrc.json | ||
| **/*.map | ||
| **/*.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Change Log | ||
|
|
||
| All notable changes to the "rohd" extension will be documented in this file. | ||
|
|
||
| Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| - Initial release | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| BSD 3-Clause License | ||
|
|
||
| Copyright (C) 2021-2023 Intel Corporation | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions are met: | ||
|
|
||
| 1. Redistributions of source code must retain the above copyright notice, this | ||
| list of conditions and the following disclaimer. | ||
|
|
||
| 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| this list of conditions and the following disclaimer in the documentation | ||
| and/or other materials provided with the distribution. | ||
|
|
||
| 3. Neither the name of the copyright holder nor the names of its | ||
| contributors may be used to endorse or promote products derived from | ||
| this software without specific prior written permission. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
| FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
| OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Visual Studio Code ROHD Snippets | ||
|
|
||
| This Visual Studio Code extension provides commonly used ROHD framework snippets, facilitating usage of auto-complete features. | ||
|
|
||
| ## What's ROHD | ||
|
|
||
| ROHD (pronounced as "road") is a framework for describing and verifying hardware using the Dart programming language. For more information about ROHD, please visit [https://intel.github.io/rohd-website/](https://intel.github.io/rohd-website). | ||
|
|
||
| ## Features | ||
|
|
||
| Currently, this extension follows the conventions in ROHD [v0.5.0](https://github.com/intel/rohd/releases/tag/v0.5.0). It suggests auto-completions when you start typing the prefixes as shown in the table below: | ||
quekyj marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| | Name | Prefix | Description | | ||
| | :---: | :---: | :--: | | ||
| | ROHD Counter Example | `example` | Generates an ROHD Counter Example | | ||
| | Module | `module` or `mod` or `Mod` or `Module` | Creates an ROHD Module Class | | ||
| | Sequential Logic | `seq` or `sequential` or `Seq` | Builds an ROHD Sequential Logic | | ||
| | Combinational Logic | `comb` | Constructs an ROHD Combinational Logic | | ||
| | Simple Assign (<=) | `assign` | Demonstrates an example of the Assignment Operator used outside combinational or sequential contexts | | ||
| | Conditional Assign (<) | `assign` | Demonstrates an example of the Assignment Operator used within combinational or sequential contexts | | ||
| | If | `if` or `If` | Constructs an 'IF' conditional block for use within sequential or combinational contexts | | ||
| | Case | `case` or `Case` | Creates a 'CASE' conditional block for use within sequential or combinational contexts | | ||
| | CaseZ | `caseZ` or `CaseZ` | Builds a 'CASEZ' conditional block for use within sequential or combinational contexts | | ||
| | Simulation | `sim` or `Simulator` or `simulation` | Templates a signal Simulation | | ||
| | Finite State Machine | `fsm` or `FSM` | Creates a Finite State Machine template example for simplified FSM usage | | ||
quekyj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## Reporting Issues | ||
|
|
||
| Issues on either ROHD or VSCode snippets should be filed in [https://github.com/intel/rohd/issues](https://github.com/intel/rohd/issues). | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.