|
 |
On 6/14/2010 9:45 AM, Invisible wrote:
>>> - If you select "OR gate", it inserts a NOR gate.
>>>
>>> - NAND has the same truth table as NOR.
>>
>> Crap!
>
> Uh, yes. ;-) That's a kind of elementary mistake, right there. (Which is
> why I assumed you had already noticed it, but I guess not...)
>
>> That's a regression error. I'll have to take care of that.
>
> Yah. ;-)
>
Well, the NAND = NOR thing was a total cluster****, I don't know what I
was thinking when I coded NAND. I have a feeling that code was probably
written at 1:00am on a Saturday morning. How it got by me testing it is
a total mystery. It was so obviously wrong for NAND.
The OR gate placing a NOR gate was interesting. I have a function that
checks the types and caches the last used values for later use. Since
OR, XOR and NOR all have the same basic drawing OR is the base class for
those, only changing a few minor details (such as the extra curve on the
input side of the XOR, and the output bubble on NOR), so, it would see
that it could be cast to an OR and consequently dump it into the
PreviousOrGate variable. Oops. I corrected the case with NOR, but
discovered XOR only after I uploaded the code.
>
> Well, yeah. The thing I'm writing is currently just a few miles of
> function calls. It doesn't even *do* anything visible yet!
>
Your own sim? How is it going? ( as far as the function calls go, I guess? )
>> In truth I just haven't gotten around to coding some of the more
>> trivial things, yet.
>
> Ain't that always the way? ;-)
Yep.
--
~Mike
Post a reply to this message
|
 |