futilehdl/doc/examples/clockdiv.fut

13 lines
175 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) {
match (not(rst)) {
2022-01-16 20:46:44 +00:00
0 => out_clk = 0,
1 => out_clk = not(out_clk)
2022-01-16 20:46:44 +00:00
}
}
}