Part of a ranged signal

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

Reply to
KCL
Loading thread data ...

Reply to
Mike Treseler

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:

Reply to
Christian Schneider

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...

Reply to
KCL

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.