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
bfafea5d
Commit
bfafea5d
authored
Feb 07, 2019
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiliation; trailing whitespace; added .gitignore
parent
363ca80a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
0 deletions
+9
-0
.gitignore
+2
-0
Data/BitVec.hs
+4
-0
Language/Verilog/AST.hs
+3
-0
Language/Verilog/Parser/Lex.x
+0
-0
Language/Verilog/Parser/Parse.y
+0
-0
Language/Verilog/Parser/Preprocess.hs
+0
-0
Language/Verilog/Parser/Tokens.hs
+0
-0
Language/Verilog/Simulator.hs
+0
-0
No files found.
.gitignore
0 → 100644
View file @
bfafea5d
*.swp
dist/
Data/BitVec.hs
View file @
bfafea5d
...
...
@@ -8,6 +8,7 @@ module Data.BitVec
)
where
import
Data.Bits
import
Data.Semigroup
data
BitVec
=
BitVec
Int
Integer
deriving
(
Show
,
Eq
)
...
...
@@ -39,6 +40,9 @@ instance Bits BitVec where
isSigned
_
=
False
popCount
(
BitVec
_
v
)
=
popCount
v
instance
Semigroup
BitVec
where
(
<>
)
=
mappend
instance
Monoid
BitVec
where
mempty
=
BitVec
0
0
mappend
(
BitVec
w1
v1
)
(
BitVec
w2
v2
)
=
BitVec
(
w1
+
w2
)
(
shiftL
v1
w2
.|.
v2
)
...
...
Language/Verilog/AST.hs
View file @
bfafea5d
...
...
@@ -17,6 +17,7 @@ module Language.Verilog.AST
import
Data.Bits
import
Data.List
import
Data.Maybe
import
Data.Semigroup
import
Text.Printf
import
Data.BitVec
...
...
@@ -210,6 +211,8 @@ instance Bits Expr where
bit
=
error
"Not supported: bit"
popCount
=
error
"Not supported: popCount"
instance
Semigroup
Expr
where
(
<>
)
=
mappend
instance
Monoid
Expr
where
mempty
=
0
...
...
Language/Verilog/Parser/Lex.x
View file @
bfafea5d
Language/Verilog/Parser/Parse.y
View file @
bfafea5d
Language/Verilog/Parser/Preprocess.hs
View file @
bfafea5d
Language/Verilog/Parser/Tokens.hs
View file @
bfafea5d
Language/Verilog/Simulator.hs
View file @
bfafea5d
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