What is a signal?

V

valtih1978

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?
 
R

rickman

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
 

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,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top