signed signal assignment

M

mobini

Guest
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
 
mobini wrote in message news:<d5e9aa28.0406050716.7528bbdb@posting.google.com>...

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
 

Welcome to EDABoard.com

Sponsor

Back
Top