The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 8:27am
Pages: 1
Send Topic Print
Module instantiation in topmodules? (Read 3100 times)
somisetty
Community Member
***
Offline



Posts: 64

Module instantiation in topmodules?
Nov 06th, 2009, 5:26am
 
module inverter(vout, vde, vin, vss);inout vout;
electrical vout, vde, vin, vss;
input vde, vin, vss;

  analog begin

     vout_val = !(logic_in) ? vlogic_high : vlogic_low;

     V(vout) <+ transition( vout_val, tdel, trise, tfall);
  end
endmodule


module nand(vout, vde, vin1, vin2, vss);
inout vout;
electrical vout, vde, vin1, vin2, vss;
input vde, vin1, vin2, vss;

  analog begin

     vout_val = !(logic1 && logic2) ? vlogic_high : vlogic_low;

     V(vout) <+ transition( vout_val, tdel, trise, tfall);
  end
endmodule

module toplevel(v1, v2, vout_final)
how to instantiate above two modules in this module?
endmodule

Schematic is given below...



Back to top
 

topmodule.JPG
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: Module instantiation in topmodules?
Reply #1 - Nov 6th, 2009, 6:57am
 
Somisetty,
see Verilog-AMS spec (http://www.designers-guide.org/VerilogAMS/vams231.pdf) page 121 for an example.
BOE
PS: What is logicXXX in your code?
Back to top
 
 
View Profile   IP Logged
Riad KACED
Community Member
***
Offline



Posts: 93
Swindon, UK
Re: Module instantiation in topmodules?
Reply #2 - Nov 6th, 2009, 10:37am
 
Hi somisetty,

What don't you try the solutions we have provided in your previous post ?
2. Why don't you serach a bit this form as there are tons of exmaple already there ? Look at http://www.designers-guide.org/Books/dg-vams/index.html for example.
3. Why don't you look at the verilog-AMS documentation which provided in your IUS stream ?

You need to help yourself a bit ...
BTW, the codes you have provided are noing going to pass the compiler I'm afraid ...

Cheers,
Riad.
Back to top
 
 

Riad KACED
PDK, EDA Support Engineer.
View Profile   IP Logged
somisetty
Community Member
***
Offline



Posts: 64

Re: Module instantiation in topmodules?
Reply #3 - Nov 6th, 2009, 9:51pm
 
Thank you very much
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.