S
soxmax
Guest
Continued from : "How to count zeros in registers?"
http://groups.google.com/group/comp.lang.verilog/browse_thread/thread/d5a7687f5cf0aa6f
Boy-oh-boy did we get off topic. But the magic switchboard is way more
fun! The way I would do it is to simply memory map the initial
locations of the switches and light bulbs. Remember that a light bulb
is essentially a short circuit so you can run a small current through
the bulb without turning it on. As long as you replace the bulbs and
the switches in the same order that you removed them you can easily
keep the switches and bulbs matched up - Now add the magic - Remove all
of the bulbs in this order: R-B-Y-G. Now pick up the red bulb and ask
the audience which socket you should put it in. As soon as you place
the red bulb in any socket a small amount of current lets the
controller know that bulbe #1 has been replaced and to route it to the
appropriate switch. The controller can be a micro processor, cpld (my
choice), fpga, or even discrete FETs (remember low current). This is
very simple and any second year engineering grad (myself included)
could write the verilog, vhdl, or C++ to do this. The discrete FET
circuitry would be a bit more difficult.
Adieu,
Derek
http://groups.google.com/group/comp.lang.verilog/browse_thread/thread/d5a7687f5cf0aa6f
Boy-oh-boy did we get off topic. But the magic switchboard is way more
fun! The way I would do it is to simply memory map the initial
locations of the switches and light bulbs. Remember that a light bulb
is essentially a short circuit so you can run a small current through
the bulb without turning it on. As long as you replace the bulbs and
the switches in the same order that you removed them you can easily
keep the switches and bulbs matched up - Now add the magic - Remove all
of the bulbs in this order: R-B-Y-G. Now pick up the red bulb and ask
the audience which socket you should put it in. As soon as you place
the red bulb in any socket a small amount of current lets the
controller know that bulbe #1 has been replaced and to route it to the
appropriate switch. The controller can be a micro processor, cpld (my
choice), fpga, or even discrete FETs (remember low current). This is
very simple and any second year engineering grad (myself included)
could write the verilog, vhdl, or C++ to do this. The discrete FET
circuitry would be a bit more difficult.
Adieu,
Derek