Difference between revisions of "CSC103 Logic Lab 2014"
(→The Logic Simulator) |
(→The Simple Logic Simulator (SLS)) |
||
Line 10: | Line 10: | ||
: The switches are used to generate binary signals with the value 0 or 1. When the switch is grey (OFF), it generates a 0, and when red (ON), it generates a 1. A switch can be connected to multiple inputs. | : The switches are used to generate binary signals with the value 0 or 1. When the switch is grey (OFF), it generates a 0, and when red (ON), it generates a 1. A switch can be connected to multiple inputs. | ||
; Inverter Gates | ; Inverter Gates | ||
− | : Click on the Inverter Gate button to position inverters on the breadboard area. | + | : Click on the Inverter Gate button to position inverters on the breadboard area. A <font color="green">green</font> marker at the bottom right of the Inverter Gate button indicates when this mode is active. In this mode, clicking anywhere on the breadboard area will add another inverter. |
+ | : AND Gates | ||
+ | : Click on the AND Gate button to position AND gates on the breadboard area. As for the Inverter Gate button, the small red marker at the bottom right of the button indicates if this mode is in effect. | ||
+ | ; OR Gates | ||
+ | : Click on the OR Gate button to position one or several OR gates on the breadboard area. | ||
+ | ; ON/OFF Master Switch. | ||
+ | : Click on this button to energize the circuit you have just wired up. When the light is <font color="green">green</font>, any input combination generated by the 4 switches will be combined by the gates and sent to the LEDs. The <font color="green">green</font> light turns off as soon as you click on one of the gate buttons, or on the CLEAR button (see below). | ||
+ | ; CLEAR | ||
+ | : The big <font color="red">red</font> cross is the '''clear''' button. Clicking on it will remove all the gates and wired you positioned on the breadboard. There is no '''undo''' button, so if you make a mistake, you'll have to clear the board and redo the wiring! | ||
+ | ;Output LEDS | ||
+ | : The circular LEDs on the right will turn ON (<font color="green">green</font>) when they receive a 1 signal, and grey when they receive a 0. Only one output can be connected to an LED at a given time. | ||
<br /> | <br /> | ||
<br /> | <br /> |
Revision as of 12:46, 24 August 2014
--D. Thiebaut (talk) 13:15, 24 August 2014 (EDT)
The Simple Logic Simulator (SLS)
THe Simple Logic Simulator is a Javascript simulator written with the Google WebKit library, by D. Thiebaut. It allows for the logic design of simple logic circuits using inverters, AND gates, and OR gates. It sports 4 inputs switches and 4 output LEDs.
- The switches
- The switches are used to generate binary signals with the value 0 or 1. When the switch is grey (OFF), it generates a 0, and when red (ON), it generates a 1. A switch can be connected to multiple inputs.
- Inverter Gates
- Click on the Inverter Gate button to position inverters on the breadboard area. A green marker at the bottom right of the Inverter Gate button indicates when this mode is active. In this mode, clicking anywhere on the breadboard area will add another inverter.
- AND Gates
- Click on the AND Gate button to position AND gates on the breadboard area. As for the Inverter Gate button, the small red marker at the bottom right of the button indicates if this mode is in effect.
- OR Gates
- Click on the OR Gate button to position one or several OR gates on the breadboard area.
- ON/OFF Master Switch.
- Click on this button to energize the circuit you have just wired up. When the light is green, any input combination generated by the 4 switches will be combined by the gates and sent to the LEDs. The green light turns off as soon as you click on one of the gate buttons, or on the CLEAR button (see below).
- CLEAR
- The big red cross is the clear button. Clicking on it will remove all the gates and wired you positioned on the breadboard. There is no undo button, so if you make a mistake, you'll have to clear the board and redo the wiring!
- Output LEDS
- The circular LEDs on the right will turn ON (green) when they receive a 1 signal, and grey when they receive a 0. Only one output can be connected to an LED at a given time.