QUOTE(charge-n-go @ Apr 4 2006, 04:57 PM)
welcome [ r u g a ]. 
ERmm.. anyone knows how to extract certain bit from 'add' function?
Let's say,
SIGNAL a,b : STD_LOGIC_VECTOR (15 DOWNTO 0);
SIGNAL reg : STD_LOGIC_VECTOR (7 DOWNTO 0);
reg <= (a + b) from 15 downto 8.
What i mean is i need info from the added result A+B (bit 8 to bit 15) into reg. How can I actually do it in 1 clock only?
Thanx
reg must in 8 bit by definition? highlighted is not the actual syntax right? no "from 15 downto 8" right?ERmm.. anyone knows how to extract certain bit from 'add' function?
Let's say,
SIGNAL a,b : STD_LOGIC_VECTOR (15 DOWNTO 0);
SIGNAL reg : STD_LOGIC_VECTOR (7 DOWNTO 0);
reg <= (a + b) from 15 downto 8.
What i mean is i need info from the added result A+B (bit 8 to bit 15) into reg. How can I actually do it in 1 clock only?
Thanx
can i know in 1 clock means that must in 1 instruction line only?
sorry, too long din do vhdl oledi..
is it possible to shift a and b bits 1st before adding?
Apr 4 2006, 07:02 PM

Quote
0.0248sec
0.39
6 queries
GZIP Disabled