Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I have implemented one with perl.The basic idea is simple and you can also implement with any language you are familiar with.
You can also use verilog-a module. refer to HSPICE (version newer than 2005.3) demo case in the HSPICE install directory.