Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module test(delay,CLOCK_50)
- out reg delay;
- input CLOCK_50;
- reg [25:0] count;
- always @(posedge CLOCK_50)
- begin
- if (count==26'd49_999_999)
- begin
- count<=26'd0;
- delay<=1;
- end
- else
- begincount<=count+1;
- delay<=0;
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement