Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > signed signal assignment

Reply
Thread Tools

signed signal assignment

 
 
mobini
Guest
Posts: n/a
 
      06-05-2004
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
 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      06-07-2004
mobini wrote in message news:<(E-Mail Removed). 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a signed binary number into a signed one ? Rob1bureau VHDL 1 02-27-2010 12:13 AM
Assignment to output signal from internal signal not istantaneous dibacco73 VHDL 1 02-12-2009 11:28 PM
Problem with initialising a signed signal Zheyu.Gao@googlemail.com VHDL 9 01-22-2009 07:13 PM
signed(12 downto 0) to signed (8 downto 0) kyrpa83 VHDL 1 10-17-2007 06:58 PM
"Target of signal assignment is not a signal" Nicolas Moreau VHDL 9 07-25-2007 04:21 PM



Advertisments