Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Bus reduction

Reply
Thread Tools

Bus reduction

 
 
Patrick
Guest
Posts: n/a
 
      06-07-2004
Hello everybody,

I'm very embarassed to reduce the width of a data bus from 14 to 12 bits...

I tried this

CONV_12 : process (RAZ,clock_dac1)
begin
if RAZ = '0' then
I_12 <= (others=>'0');
Q_12 <= (others=>'0');
elsif (clock_dac1'event and clock_dac1='1') then
I_12 <= I_filt(11 downto 0);
Q_12 <= Q_filt(11 downto 0);
end if;
end process CONV_12;

But like I_filt is signed, I forgot the sign in I_12 !!

Is there any theory about this ?

Thanks...
 
Reply With Quote
 
 
 
 
Egbert Molenkamp
Guest
Posts: n/a
 
      06-07-2004
I do not know which packages you are using but in case you use numeric_std
you have a function that can be used to resize objects of type unsigned and
type signed.
In your case where the length of the signed vector is reduced from 14 to 12
bits the sign bits will be the same:
I_12 <= resize(I_filt,12);

Egbert Molenkamp

"Patrick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> Hello everybody,
>
> I'm very embarassed to reduce the width of a data bus from 14 to 12

bits...
>
> I tried this
>
> CONV_12 : process (RAZ,clock_dac1)
> begin
> if RAZ = '0' then
> I_12 <= (others=>'0');
> Q_12 <= (others=>'0');
> elsif (clock_dac1'event and clock_dac1='1') then
> I_12 <= I_filt(11 downto 0);
> Q_12 <= Q_filt(11 downto 0);
> end if;
> end process CONV_12;
>
> But like I_filt is signed, I forgot the sign in I_12 !!
>
> Is there any theory about this ?
>
> Thanks...



 
Reply With Quote
 
 
 
Reply

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
Address Bus and External Data Bus Confusion LoXodonte A+ Certification 1 04-18-2006 09:09 PM
Nodeset Difference AKA Nodeset Reduction Bryan Galvin XML 2 09-29-2004 12:09 PM
NodeSet Reduction Bryan Galvin XML 3 06-14-2004 09:56 AM
Audio Noise, pop, and click reduction software - old LPs bobster Computer Support 3 03-02-2004 03:07 AM
AVI Size Reduction Martin Knight Computer Support 3 11-03-2003 07:38 AM



Advertisments