Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Assignment to output signal from internal signal not istantaneous

Thread Tools

Assignment to output signal from internal signal not istantaneous

dibacco73 dibacco73 is offline
Junior Member
Join Date: Feb 2009
Posts: 1
I have the following code snippet:

entity driver is
clk_o : out std_logic
end driver;
architecture rtl of driver is
signal i_clk : std_logic :='0';
i_clk <= NOT i_clk AFTER 100ns;
clk_o <= i_clk;

clk_o is delayed respect to i_clk, is this possible?

Thank you,
Reply With Quote
joris joris is offline
Senior Member
Join Date: Jan 2009
Posts: 152
Yes, clk_o is assigned a "delta" period of time after i_clk. It's by design of VHDL.
You can get around this by using a proces instead (making i_clk a variable instead of a signal)
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Target of signal assignment is not a signal" Nicolas Moreau VHDL 9 07-25-2007 04:21 PM
Re: How to make an internal signal embedded deep in hierarchy to a gloal output signal Weng Tianxiang VHDL 2 01-30-2007 12:58 PM
Assignment operator self-assignment check Chris C++ 34 09-26-2006 04:26 AM
Augument assignment versus regular assignment nagy Python 36 07-20-2006 07:24 PM
internal to internal NAT? Mike Cisco 1 04-21-2004 12:15 PM