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.

Set signal high for one clock step

Status
Not open for further replies.

slirenem

Newbie level 6
Joined
Feb 3, 2012
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,388
Hi,

as in title, how to set signal to '1' for one clock time step and then go back to '0' in VHDL? It is kind of data_strobe signal.

Best regards
slir
 
Last edited:

Assuming you have some trigger to start this, one way of doing this (FSM):
if clk='1' and clk'event then
.
.
.
case state is
case idle =>
if trigger ='1' then
strobe<='1';
state<=s1;
else
strobe<='0';
state<=idle;
end if;
case s1 =>
strobe<='0';
if trigger='0' then
state<=idle;
else
state<=s1;
end if;
end case;
 

Whats the requirement? '1' for 1 clock after reset? does it have a trigger?

A state machine may be appropriate depending on your requirements, but may be overkill.
 

It is to inform UART controller to send prepared data. I set it to '1' when it is one of FSM state but don't want that UART repeat sending so after inform it I would like to set this signal to '0'.
 

just have a state that lasts for 1 clock cycle only
 

Aaa, and when others set to '0'. Thanks a lot :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top