EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Delaying signal assignment

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - Delaying signal assignment

hssig
Guest

Fri Nov 19, 2010 12:38 pm   



How can I delay a signal in the following manner ?


signal clk : std_logic;
signal sig : std_logic;

process
begin
clk <= '1'; wait for 10 ns;
clk <= '0'; wait for 10 ns;
end process;

Now I want "sig" to be High for 50us, after that it should be assigned
the value of clk.

The following approach does not work:
sig <= '1', clk after 50 us;

Cheers, hssig

Andy
Guest

Fri Nov 19, 2010 5:25 pm   



On Nov 19, 4:38 am, hssig <hs...@gmx.net> wrote:
Quote:
How can I delay a signal in the following manner ?

signal clk : std_logic;
signal sig : std_logic;

process
begin
   clk <= '1'; wait for 10 ns;
   clk <= '0'; wait for 10 ns;
end process;

Now I want "sig" to be High for 50us, after that it should be assigned
the value of clk.

The following approach does not work:
sig <= '1', clk after 50 us;

Cheers, hssig

signal enable : boolean := false;
signal clk : std_logic := '0';
signal sig : std_logic := '1';

enable <= true after 50 us;

clk <= not clk after 10 ns;

sig <= clk when enable, else '1';

Andy

rickman
Guest

Fri Nov 19, 2010 5:54 pm   



On Nov 19, 5:38 am, hssig <hs...@gmx.net> wrote:
Quote:
How can I delay a signal in the following manner ?

signal clk : std_logic;
signal sig : std_logic;

process
begin
   clk <= '1'; wait for 10 ns;
   clk <= '0'; wait for 10 ns;
end process;

Now I want "sig" to be High for 50us, after that it should be assigned
the value of clk.

The following approach does not work:
sig <= '1', clk after 50 us;

Cheers, hssig

50us <= '1', '0' after 50 us;
sig <= clk or 50us;

Isn't that easy? Don't make things too hard by thinking about them
too much...

Rick

Dave
Guest

Sun Nov 21, 2010 1:00 pm   



On 19 Nov, 10:38, hssig <hs...@gmx.net> wrote:

Quote:
The following approach does not work:
sig <= '1', clk after 50 us;

Try:-

sig <= transport '1', clk after 50 us;

(this instructs the simulator to model sig as a transmission line)

hssig
Guest

Tue Nov 23, 2010 12:45 pm   



Quote:
Don't make things too hard by thinking about them
too much...

True point. Thank you for your suggestions.

Cheers, hssig

elektroda.net NewsGroups Forum Index - VHDL Language - Delaying signal assignment

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony