12 lines
175 B
Coq
12 lines
175 B
Coq
|
module jyh_4490_3_divide(clkin,clkout);
|
||
|
input clkin;
|
||
|
output reg clkout=0;
|
||
|
|
||
|
reg [4:0] temp;
|
||
|
always@(posedge clkin)
|
||
|
begin
|
||
|
temp<=temp+1;
|
||
|
if(temp==0)
|
||
|
clkout=~clkout;
|
||
|
end
|
||
|
endmodule
|