leoklein
New Member
Offline
Posts: 2
|
Hi, I have an image sensor I want to stimulate from toplevel testbench. So there is no direct/port access to the photodiodes, but I can force them like this:
real I_Cathode; analog I("I_DUT.I_CORE.Cathode[0]",VSS) <+ transition(I_Cathode); I("I_DUT.I_CORE.Cathode[1]",VSS) <+ transition(I_Cathode); ...
But obviously I don't want to copy that line million of times, so I was searching for something like:
genvar i analog for (i=0;i<1e6;i=i+1) begin $swrite(s,"I_DUT.I_CORE.Cathode[%i]",i); I(s,VSS) <+ transition(I_Cathode[i]); end
But it is not working as: I(s,VSS) <+ transition(I_Cathode[gint]); | xmvlog: *E,EXPBON (...,114|11): Expecting only branch or node type arguments [5.2(AMSLRM)].
which is somehow expected. Does anybody know a working solution for that?
Best Regards, leo
|