add more examples
This commit is contained in:
parent
af2e22aaad
commit
7411ad59ad
|
@ -0,0 +1,5 @@
|
||||||
|
proc counter() -> Logic<8> {
|
||||||
|
reg count = 8'0;
|
||||||
|
count = count + 1;
|
||||||
|
count
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
comb match_not(a: Logic<1>) -> Logic<8> {
|
||||||
|
match (a) {
|
||||||
|
1'1 => 8'10,
|
||||||
|
1'0 => 8'5
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue