The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 1:08pm
Pages: 1
Send Topic Print
instantiation of cells doesn't work (Read 1013 times)
Sherif
New Member
*
Offline



Posts: 7

instantiation of cells doesn't work
Jul 20th, 2016, 5:51am
 
Hey everyone,

Does anyone have a good experience with the instantiation of different cells in the same verilogams file?

I'm building a testbench and want to instantiate two instances that have the same name but exist in different libraries, one is schematic and the other one is veriloga.

What I did is the following:
     cell1
     (*
     integer library_binding = "Lib1";
     integer view_binding = "veriloga";
     *) dutvams (
           .x(dutvams_x),
           .y(dutvams_y),
           .z(dutvams_z)
     );
     cell2
     (*
     integer library_binding = "Lib2";
     integer view_binding = "schematic";
     *) dutsch (
           .x(dutsch _x),
           .y(dutsch _y),
           .z(dutsch _z)
     );
I'm also including the path to the veriloga model at the beginning of the verilogams file.

What happens is that when it compiles, it ignores the attributes in between the asterisks completely no matter what I'm tossing in, would only generate syntax errors if it's wrong and generates two schematic instances for Lib2.

When I change the name of the veriloga cell to a different name than the one for the schematic, it works properly.

I don't know what I'm missing here! Any help would be appreciated, thanks Smiley
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: instantiation of cells doesn't work
Reply #1 - Jul 20th, 2016, 6:22am
 
It seems what you're really objecting to is that your simulator is ignoring the attributes (* ... *) during elaboration -- not that "instantiation doesn't work."

The latest VAMS LRM 2.4 has a different syntax than what you used; it would be
Code:
cell1
(*
library_binding = "Lib1",
view_binding = "veriloga"
*)
 



But, in any case, support for attributes is tool-specific, and not really part of the language itself.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Sherif
New Member
*
Offline



Posts: 7

Re: instantiation of cells doesn't work
Reply #2 - Jul 20th, 2016, 6:34am
 
Thanks Geo for your reply!
I'm using virtuoso IC6.1.6 and I think the syntax that I used is the one supported in the simulator. Could there be a check box or something to enable to get this attributes working?
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: instantiation of cells doesn't work
Reply #3 - Jul 24th, 2016, 12:52am
 
Normally you select between views of the same cell. I think it is possible that what you are trying to do is not supported in the simulator.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Sherif
New Member
*
Offline



Posts: 7

Re: instantiation of cells doesn't work
Reply #4 - Jul 29th, 2016, 6:20am
 
I solved the problem, it needed a config file to go through the elaboration phase. I was working on the VerilogAMS Editor and the Extract button on it seems to only compile the code without elaborating it. The update button on the hierarchy editor does it properly. Thanks everyone!
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.