Activity for Alaqmar Karampurwala

  • Alaqmar Karampurwala Alaqmar Karampurwala modified a comment on discussion ngspice-users

    Im trying to simulate a 5 bit switch(in XSCHEM) so i want to switch on and off my 5 voltage sources according to the binary code for ex:if 00001 then V1 will be 1.2 and all other 0 i have written this control block but i get the only single param supported error any idea how to debug this? .param temp=27 .control let loop = 32 let counter=0 repeat $&loop * --- Bit Extraction Logic --- let b0 = counter % 2 let temp1 = floor(counter / 2) let b1 = temp1 % 2 let temp2 = floor(temp1 / 2) let b2 = temp2...

  • Alaqmar Karampurwala Alaqmar Karampurwala posted a comment on discussion ngspice-users

    Im trying to simulate a 5 bit switch so i want to switch on and off my 5 voltage sources according to the binary code for ex:if 00001 then V1 will be 1.2 and all other 0 i have written this control block but i get the only single param supported error any idea how to debug this? .param temp=27 .control let loop = 32 let counter=0 repeat $&loop * --- Bit Extraction Logic --- let b0 = counter % 2 let temp1 = floor(counter / 2) let b1 = temp1 % 2 let temp2 = floor(temp1 / 2) let b2 = temp2 % 2 let temp3...

1
MongoDB Logo MongoDB