Task:
Your task is to program the code for “The Logic Master”. The Logic Master is an encoding device that will operate based on the individual parameters that you provide.
You have been given a template code file into which your code will be placed.
The Logic Master takes 4 digital inputs (I1, I2, I3 and I4) and generates the values of 4 digital outputs (Q1, Q2, Q3 and Q4) based on these.
The input and output details are as follows:
Digital Inputs:
I1: Digital Input 1
I2: Digital Input 2
I3: Digital Input 3
I4: Digital Input 4
Digital Outputs:
Q1: Digital Output 1
Q2: Digital Output 2
Q3: Digital Output 3
Q4: Digital Output 4
The code is to be programmed in FBD (Functional Block Diagram) language using the template file provided.
Note: The preferred version of software is ZelioSoft 2 v5.4.0
Logic Master Operation
Your Logic Master will operate based on your personalised parameters. The logic for Q1 is provided, and you will derive the truth table for the remaining 3 outputs of the Logic Master based on the rules given below.
Q2: Flip a fair coin 16 times. Heads = 1 and Tails = 0. Fill in down the column with your results. Note: in the unlikely event that your Q2 column is exactly equal to the Q1 or Q3 columns, you must flip the coin 16 times again to obtain a new Q2 column that does not equal the Q1 or Q3 columns. Also note that you may be penalized if your Q2 column appears to have been generated non-randomly (e.g., 16 “0” values or an alternating sequence of “0” and “1” values).
Q3: Take the first two letters of your surname (if you only have one name, take the first two letters of that name). Look up the ASCII table and find the 8-bit binary representation of each letter in lower case. Enter these down the column. For example, if your surname is “Apple”, the letter “a” is 0x61, which will convert to 011000012, and the letter “p” is 0x70, which will convert to 011100002. You will then enter the bits 01100001 011100002 from top to bottom down the Q3 column.
Q4: Q4 is a parity bit for the other 3 outputs (Q1, Q2 and Q3). The parity of the output is to be ODD. The value of Q4 will be set to 1 or 0 in order to make the total number of “1” values in the four outputs an odd number on each row of the truth table.
The logic simplification that you complete should be based solely on the
truth table, and you should aim to minimize the number of logic gates
required for each output individually. If you notice a more efficient way of
completing the task you are welcome to submit that also but please note
that the marking rubric (attached) allocates marks towards the completion
of the truth table and the subsequent logic simplification process.
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.