now parsing memory statements
This commit is contained in:
parent
cbbc7e73bd
commit
38fb13556f
6 changed files with 103 additions and 24 deletions
14
atoms.txt
14
atoms.txt
|
@ -5,8 +5,8 @@
|
|||
- [x] <decimal-digit> ::= “0” | “1” | “2” | “3” | “4” | “5” | “6” | “7” | “8” | “9”
|
||||
- [x] <binary-digit> ::= “0” | “1” | “x” | “z” | “m” | “-“
|
||||
- [x] <integer> ::= “-“? <decimal-digit>+
|
||||
- [ ] <file> ::= <autoidx-stmt>? <module>*
|
||||
- [x] <autoidx-stmt> ::= “autoidx” <integer> <eol>
|
||||
- [ ] <file> ::= <autoidx-stmt>? <module>*
|
||||
- [ ] <module> ::= <attr-stmt>* <module-stmt> <module-body> <module-end-stmt>
|
||||
- [x] <module-stmt> ::= “module” <id> <eol>
|
||||
- [ ] <module-body> ::= (<param-stmt> | <wire> | <memory> | <cell> | <process> )*
|
||||
|
@ -14,12 +14,12 @@
|
|||
- [x] <constant> ::= <value> | <integer> | <string>
|
||||
- [x] <module-end-stmt> ::= “end” <eol>
|
||||
- [x] <attr-stmt> ::= “attribute” <id> <constant> <eol>
|
||||
- [ ] <sigspec> ::= <constant> | <wire-id> | <sigspec> “[” <integer> (“:” <integer>)? “]” | “{” <sigspec>* “}”
|
||||
- [ ] <conn-stmt> ::= “connect” <sigspec> <sigspec> <eol>
|
||||
- [ ] <wire> ::= <attr-stmt>* <wire-stmt>
|
||||
- [ ] <wire-stmt> ::= “wire” <wire-option>* <wire-id> <eol>
|
||||
- [ ] <wire-id> ::= <id>
|
||||
- [ ] <wire-option> ::= “width” <integer> | “offset” <integer> | “input” <integer> | “output” <integer> | “inout” <integer> | “upto” | “signed”
|
||||
- [x] <sigspec> ::= <constant> | <wire-id> | <sigspec> “[” <integer> (“:” <integer>)? “]” | “{” <sigspec>* “}”
|
||||
- [x] <conn-stmt> ::= “connect” <sigspec> <sigspec> <eol>
|
||||
- [x] <wire> ::= <attr-stmt>* <wire-stmt>
|
||||
- [x] <wire-stmt> ::= “wire” <wire-option>* <wire-id> <eol>
|
||||
- [x] <wire-id> ::= <id>
|
||||
- [x] <wire-option> ::= “width” <integer> | “offset” <integer> | “input” <integer> | “output” <integer> | “inout” <integer> | “upto” | “signed”
|
||||
- [ ] <memory> ::= <attr-stmt>* <memory-stmt>
|
||||
- [ ] <memory-stmt> ::= “memory” <memory-option>* <id> <eol>
|
||||
- [ ] <memory-option> ::= “width” <integer> | “size” <integer> | “offset” <integer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue