presumable finished implementing types for process...

This commit is contained in:
Yehowshua Immanuel 2024-12-09 00:03:46 -05:00
parent 405d6ecc55
commit 43ae657a5b
2 changed files with 21 additions and 7 deletions

View file

@ -31,7 +31,8 @@ module RTLILParser.AST (
CellBodyStmt(..),
-- Processes
DestSigSpec(..), SrcSigSpec(..), AssignStmt(..),
Process(..), ProcStmt(..), ProcessBody(..), AssignStmt(..),
DestSigSpec(..), SrcSigSpec(..),
-- Switches
Switch(..), SwitchStmt(..), Case(..), CaseStmt(..), Compare(..),
@ -39,6 +40,8 @@ module RTLILParser.AST (
-- Syncs
Sync(..), SyncStmt(..), SyncType(..), UpdateStmt(..)
) where
import Text.Read (Lexeme(Ident))
@ -131,7 +134,15 @@ data CellBodyStmt = CellBodyParameter
deriving (Show)
-- Processes
-- data ProcessBody = ProcessBody [AssignStmt]
data Process = Process ProcStmt [AttrStmt] ProcessBody
deriving (Show)
data ProcStmt = ProcStmt Id deriving (Show)
data ProcessBody = ProcessBody
[AssignStmt]
Switch
[AssignStmt]
[Sync]
deriving (Show)
data AssignStmt = AssignStmt DestSigSpec SrcSigSpec
deriving (Show)
data DestSigSpec = DestSigSpec SigSpec deriving (Show)