signed signal assignment

M

mobini

Hi
I am trying to initialize my signed signal in below way
constant a140 : buf3_16 := (4096,7807, -3733);
or
L <= 1253;
when compiling it says "Type conflict in integer literal. Type signed
versus integer"
what can I do. How I can correct it?
thank you in advance
Nastaran
 
M

Mike Treseler

mobini wrote in message news: said:
L <= 1253;
when compiling it says "Type conflict in integer literal.
Type signed versus integer"

I'll assume L is unsigned:

use ieee.numeric_std.all;
-- . . .
begin
-- . . .
L <= to_unsigned(1253, L'length);


-- Mike Treseler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top