Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPAQUE pragma #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Ice40/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
|]) #-}

-- | IO primitive, see io for wrapper
{-# NOINLINE ioPrim #-}
{-# OPAQUE ioPrim #-}

Check warning on line 70 in src/Ice40/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 70 in src/Ice40/IO.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
ioPrim
:: BitVector 6 -- ^ pinType
-> Bit -- ^ pullup
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Led.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
]
|]) #-}

{-# NOINLINE ledPrim #-}
{-# OPAQUE ledPrim #-}

Check warning on line 82 in src/Ice40/Led.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 82 in src/Ice40/Led.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
ledPrim
:: Signal dom Bit -- ARG[0] leddcs - CS to write LEDD IP registers
-> Clock dom -- ARG[1] leddclk - Clock to write LEDD IP registers
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Mac/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
|]) #-}

-- | Multiply-Accumulate primitive
{-# NOINLINE macPrim #-}
{-# OPAQUE macPrim #-}

Check warning on line 137 in src/Ice40/Mac/Prim.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 137 in src/Ice40/Mac/Prim.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
macPrim
:: Bit -- ^ negTrigger
-> Bit -- ^ aReg
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Osc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
]
|]) #-}

{-# NOINLINE hfPrim #-}
{-# OPAQUE hfPrim #-}

Check warning on line 89 in src/Ice40/Osc.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 89 in src/Ice40/Osc.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
hfPrim
:: KnownDomain dom -- ARG[0]
=> KnownDomain dom' -- ARG[1]
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Rgb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
-- +-----------------------+-------------------+-------------------+
-- | "0b111111" | 24mA | 12mA |
-- +-----------------------+-------------------+-------------------+
{-# NOINLINE rgbPrim #-}
{-# OPAQUE rgbPrim #-}

Check warning on line 91 in src/Ice40/Rgb.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 91 in src/Ice40/Rgb.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
rgbPrim
:: String -- ^ currentMode - Parameter values: "0b0" = Full Current Mode (Default), "0b1" = Half Current Mode.
-> String -- ^ rgb0Current
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Spi.hs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
]
|]) #-}

{-# NOINLINE spiPrim #-}
{-# OPAQUE spiPrim #-}

Check warning on line 230 in src/Ice40/Spi.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 230 in src/Ice40/Spi.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
spiPrim
:: String -- ARG[0] busAddr
-> Clock dom -- ARG[1] sbclki
Expand Down
2 changes: 1 addition & 1 deletion src/Ice40/Spram.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
data Nyb = Nyb3 | Nyb2 | Nyb1 | Nyb0

-- | Single port RAM primitive
{-# NOINLINE spramPrim #-}
{-# OPAQUE spramPrim #-}

Check warning on line 57 in src/Ice40/Spram.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma

Check warning on line 57 in src/Ice40/Spram.hs

View workflow job for this annotation

GitHub Actions / ubuntu-20.04 GHC 9.0

Unrecognised pragma
spramPrim
:: KnownDomain dom -- ARG[0]
=> Clock dom -- ^ clock
Expand Down