Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > What is a signal?

Reply
Thread Tools

What is a signal?

 
 
valtih1978
Guest
Posts: n/a
 
      01-26-2013
Does

signal A: bit_vector(1 to 5);

define 1 signal, A or 5 elementary signals or 6 signals, one for A and 5
elements?

Is A(3 to 5) also a signal? If so, then, does the declaration define
2^32 signals, for every aggregate we can combine?

What is the target signal in 'A(1) <= value'? Is it an element,
composite or both?
 
Reply With Quote
 
 
 
 
rickman
Guest
Posts: n/a
 
      01-28-2013
On 1/26/2013 6:41 PM, Alan Fitch wrote:
> On 26/01/13 16:18, valtih1978 wrote:
>> Does
>>
>> signal A: bit_vector(1 to 5);
>>
>> define 1 signal, A or 5 elementary signals or 6 signals, one for A and 5
>> elements?
>>
>> Is A(3 to 5) also a signal? If so, then, does the declaration define
>> 2^32 signals, for every aggregate we can combine?
>>
>> What is the target signal in 'A(1)<= value'? Is it an element,
>> composite or both?
>>

>
> See section 4.3 of the 2002 LRM
>
> "There are four classes of objects: constants, signals, variables, and
> files. The variable class of objects also has an additional subclass:
> shared variables. The class of an explicitly declared object is
> specified by the reserved word that must or may appear at the beginning
> of the declaration of that object.
>
> For a given object of a composite type, each subelement of that object
> is itself an object of the same class and subclass, if any, as the given
> object. The value of a composite object is the aggregation of the values
> of its subelements."
>
> So an element of signal A in your example is also a signal.


He also asked about A(3 to 5) ect, but I don't think that makes 2^32
signals. I think this makes 2^5 - 1 = 31. The null set of coefficients
shouldn't be a signal... A() I mean.

Rick
 
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




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57