| Copyright | (C) 2019 Myrtle Software Ltd |
|---|---|
| License | BSD2 (see the file LICENSE) |
| Maintainer | Christiaan Baaij <christiaan.baaij@gmail.com> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Clash.Primitives.GHC.Literal
Description
Blackbox generation for literal data constructors. (System)Verilog only!
Synopsis
- assign :: Element -> [Element] -> [Element]
- signed :: Element -> [Element]
- signedLiteral :: Int -> Integer -> Element
- unsigned :: Element -> [Element]
- unsignedLiteral :: Int -> Integer -> Element
- literalTF :: NonEmpty Text -> (Bool -> [Either Term Type] -> Int -> (BlackBoxMeta, BlackBox)) -> BlackBoxFunction
Documentation
Arguments
| :: NonEmpty Text | Base names of constructors (for example: |
| -> (Bool -> [Either Term Type] -> Int -> (BlackBoxMeta, BlackBox)) | Functions processing |
| -> BlackBoxFunction |
Constructs "clean" literals.