class A(Module): io = IO() a = Wire(U.w(8)) b = Wire(U.w(8)) c = Wire(U.w(8)) with otherwise(): c <<= a + b
class A(Module): io = IO() a = Wire(U.w(8)) b = Wire(U.w(8)) c = Wire(U.w(8)) with when(U(0)): b <<= a + c with otherwise(): c <<= a + b
class A(Module): io = IO() a = Wire(U.w(8)) b = Wire(U.w(8)) c = Wire(U.w(8)) a <<= b with when(U(0)): a <<= b + c c <<= a with else_when(U(1)): b <<= a + c with when(U(0)): b <<= a with otherwise(): c <<= a with otherwise(): c <<= a + b c <<= a + b c <<= a + b c <<= a + b