mirror of https://github.com/zachjs/sv2v.git
directory re-org; streamline build setup
This commit is contained in:
parent
107291e705
commit
7bc81ef67b
2
Makefile
2
Makefile
|
|
@ -4,7 +4,7 @@ all: sv2v
|
||||||
|
|
||||||
sv2v:
|
sv2v:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
stack install --allow-different-user --install-ghc --local-bin-path bin
|
stack install --install-ghc --local-bin-path bin
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
stack clean
|
stack clean
|
||||||
|
|
|
||||||
40
sv2v.cabal
40
sv2v.cabal
|
|
@ -1,49 +1,24 @@
|
||||||
name: sv2v
|
name: sv2v
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
|
|
||||||
category: Language, Hardware, Embedded
|
|
||||||
|
|
||||||
synopsis: SystemVerilog to Verilog conversion
|
synopsis: SystemVerilog to Verilog conversion
|
||||||
|
|
||||||
description:
|
description:
|
||||||
A tool for coverting SystemVerilog to Verilog. Also exposes a limited
|
A tool for coverting SystemVerilog to Verilog. Originally forked from the
|
||||||
SystemVerilog parser and AST. Forked from the Verilog parser found at
|
Verilog parser found at https://github.com/tomahawkins/verilog
|
||||||
https://github.com/tomahawkins/verilog
|
category: Language, Hardware, Embedded, Development
|
||||||
|
|
||||||
author: Zachary Snow <zach@zachjs.com>, Tom Hawkins <tomahawkins@gmail.com>
|
author: Zachary Snow <zach@zachjs.com>, Tom Hawkins <tomahawkins@gmail.com>
|
||||||
maintainer: Zachary Snow <zach@zachjs.com>
|
maintainer: Zachary Snow <zach@zachjs.com>
|
||||||
|
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
|
|
||||||
homepage: https://github.com/zachjs/sv2v
|
homepage: https://github.com/zachjs/sv2v
|
||||||
|
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
cabal-version: >= 1.10
|
cabal-version: >= 1.12
|
||||||
|
|
||||||
library
|
|
||||||
default-language: Haskell2010
|
|
||||||
build-tools:
|
|
||||||
alex >= 3 && < 4,
|
|
||||||
happy >= 1 && < 2
|
|
||||||
build-depends:
|
|
||||||
base >= 4.8.2.0 && < 5.0,
|
|
||||||
array >= 0.5.1.0 && < 0.6
|
|
||||||
|
|
||||||
exposed-modules:
|
|
||||||
Language.SystemVerilog
|
|
||||||
Language.SystemVerilog.AST
|
|
||||||
Language.SystemVerilog.Parser
|
|
||||||
Language.SystemVerilog.Parser.Lex
|
|
||||||
Language.SystemVerilog.Parser.Parse
|
|
||||||
Language.SystemVerilog.Parser.Preprocess
|
|
||||||
Language.SystemVerilog.Parser.Tokens
|
|
||||||
|
|
||||||
ghc-options: -W
|
|
||||||
|
|
||||||
executable sv2v
|
executable sv2v
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
main-is: sv2v.hs
|
main-is: sv2v.hs
|
||||||
|
hs-source-dirs: src
|
||||||
build-tools:
|
build-tools:
|
||||||
alex >= 3 && < 4,
|
alex >= 3 && < 4,
|
||||||
happy >= 1 && < 2
|
happy >= 1 && < 2
|
||||||
|
|
@ -54,7 +29,7 @@ executable sv2v
|
||||||
containers,
|
containers,
|
||||||
mtl
|
mtl
|
||||||
other-modules:
|
other-modules:
|
||||||
Args
|
-- SystemVerilog modules
|
||||||
Language.SystemVerilog
|
Language.SystemVerilog
|
||||||
Language.SystemVerilog.AST
|
Language.SystemVerilog.AST
|
||||||
Language.SystemVerilog.Parser
|
Language.SystemVerilog.Parser
|
||||||
|
|
@ -62,6 +37,7 @@ executable sv2v
|
||||||
Language.SystemVerilog.Parser.Parse
|
Language.SystemVerilog.Parser.Parse
|
||||||
Language.SystemVerilog.Parser.Preprocess
|
Language.SystemVerilog.Parser.Preprocess
|
||||||
Language.SystemVerilog.Parser.Tokens
|
Language.SystemVerilog.Parser.Tokens
|
||||||
|
-- Conversion modules
|
||||||
Convert
|
Convert
|
||||||
Convert.AlwaysKW
|
Convert.AlwaysKW
|
||||||
Convert.CaseKW
|
Convert.CaseKW
|
||||||
|
|
@ -71,6 +47,8 @@ executable sv2v
|
||||||
Convert.StarPort
|
Convert.StarPort
|
||||||
Convert.Typedef
|
Convert.Typedef
|
||||||
Convert.Traverse
|
Convert.Traverse
|
||||||
|
-- sv2v CLI modules
|
||||||
|
Args
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-O3
|
-O3
|
||||||
-threaded
|
-threaded
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue