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
moduleErrorwhereimportCLaSH.PreludedataDat=ConRec | NopdataRec=Rec{testVec::Vec3Bool}topEntity::Dat->Vec3Bool
topEntity x = testVec h where
(Con h) = x
Is translated to:
entitytopEntity_0isport(x_i1 : instd_logic_vector(3downto0);
bodyVar_o : out array_of_boolean(2downto0));
end;
architecturestructuraloftopEntity_0issignal ds1_0 : array_of_boolean(2downto0);
signal h_1 : array_of_boolean(2downto0);
signal ds_2 : array_of_boolean(2downto0);
begin
ds1_0 <= ds_2;
h_1 <= (fromSL(x_i1(2))
,fromSL(x_i1(1))
,fromSL(x_i1(0)));
ds_2 <= h_1 when (x_i1(3downto3) ="0") else
(others=>'0');
bodyVar_o <= ds1_0;
end;
type array_of_boolean isarray (integerrange<>) ofboolean;
But the assignment to ds_2 should be:
ds_2 <= h_1 when (x_i1(3downto3) ="0") else
(others=>false);
Workaround:
moduleErrorwhereimportCLaSH.PreludedataDat=ConRec | NopdataRec=Rec{testVec::Vec3Bool}topEntity::Dat->Vec3Bool
topEntity x =case x of
(Con h) -> testVec h
_ ->undefined
The text was updated successfully, but these errors were encountered:
The following code:
Is translated to:
But the assignment to
ds_2
should be:Workaround:
The text was updated successfully, but these errors were encountered: