Apr 22, 2010 #1 C colorcircle Newbie level 3 Joined Apr 20, 2010 Messages 4 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,309 code? Hii I need a code to realize this function in verilog-a Vout=2*V*(1+3*V^2 +4*V^4) where Vout is output voltage and V is the input voltage. am new to this thing,maybe above is easy for you so please suggest. thank you
code? Hii I need a code to realize this function in verilog-a Vout=2*V*(1+3*V^2 +4*V^4) where Vout is output voltage and V is the input voltage. am new to this thing,maybe above is easy for you so please suggest. thank you
Apr 22, 2010 #2 O oermens Advanced Member level 2 Joined Nov 19, 2005 Messages 525 Helped 107 Reputation 220 Reaction score 44 Trophy points 1,308 Location canada Activity points 3,988 code? https://www.cadence.com/community/forums/T/15500.aspx
Apr 22, 2010 #3 alvays Member level 4 Joined Jul 7, 2004 Messages 76 Helped 7 Reputation 14 Reaction score 2 Trophy points 1,288 Activity points 617 i didnt check the following, if it has problem please let me know but it seems like this; `include "disciplines.h" `include "constants.h module equation(vout,vin); output vout; input vin; electrical vout, vin; //define input, output analog begin V(vout) <+ 2*V(vin) * (1+3*pow(V(vin),2) + 4*pow(V(vin),4)) ; // <+ assign voltage value end endmodule ALVAYS
i didnt check the following, if it has problem please let me know but it seems like this; `include "disciplines.h" `include "constants.h module equation(vout,vin); output vout; input vin; electrical vout, vin; //define input, output analog begin V(vout) <+ 2*V(vin) * (1+3*pow(V(vin),2) + 4*pow(V(vin),4)) ; // <+ assign voltage value end endmodule ALVAYS