Skip to content

【session 2】在了解了约束后,对于Num2Bits电路突然产生了疑惑 #43

Discussion options

You must be logged in to vote

lc1不能伪造哈,lc1是一个var,不是signal,这个var是根据out计算出来的, 不是能自己随便给的,跟signal不一样。

这个电路里其实有in, out两个signal, lc1本质上是根据out signal计算出来的一个值,所以实际约束是:

  1. out必须是一个0/1数组
  2. out按位加和(即lc1)必须等于in

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HurmousDay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants