Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Sign extension

Thread Tools

Sign extension

Alexis GABIN
Posts: n/a
Thanks you all for your usefull answers,

> Don't need any libraries or loops if you do this:
> data_out(11 downto 0) <= data_in;
> data_out(13 downto 12) <= (13 downto 12 => data_in(11));

I like this way but shouldn't it be? :
data_out(13 downto 12) <= (others => data_in(11));

Probably both work?, I will try myself to check



Reply With Quote
sabgg sabgg is offline
Junior Member
Join Date: May 2011
Posts: 1
Hi ;

how can I use this function (SXT) for an arithmetic fonction for exemple I want to do something like that : y<= (x+w)*z ;

I tried to use it in a code but I am on the wrong way can you help me please

thanks .

"sorry for my english"
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
$ sign to gb pound sign PWB Computer Support 6 02-19-2007 03:06 AM
Automatic sign-up and sign-in across different domains without cookies? Jimmy ASP .Net 1 11-21-2006 04:41 PM
Automatic sign-up and sign-in between different domains without cookies? Jimmy Javascript 3 11-20-2006 01:28 PM
J sign instead of ? sign Harold Potter esq. Computer Support 5 04-16-2005 02:19 PM
Supressing sign extension Dave C++ 4 10-10-2004 04:36 AM