Skip to content

Commit

Permalink
remove interval and fixed point types
Browse files Browse the repository at this point in the history
These features were removed in firrtl v2.0.0
https://github.com/chipsalliance/firrtl-spec/releases/tag/v2.0.0
  • Loading branch information
ekiwi committed Aug 21, 2023
1 parent 3eb7fec commit d797bd0
Show file tree
Hide file tree
Showing 38 changed files with 117 additions and 1,538 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ object ResolveKindsBenchmark extends PassBenchmark(() => ResolveKinds)
object CheckHighFormBenchmark extends PassBenchmark(() => CheckHighForm)

object CheckWidthsBenchmark extends PassBenchmark(() => CheckWidths)

object InferBinaryPointsBenchmark extends PassBenchmark(() => new InferBinaryPoints)
29 changes: 0 additions & 29 deletions src/main/antlr4/FIRRTL.g4
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ dir
type
: 'UInt' ('<' intLit '>')?
| 'SInt' ('<' intLit '>')?
| 'Fixed' ('<' intLit '>')? ('<' '<' intLit '>' '>')?
| 'Interval' (lowerBound boundValue boundValue upperBound)? ('.' intLit)?
| 'Clock'
| 'AsyncReset'
| 'Reset'
Expand Down Expand Up @@ -211,23 +209,6 @@ intLit
| BinaryLit
;

lowerBound
: '['
| '('
;

upperBound
: ']'
| ')'
;

boundValue
: '?'
| DoubleLit
| UnsignedInt
| SignedInt
;

// Keywords that are also legal ids
keywordAsId
: 'circuit'
Expand All @@ -242,8 +223,6 @@ keywordAsId
| 'Reset'
| 'AsyncReset'
| 'Analog'
| 'Fixed'
| 'Interval'
| 'flip'
| 'wire'
| 'reg'
Expand Down Expand Up @@ -302,8 +281,6 @@ primop
| 'asAsyncReset('
| 'asSInt('
| 'asClock('
| 'asFixedPoint('
| 'asInterval('
| 'shl('
| 'shr('
| 'dshl('
Expand All @@ -321,12 +298,6 @@ primop
| 'bits('
| 'head('
| 'tail('
| 'incp('
| 'decp('
| 'setp('
| 'wrap('
| 'clip('
| 'squz('
;

/*------------------------------------------------------------------
Expand Down

0 comments on commit d797bd0

Please sign in to comment.