I have scoured these forums and the online guides and manuals for every bit of information on Spectre behavioral modelling with bsource, yet I've failed to come across any hint as to why I am having this problem. I am using Cadence release IC5141 icfb.exe version 5.1.0, CMOS IC Design Environment Version: Cadence 5.0.0 ,Virtuoso ADE with Spectre simulator. In my design I have elements that must be modelled as behavioral sources, with their CDF parameter set as a function of a certain node voltage on the schematics. For example ........
My Procedure for a Behavioral resistor
simulator lang = spectresubckt b_r (PLUS MINUS)parameter r = 10I1(PLUS MINUS) bsource r=rends b_r
simulator lang = spectre
subckt b_r (PLUS MINUS)
parameter r = 10
I1(PLUS MINUS) bsource r=r
~Behavioral resistor Symbol Created with a spectre view~
~Symbol for the SubCkt b_r inserted into the circuit on the schematic Editor~
~Create netlist~ V4 (net026 0) vsource dc=0 type=sine ample=5 freq=10K I33 (net026 net019) b_r r =v(26,0)*1000
My problem is that every time i use a voltage probe in the bsource expression it evaluates to zero. so r = v(26,0)*1000 gives me a short
but r = exp(2)*1000 Or r=10K evaluates correctly. I can not use voltage or current probes such as v(n1,n2) or i("6:0") in my bsource parameter expression, but It makes no sense because I should be able to especially since in spectre.out log file i see that my bsource is being accepted and processed by the software... What is missing here ?? ... Any suggestion would be greatly appreciated - Thank you..