Part of a ranged signal

Mar 01, 2005 3 Replies

Hi,



I want to declare signal using range 0 to A and then only to take some MSB of this signal how can I do??



at the start my code was



generic( B: integer ) ..... signal temp (B downto 0); signal temp2(B-3 downto 0); .... temp2


If your question is only VHDL related, then the real gurus can be found in comp.lang.vhdl.

Anyway, using "to" is not recommended, but you can use a for .. loop to convert "downto" to "to" bit by bit.

Chris

KCL wrote:

In fact the problem is not on the translation to downto to to that was for the bit extraction but I did'nt know comp.lang.vhdl so thank for the tip

I will ask there

Regards

Alexis

"Christian Schneider" a écrit dans le message de news: d053r3$elj$ snipped-for-privacy@online.de...

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required