PyHCL/docs/Semantic/Semantic.md

20 lines
246 B
Markdown

# Semantic
## Assignments
* `@=` and `@=`
```python
# io.sum @= a_xor_b ^ io.cin
io.sum @= a_xor_b ^ io.cin
```
## Control Flow
* `with when()` `with elsewhen()` and `with otherwise`
* `Mux`
```python
io.o @= Mux(io.i, a, b)
```
## Rules