Copyright | (C) 2015-2016 University of Twente 2017-2018 Google Inc. 2021-2023 QBayLogic B.V. 2022 Google Inc. |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | QBayLogic B.V. <devops@qbaylogic.com> |
Safe Haskell | None |
Language | Haskell2010 |
Generate Verilog for assorted Netlist datatypes
Synopsis
- data VerilogState
- include :: Monad m => [Text] -> Ap m Doc
- uselibs :: Monad m => [Text] -> Ap m Doc
- encodingNote :: Applicative m => HWType -> m Doc
- exprLit :: Lens' s (Maybe (Maybe Int)) -> Maybe (HWType, Size) -> Literal -> Ap (State s) Doc
- bits :: Lens' s (Maybe (Maybe Int)) -> [Bit] -> Ap (State s) Doc
- bit_char :: Lens' s (Maybe (Maybe Int)) -> Bit -> Ap (State s) Doc
- noEmptyInit :: (Monad m, Semigroup (m Doc)) => m Doc -> m Doc
- data Range
- continueWithRange :: [(Int, Int)] -> HWType -> Range -> (Range, HWType)
Documentation
data VerilogState Source #
State for the VerilogM
monad:
Instances
encodingNote :: Applicative m => HWType -> m Doc Source #
exprLit :: Lens' s (Maybe (Maybe Int)) -> Maybe (HWType, Size) -> Literal -> Ap (State s) Doc Source #
split ranges
Range slice, can be contiguous, or split into multiple sub-ranges