Search for question
Question

1) Take the number 2286284, reading from the right to the left, obtain a sequence of 5 unique non- zero digits. i.e. 2286284 would give 48265 2) Produce an 8-digit number by taking the 5-digit number you have generated in 1) above and randomly add an addition 3 digits, these should be non-repeating and not including the zero digit. i.e. 48265 now become 48265973 3) Convert the 8-digit number generated in 2) above to a weighted BCD code, the CBD code to use is based on your LS digit of the number, see Table 1 below. I.e. 48265973 should use BCD 7,4,-2,-1 Least significant digit of BCD Code to use 0 1 2 3 4 5 6 7 5,2,2, -1 7, 4, 2, 1 1, 1, 2, 5 7,4, -2, -1 , 8,4, -2, -1 -3, 6, 4, 2 2 2, 4, 7, 1 2 8, -2, -1,4 2 8 2 9 5, 2, 1, 1 3, 1, 4, 1 Table 1 BCD Code Assignment 4) Design, showing all your step, a synchronous sequential machine that will output the BCD code sequence continuously i.e. on each rising edge of a clock pulse. You must use TFFs to store your count sequence. You should ensure that you minimise any combinational block of logic used in your design. 5) Add two output logic blocks to your synchronous sequential machine that will detect if the weighted BCD number is an even number (e.g. 0, 2, 4..) and if it is a prime number (e.g. Prime numbers are 2, 3, 5, 7...). a. The Prime Number Detector should be specified in 1st canonical minimum form Boolean expression. b. The Even Number Detector should be specified in 2nd canonical minimum form Boolean expression. c. Draw a Nand/Nand circuit diagram for the Prime Number Detector. d. Draw a Nor/Nor circuit diagram for the Even Number Detector. Overall System diagram Clock BCD count 4 sequence e.g. BCD number 12397456 Weighted BCD code Even number detector e.g. high if 0,2,4,6 4 Prime number detector e.g. high if 2,3,5,7