--- Filson <[EMAIL PROTECTED]> wrote:

> Dear perl mongers. I need to know if I can translate
> symbols in a text file into logical operators like
> AND|OR|NOT and so forth. The thing is that I'm trying to
> build a simulator for digital cuircuts, with input files
> in 3DML style (ascii graphix style) like this:
> 
> =A-N>
> =O>
> >A-
>

etc etc

Hi,

There is many ways to approach this issue, but you really
need to consider how you are going to deal with sequential
logic?  And what about outputs directly joined together?

The first will be a limitation of your simulator unless you
deal with it - probably by inducing a step delay mechanism.

You need to read up on parsing methods, and work out how
you would parse your input.  This builds a datastructure
containing the circuit you wish to simulate... then the
similulator works solely on this datastructure - not
refering back to the original file.

Honestly, unless this is a project then you should be
looking for existing digital simulators.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to