Skip to content

Commit

Permalink
Add memInitV2C cell
Browse files Browse the repository at this point in the history
  • Loading branch information
dopamane committed Jul 24, 2024
1 parent 796ea70 commit 8c1ce27
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/Bayeux/Rtl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ module Bayeux.Rtl
, modFloorC
, -- *** Multiplexers
muxC
, -- *** Memories
memInitV2C
, -- ** Processes
Process(..)
, ProcStmt(..)
Expand Down Expand Up @@ -547,6 +549,29 @@ muxC cellId w a b s y = Cell
]
CellEndStmt

memInitV2C
:: CellId
-> Constant -- ^ MEMID
-> Constant -- ^ ABITS
-> Constant -- ^ WIDTH
-> Constant -- ^ WORDS
-> Constant -- ^ PRIORITY
-> SigSpec -- ^ ADDR
-> SigSpec -- ^ DATA
-> Cell
memInitV2C cellId memId aBits w wrds p a d= Cell
[]
(CellStmt "$meminit_v2" cellId)
[ CellParameter Nothing "\\MEMID" memId
, CellParameter Nothing "\\ABITS" aBits
, CellParameter Nothing "\\WIDTH" w
, CellParameter Nothing "\\WORDS" wrds
, CellParameter Nothing "\\PRIORITY" p
, CellConnect "\\ADDR" a
, CellConnect "\\DATA" d
]
CellEndStmt

data Process = Process [AttrStmt] ProcStmt ProcessBody ProcEndStmt
deriving (Eq, Read, Show)

Expand Down

0 comments on commit 8c1ce27

Please sign in to comment.