You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very easy to stumble into this with realToFrac:
{-# LANGUAGE ScopedTypeVariables #-}
moduleHiwhereimportClash.Prelude
{-# ANN test
((defSyn "test")
{ t_name = "test"
, t_inputs = [PortName "x"]
, t_output = PortName "out"
})
#-}
test::SignalSystem (SFixed1616)
->SignalSystem (SFixed1818)
test =fmaprealToFrac
Admittedly, realToFrac is defined in terms of toRational . fromRational so this may be something just Clash just can't reasonably be expected to implement. Afterall, I suspect that resizeF would be a better replacement for realToFrac in most cases.
The text was updated successfully, but these errors were encountered:
It is very easy to stumble into this with
realToFrac
:Admittedly,
realToFrac
is defined in terms oftoRational . fromRational
so this may be something just Clash just can't reasonably be expected to implement. Afterall, I suspect thatresizeF
would be a better replacement forrealToFrac
in most cases.The text was updated successfully, but these errors were encountered: