We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to translate something containing the type Maybe (Index n) to VHDL the compiler dies with:
Maybe (Index n)
CLaSH.Backend.VHDL(619): toSLV: ty:Index 8 expr: Identifier "repANF_0" Nothing
Translating to (System)Verilog works without problems.
I have distilled it down to a simple test case:
module TestIndex where import CLaSH.Prelude type NrI = Index 8 type NrU = Unsigned 3 topEntity = c1 -- crashes c1 :: Signal (Maybe NrI) -> Signal (Maybe NrI) c1 = fmap (fmap (+1)) -- but this works fine c2 :: Signal (Maybe NrU) -> Signal (Maybe NrU) c2 = fmap (fmap (+1)) -- and this also works c3 :: Signal NrI -> Signal NrI c3 = fmap (+1)
The text was updated successfully, but these errors were encountered:
Seems that a line like:
toSLV (Index _) e = "std_logic_vector" <> parens (expr_ False e)
is missing from https://github.com/clash-lang/clash-compiler/blob/master/clash-vhdl/src/CLaSH/Backend/VHDL.hs#L596
Sorry, something went wrong.
1e6b7be
No branches or pull requests
When trying to translate something containing the type
Maybe (Index n)
to VHDL the compiler dies with:Translating to (System)Verilog works without problems.
I have distilled it down to a simple test case:
The text was updated successfully, but these errors were encountered: