sun_ray
Advanced Member level 3
- Joined
- Oct 3, 2011
- Messages
- 772
- Helped
- 5
- Reputation
- 10
- Reaction score
- 5
- Trophy points
- 1,298
- Activity points
- 6,828
Please provide a digital system or circuit to detect a pulse.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Can anybody please help to provide a digital circuit to detect a pulse where the pulse is being used as the input of the clock pin of a D flipflop?
Regards
Sure. See ads-ee's reply, with the addition of a constraint to suppress synthesis warnings.Can anybody please help to provide a digital circuit to detect a pulse where the pulse is being used as the input of the clock pin of a D flipflop?
This.How about giving us some of the specs ...
Please provide a digital system or circuit to detect a pulse.
module FED(in,clk,out);
input in,clk;
output out;
wire q0,q1;
D_FF D1(in,clk,q0),
D2(q0,clk,q1);
assign out=(q0 && !q1);
endmodule
module D_FF(d,clk,q);
input d,clk;
output reg q;
always@(negedge clk)
begin
q<=d;
end
endmodule