diff options
Diffstat (limited to 'src/main/stanza/firrtl-ir.stanza')
| -rw-r--r-- | src/main/stanza/firrtl-ir.stanza | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/stanza/firrtl-ir.stanza b/src/main/stanza/firrtl-ir.stanza index f8f4abdb..02145678 100644 --- a/src/main/stanza/firrtl-ir.stanza +++ b/src/main/stanza/firrtl-ir.stanza @@ -176,35 +176,46 @@ public defstruct Pad <: Expression : type: Type with: (as-method => true) public definterface Stmt +public defmulti info (s:Stmt) -> FileInfo + public defstruct DefWire <: Stmt : ;LOW + info: FileInfo with: (as-method => true) name: Symbol type: Type public defstruct DefRegister <: Stmt : + info: FileInfo with: (as-method => true) name: Symbol type: Type public defstruct DefInstance <: Stmt : ;LOW + info: FileInfo with: (as-method => true) name: Symbol module: Expression public defstruct DefMemory <: Stmt : ;LOW + info: FileInfo with: (as-method => true) name: Symbol type: VectorType public defstruct DefNode <: Stmt : ;LOW + info: FileInfo with: (as-method => true) name: Symbol value: Expression public defstruct DefAccessor <: Stmt : + info: FileInfo with: (as-method => true) name: Symbol source: Expression index: Expression public defstruct Conditionally <: Stmt : + info: FileInfo with: (as-method => true) pred: Expression conseq: Stmt alt: Stmt public defstruct Begin <: Stmt : ;LOW body: List<Stmt> public defstruct OnReset <: Stmt : ;LOW + info: FileInfo with: (as-method => true) loc: Expression exp: Expression public defstruct Connect <: Stmt : ;LOW + info: FileInfo with: (as-method => true) loc: Expression exp: Expression public defstruct EmptyStmt <: Stmt ;LOW @@ -227,15 +238,18 @@ public defstruct Field : type: Type public defstruct Port : + info: FileInfo name: Symbol direction: Direction type: Type public defstruct Module : + info: FileInfo name: Symbol ports: List<Port> body: Stmt public defstruct Circuit : + info: FileInfo modules: List<Module> main: Symbol |
