futilehdl/doc/examples/match.fut

7 lines
88 B
Plaintext
Raw Normal View History

2022-04-07 10:53:34 +00:00
comb match_not(a: Logic<1>) -> Logic<8> {
match (a) {
1'1 => 8'10,
1'0 => 8'5
}
}