futilehdl/doc/examples/clockdiv.fut

13 lines
167 B
Plaintext
Raw Normal View History

2022-01-16 20:46:44 +00:00
module clockdiv_2 (
input wire clk,
input wire rst,
output wire out_clk
) {
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
}
}
}