kevin_i_orourke has asked for the wisdom of the Perl Monks concerning the following question:
The project I'm currently working on involves DSP programming, which makes debugging and testing tricky (it usually involves an oscilloscope!).
To get round this one of the more senior guys developed a 'virtual' version of the system using a few bits of extra code to compile it under Windows. To control the simulation he made up his own (very simple) scripting language. The scripts are read in by the simulator program at start up, then executed.
As part of my continuing efforts to spread the word about Perl I suggested that inventing your own scripting languages was a bad idea. I've now been asked to demonstrate how we could do the same thing using an existing language.
The basic idea is that we set up a load of system settings and then specify events to occur at a given time. The main simulation code runs, triggers the events and logs what has happened. To me this looks a lot like the way Perl-Tk works.
Has anyone done something like this before? My initial idea is to use Inline::C to provide an interface to the C DSP code and a Perl module with functions that allow easy setting up of events and control of the simulated hardware.
Of course, there's no time allocated for this on the project, I suspect I'll be developing this in my own time.
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Software simulation using Perl
by tadman (Prior) on Jul 03, 2001 at 16:27 UTC |