futilehdl/doc/examples/clockdiv.fut

13 lines
146 B
Plaintext
Raw Normal View History

2022-01-16 20:46:44 +00:00
module clockdiv_2 (
2022-02-02 00:13:33 +00:00
clk: Logic,
rst: Logic
) -> Logic
{
2022-01-16 20:46:44 +00:00
proc (clk) {
2022-01-17 18:20:51 +00:00
match (~rst) {
2022-01-16 20:46:44 +00:00
0 => out_clk = 0,
2022-01-17 18:20:51 +00:00
1 => out_clk = ~out_clk
2022-01-16 20:46:44 +00:00
}
}
}