PyHCL/docs/Semantic/Semantic.md

246 B

Semantic

Assignments

  • @= and @=
# io.sum @= a_xor_b ^ io.cin
io.sum @= a_xor_b ^ io.cin

Control Flow

  • with when() with elsewhen() and with otherwise

  • Mux

io.o @= Mux(io.i, a, b)

Rules