Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
68b6eae4
Commit
68b6eae4
authored
Apr 18, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated documentation
parent
36db47fa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
README.md
+17
-4
src/Job.hs
+1
-1
test/relong/README.md
+5
-1
No files found.
README.md
View file @
68b6eae4
...
@@ -43,14 +43,16 @@ You must have [Stack] installed to build sv2v.
...
@@ -43,14 +43,16 @@ You must have [Stack] installed to build sv2v.
[
Stack
]:
https://www.haskellstack.org/
[
Stack
]:
https://www.haskellstack.org/
```
```
git clone https://github.com/zachjs/sv2v
git clone https://github.com/zachjs/sv2v
.git
cd sv2v
cd sv2v
stack setup
make
make
```
```
This creates the executable at
`./bin/sv2v`
. You can install the binary by
This creates the executable at
`./bin/sv2v`
. Stack takes care of installing
running
`stack install`
.
exact (compatible) versions of the compiler and sv2v's build dependencies.
You can install the binary to your local bin path (typically
`~/.local/bin`
) by
running
`stack install`
, or copy over the executable manually.
## Usage
## Usage
...
@@ -75,6 +77,17 @@ Common flags:
...
@@ -75,6 +77,17 @@ Common flags:
```
```
## Supported Features
sv2v supports most synthesizable SystemVerilog features. Current notable
exceptions include
`package`
/
`import`
/
`export`
, interfaces _with parameter
bindings_, and complex (non-identifier)
`modport`
expressions. Assertions are
also supported, but are simply dropped during conversion.
If you find a bug or have a feature request, please create an issue. Preference
will be given to issues which include examples or test cases.
## SystemVerilog Frontend
## SystemVerilog Frontend
This project contains a preprocessor and lexer, a parser, and an abstract syntax
This project contains a preprocessor and lexer, a parser, and an abstract syntax
...
...
src/Job.hs
View file @
68b6eae4
...
@@ -31,7 +31,7 @@ defaultJob = Job
...
@@ -31,7 +31,7 @@ defaultJob = Job
,
define
=
def
&=
typ
"NAME[=VALUE]"
&=
help
"define a macro for preprocessing"
,
define
=
def
&=
typ
"NAME[=VALUE]"
&=
help
"define a macro for preprocessing"
}
}
&=
program
"sv2v"
&=
program
"sv2v"
&=
summary
"sv2v v0.0.1, (C)
Zachary Snow 2019, Tom Hawkins, 2011-2015
"
&=
summary
"sv2v v0.0.1, (C)
2019 Zachary Snow, 2011-2015 Tom Hawkins
"
&=
details
[
"sv2v converts SystemVerilog to Verilog."
&=
details
[
"sv2v converts SystemVerilog to Verilog."
,
"More info: https://github.com/zachjs/sv2v"
]
,
"More info: https://github.com/zachjs/sv2v"
]
...
...
test/relong/README.md
View file @
68b6eae4
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
These tests are borrowed from Reid Long's
[
HDL Examples
These tests are borrowed from Reid Long's
[
HDL Examples
repository](https://bitbucket.org/ReidLong/hdl-examples). That repository was
repository](https://bitbucket.org/ReidLong/hdl-examples). That repository was
intended to provide examples for how the conversions in this project could be
intended to provide examples for how the conversions in this project could be
done.
done. sv2v does not necessarily convert code as demonstrated in the examples.
Notably, sv2v does not create
`generate`
blocks when converted vectors with
multiple packed dimensions, uses
`localparam`
s rather than macros for
`enum`
conversion, and converts
`struct`
literals to concatenations, rather than
multiple statements.
Each test case (say, "foo") is comprised of the following files:
Each test case (say, "foo") is comprised of the following files:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment