clash-vhdl-0.5.7: primitives/CLaSH.Sized.Internal.Index.json
[ { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.eq#"
, "type" : "eq# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] = ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.neq#"
, "type" : "neq# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] /= ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.lt#"
, "type" : "lt# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] < ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.ge#"
, "type" : "ge# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] >= ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.gt#"
, "type" : "gt# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] > ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.le#"
, "type" : "le# :: Index n -> Index n -> Bool"
, "templateE" : "~ARG[0] <= ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.maxBound#"
, "type" : "maxBound# :: KnownNat n => Index n"
, "templateE" : "to_unsigned(max(0,~LIT[0]-1),~RESULT'length);"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.+#"
, "type" : "(+#) :: KnownNat n => Index n -> Index n -> Index n"
, "templateE" : "~ARG[1] + ~ARG[2]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.-#"
, "type" : "(-#) :: KnownNat n => Index n -> Index n -> Index n"
, "templateE" : "~ARG[1] - ~ARG[2]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.*#"
, "type" : "(*#) :: KnownNat n => Index n -> Index n -> Index n"
, "templateE" : "resize(~ARG[1] * ~ARG[2], ~LIT[0])"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.fromInteger#"
, "type" : "fromInteger# :: KnownNat n => Integer -> Index n"
, "templateE" : "to_unsigned(~ARG[1],integer(ceil(log2(real(max(2,~LIT[0]))))))"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.quot#"
, "type" : "quot# :: Index n -> Index n -> Index n"
, "templateE" : "~ARG[0] / ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.rem#"
, "type" : "rem# :: Index n -> Index n -> Index n"
, "templateE" : "~ARG[0] rem ~ARG[1]"
}
}
, { "BlackBox" :
{ "name" : "CLaSH.Sized.Internal.Index.toInteger#"
, "type" : "toInteger# :: Index n -> Integer"
, "templateE" : "to_integer(~ARG[0])"
}
}
]