Dark Bit Factory & Gravity

GENERAL => General chat => Topic started by: combatking0 on June 22, 2012

Title: Logic Gates
Post by: combatking0 on June 22, 2012
With recent changes to the way computing is going to be taught to pupils in the UK, I've been asked to produce various resources for the new curriculum.

Here's one I've just finished - it's a logic gate simulator of sorts, including interactive inputs, truth tables and simplified CMOS circuit diagrams.

The XOR and XNOR gates were a pain in the ass, but I think they're accurate now.

(edit)

I've just noticed an error on the XOR gate when the inputs are both high - I'll fix it tonight.

(edit 2) Fixed - it should be fully accurate now.

(edit 3) Changed "Output O" to "Output Q" to avoid confusion between "0" and "O" after user feedback.

(edit 4) Changed "O" to "Q" in the truth tables too - that should fix it.
Title: Re: Logic Gates
Post by: Kirl on June 22, 2012
That's awesome, well done!  :clap:

The output remained zero though, also when the visuals showed on.
Title: Re: Logic Gates
Post by: combatking0 on June 23, 2012
Oh no, which gate?
Title: Re: Logic Gates
Post by: Kirl on June 23, 2012
Title: Re: Logic Gates
Post by: combatking0 on June 23, 2012
I see how that would cause confusion now - I'll see if there's a standard output letter...

...there's no official standard, but "Q" seems to have been widely adopted. Thanks for the feedback K++, I'll change it to "Q".

Hopefully something like this will be useful for beginners who are learning logic in both programming and in electronics.
Title: Re: Logic Gates
Post by: Raizor on June 23, 2012
Handy little learning app CK, nice one. K++
Title: Re: Logic Gates
Post by: Hotshot on June 24, 2012
Good App :)
Title: Re: Logic Gates
Post by: combatking0 on June 24, 2012
I've just noticed the Truth Tables still use "O" instead of "Q" - fixing...

I ran this program past my 8-year-old son, and he seems to understand it. Why they don't teach this sort of thing in primary schools, I'll never know.