The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Matrix Manipulation https://designers-guide.org/forum/YaBB.pl?num=1219775640 Message started by littlenasboy on Aug 26th, 2008, 11:34am |
Title: Matrix Manipulation Post by littlenasboy on Aug 26th, 2008, 11:34am I'm working on implementing a model in verilog-A from code written in matlab. The matlab code solves a system of equations using matrix inversion and multiplication to determine the devices terminal characteristics. Are there any sort of matrix manipulation functions available in verilog, and if not, how can I get around this? |
Title: Re: Matrix Manipulation Post by jbdavid on Aug 27th, 2008, 12:47am What do you think the spice solver is? Just express your "matrix" in terms the relationships between node voltages(potential) and branch currents (flow) and let the Analog solver take care of "the matrix" for you. -- or for SIMPLE cases, you can directly do the calculations.. keeping in mind that there are NO two dimensional Arrays, not matrix manipulation routines.. so you'll have to write a task or function based on how you choose to name the variables to do that manipulation for you. -- just LINK the matlab simulation with the verilog simulation.. I know both Modelsim and all the cadence simulators (AMS/Ncsim/spectre/spectreRF & prob Ultrasim and AMSultra have some form of Matlab/simulink interface.. But the analog simulators have already pulled those matrix operations out of the designers control (and headache) so they can concentrate on the Circuit!! jbd |
Title: Re: Matrix Manipulation Post by littlenasboy on Aug 27th, 2008, 5:32am Thanks! |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |