S
Saurabh Verma
Guest
Hi,
I am cofused with the use of constant at instance output. For
following examples:
suppose there is a module:
---------------
module master(out, in);
output out;
input in;
---------------
If we instantiate the above module in following way:
1.
reg a;
master inst1(1'b1, a);
2.
wire w1,w2;
master inst2(w1, w2);
3.
supply0 s1;
reg r1;
master inst3(s1, r1);
In above cases, '2' is OK, but what is the meaning of cases '1' and
'3', where we connect a constant to the output terminal. VCS doesn't
give any syntax error for this. What is the idea behind supporting
this kind of syntax.
Is it just for doing experiments with smulation, when we don't want to
see the output, but, just see the singal inside module through
hierarchical reference ..
--Thanks and Regards,
saurabh
I am cofused with the use of constant at instance output. For
following examples:
suppose there is a module:
---------------
module master(out, in);
output out;
input in;
---------------
If we instantiate the above module in following way:
1.
reg a;
master inst1(1'b1, a);
2.
wire w1,w2;
master inst2(w1, w2);
3.
supply0 s1;
reg r1;
master inst3(s1, r1);
In above cases, '2' is OK, but what is the meaning of cases '1' and
'3', where we connect a constant to the output terminal. VCS doesn't
give any syntax error for this. What is the idea behind supporting
this kind of syntax.
Is it just for doing experiments with smulation, when we don't want to
see the output, but, just see the singal inside module through
hierarchical reference ..
--Thanks and Regards,
saurabh