In this task, you will be using the Logisim circuit drawing software to create a circuit for the problem specified in this task. You must use the Logisim simulator version 2.7.1 to create your circuits
For this task you are required to implement a simple simulation of a gearbox in a car. The gearbox has two inputs:
The gear change is successful if S = G, or if S = G – 1, or if S = G + 1. Any other value for S outside of this range will result in an unsuccessful gear change.
Example 1: The current gear (G) is 2 and the gear we want to change to (S) is 3. In this case the requirement S = G + 1 is met and the gear change is successful.
Example 2: The current gear (G) is 2 and the gear we want to change to (S) is 4. In this case S is outside the allowed range and the gear change is unsuccessful.
Example 3: The current gear (G) is 0 and the gear we want to change to (S) is 0. In this case the requirement S = G is met and the gear change is successful.
Note: These are just a few examples. There are (many) more cases that result in successful or unsuccessful gear changes. Your circuit must correctly show a successful or unsuccessful gear change for each possible case.
For this task, the current gear (G) will be represented by three inputs (3 bits). The three G inputs are named as G1, G2, and G3. The table below shows the assignment of bits to each G value for G1, G2, and G3.
For this task, the gear that we want to change to (S) will be represented by three inputs (3 bits). The three S inputs are named as S1, S2, and S3. The table below shows the assignment of bits to each S value for S1, S2, and S3.
G and S Inputs
|G value G1 G2 G3||S value S1 S2 S3|
|0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
|0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
The implementation for this part must use only the three basic logic gates (AND, OR, NOT).
You are required to implement a circuit where the user (you) can input a value for the current gear (G) using value (G1, G2, and G3) and a gear to change to (S) using value (S1, S2, and S3).
The circuit decodes the G1, G2, G3 and S1, S2, S3 values using a decoder made up of only the permitted logic gates to determine if S = G, or if S = G – 1, or if S = G + 1.
The output is via a single output pin (green circle in Logisim):
The output pin must be labelled Successful which is lit if S = G, or if S = G – 1, or if S = G + 1. The output pin is not lit for any other combination of S and G values.
For this part, the car has a gearbox that can withstand up to a number of unsuccessful gear changes (N) and it will break if that number is reached. The number N ranges from 1 to 7 and must be set via a combination of three separate inputs: N1, N2, and N3. An N value of 0 is not allowed and the gearbox state is undefined for this case. This means that you will have to set N to be non-zero (1..7) before starting the engine engaging the gearbox. Note: In Logisim, you can combine the 3 inputs for N into a single 3 bit input.
Using the same circuit file containing Part A, add additional circuitry to count how many successful and unsuccessful gear changes have been made. Each time an unsuccessful gear change is made, add 1 to the number of unsuccessful gear changes. Each time a successful gear change is made, add 1 to the number of successful gear changes.
Gearbox broken (car no longer able to be driven):
If the number of unsuccessful gear changes is equal to N, then an LED labelled “Gearbox broken” is lit, and the circuit is permanently locked. No matter the changes to the input after this happens, the “Gearbox broken” LED will remain lit and cannot be turned off.
If the number of successful gear changes reaches the maximum value of 7 (for a 3-bit counter) then the simulation will also stop because the count can no longer increase. In this case you can assume that the user will no longer try to interact with the simulation. The “Gearbox broken” LED will remain off if it is off, or will remain lit if it is already lit.
For Part B you will need to add a button that is pressed by you after the current gear (G) and gear to change to (S) values have been entered. This is to avoid counting while you are adjusting the input pins for the G and S input pins (G1, G2, G3, S1, S2, and S3).
For Part B you may use only the following:
You must label each circuit and template that you construct with the Logisim Annotation tool and ensure that all the inputs are labelled as instructed in this task sheet. Each circuit page and subcircuit/template must be labelled with:
Note that when you create the template/subcircuit you must keep them within your single circuit file. Templates that are linked as separate files may not be able to be marked. To create a new template/subcircuit within your current file, use the Project menu and the Add Circuit menu item.
You are required to create a working and connected template/subcircuit for the following components:
Your report 2 pages maximum must contain the following sections:
If you have broken your gearbox logic up into smaller subcircuits show the inner circuitry for these also.
Note: Submissions with more than 2 pages, illegible screenshots, and/or more than 300 words for the description is not acceptable.
Such a cheap price for your free time and healthy sleep
All online transactions are done using all major Credit Cards or Electronic Check through PayPal. These are safe, secure, and efficient online payment methods.