problem in instantiation :-

14 views
Skip to first unread message

satishdevrari

unread,
Feb 11, 2013, 12:24:23 AM2/11/13
to vlsiat...@googlegroups.com
incise u1 ( .in1(in2));

in this statement in1 has 8 bits and in2 has 6 bits . i m getting error  pls remove it . dont Change no of bits .

Prabuddh Nahata

unread,
Feb 11, 2013, 2:12:00 AM2/11/13
to vlsiat...@googlegroups.com
It depends on the error what you are getting. I had checked this i am not getting error basically.

On Mon, Feb 11, 2013 at 10:54 AM, satishdevrari <satish...@gmail.com> wrote:
incise u1 ( .in1(in2));

in this statement in1 has 8 bits and in2 has 6 bits . i m getting error  pls remove it . dont Change no of bits .

--
You received this message because you are subscribed to the Google Groups "vlsiatincise" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vlsiatincise...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Satish Devrari

unread,
Feb 11, 2013, 4:00:44 AM2/11/13
to vlsiat...@googlegroups.com

srry sir 

actually i m asking for code give below
incise w(.b(a[6:0]))
this statement  showing( UNDEFINED VERIALBLE a) can u help me how to remove this error. with reasons pls

Satish Devrari

unread,
Feb 11, 2013, 4:05:00 AM2/11/13
to vlsiat...@googlegroups.com
module  sonu (a);
  input [6:0] a ;
endmodule

module sin;
  reg [8:0] b;
  
  sonu www(.b(a[6:0]));
  
endmodule

Satish Devrari

unread,
Feb 11, 2013, 4:18:21 AM2/11/13
to vlsiat...@googlegroups.com

sir 

actually this is the code which i have written . and i want to ask can i connect   8 bit b with 6 bit a as following i have wrriten. 



module  sonu (a);
  input [6:0] a ;
endmodule

module sin;
  reg [8:0] b;
  
  sonu www(.a(b[8:0]));
  
endmodule

Prabuddh Nahata

unread,
Feb 11, 2013, 4:20:02 AM2/11/13
to vlsiat...@googlegroups.com
In this basically u did the wrong instantiation b will be inside and a will outside with "." operator. And you cannot connect a 8 bit bus to two sources by dividing bits (i.e 4 bit to one and remainning to other) this is wrong method. because u cannot drive a bus with two different resources. 

Satish Devrari

unread,
Feb 11, 2013, 4:23:54 AM2/11/13
to vlsiat...@googlegroups.com
 dear sir 
thank u .
regards 
satish devrari
Reply all
Reply to author
Forward
0 new messages