Sri, Is it legal to declare a variable in one analog block, and then to assign to it in another analog block in another module (using an hierarchical name)? I hope not, but I don't see where in the LRM it is forbidden. Ken -----Original Message----- From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On Behalf Of Geoffrey.Coram Sent: Thursday, February 17, 2005 11:10 AM To: Chandrasekaran Srikanth-A12788; VerilogAMS Reflector Subject: analog vs digital domains of variables Hi, Sri - A certain commercial simulator started complaining about variables in my Verilog-A module that were declared but not assigned a value. The simulator took the view that if the variable is not assigned a value in the analog block (the analog context), then it is a digital variable. However, in this case, the variable was *declared* in a named block in the analog block. Is it not clear in this case that the variable belongs in the analog domain? Is it legal to declare a variable in the analog block and then assign a value to it in a digital context? If not, then should section 8.2.2 explictly say the domain is determined by where the variable is declared, or if declared at module scope, by where it is assigned. module am_i_legal(a); inout a; electrical a; analog begin : the_analog_block real x; V(a) <+ x; end initial begin the_analog_block.x=1; end endmodule -GeoffreyReceived on Thu Feb 17 09:10:14 2005
This archive was generated by hypermail 2.1.8 : Thu Feb 17 2005 - 09:10:22 PST