BigEd wrote:
I don't think there can be any variables, only constants, because this programming is not procedural (whereby it is executed from top to bottom) but more declarative (whereby the whole program describes something, all at once.)
As these values you want are constants, you can I think remove them, by considering that AND with a 1 leaves the input unchanged, as does OR with a 0, whereas AND with a 0 always produces a zero. That is, you can manually propagate these constants into the expressions, and simplify everything.
Hope this helps
Ed
Thanks Ed.
I suppose this (and obviously RAM etc) is what differentiates between a microcontroller and soemthing like a GAL.
I've obviously been thinking about this in the top down programatical way which is incorrect. This revalation is good news as it actually simplies what I'm trying to do.
I'll give it another go tonight with what you've said in mind and see how it turns out.