Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help in interface in verilog - One Clock Pulse?

Status
Not open for further replies.

digital-newbie

Newbie level 4
Joined
Feb 13, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,317
One Clock Pulse?

I am coding up an interface in verilog that requires me to send an acknowledge pulse signal that remains high for one clock period. I am stuck on how to do this. Any pointers?
 

Re: One Clock Pulse?

implementing one level request queue at receving side.
ACK = ~Queue_full & REQ;
Queue_push = REQ & ACK;
Queue_pop = ...
 

Re: One Clock Pulse?

Unfortunately, that does not help me any because I do not have a stack like structure. I am not sure how to generate a pulse that stays high for one clock cycle and goes low again. Any other suggestions would be appreciated. Thanks.
 

Re: One Clock Pulse?

digital-newbie said:
Unfortunately, that does not help me any because I do not have a stack like structure. I am not sure how to generate a pulse that stays high for one clock cycle and goes low again. Any other suggestions would be appreciated. Thanks.

Could you show your interface protocol?
such as request, ack,... how they are working?
 

One Clock Pulse?

If you are generating the ack signal on some request pos edge, it might be something like this ...

input req;
output ack;
reg req_reg;

always @(posedge clk)
begin
req_reg <= req;
end
assign ack = req & ~req_reg;
 

Re: One Clock Pulse?

digital-newbie said:
I am coding up an interface in verilog that requires me to send an acknowledge pulse signal that remains high for one clock period. I am stuck on how to do this. Any pointers?

You can use a flag for that purpuse !
 

Re: One Clock Pulse?

Thanks for the help guys. I figured it out. The protocol was something like this, I receive a req pulse, perform a read or write operation, then send read data and an ack pulse back after the transaction. The requester, will take in the read data when acknowledge is high. The way I accomplished it was converting that initial request signal into a level using a pulse to level converter, and then when my data is ready, convert that req level back into a pulse, using a level to pulse converter. Level to pulse and pulse to level circuits are very handy and simple. These circuits require a flip flop and an xor gate.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top