Computer Organization and Design Fundamentals - IT Computer Science Assignment Help
Assignment Task
1. Using an original value of 110000112 and a mask of 000011112, calculate the results of a bitwise AND, a bitwise OR, and a bitwise XOR for these values.
2. Assume that the indicators of an automotive dashboard are controlled by an 8-bit binary value named dash_lights. The table below describes the function of each bit. Assume that a `1` turns on the light corresponding to that bit position and a `0` turns it off.For each of the following situations, write the line of code that uses a bitwise operation to get the desired outcome.
a.) Turn on the low fuel, oil pressure, high temperature, check engine, and brake lights without affecting any other lights. This would be done when the ignition key is turned to start.
b.) Toggle both the right and left turn signals as if the flashers were on without affecting any other lights.
c.) Turn off the door open light when the door is closed.
3. True or False: A checksum changes if the data within the data block is sorted differently.
4. There are two ways of handling the carries that occur when generating the datasum for a checksum. One way is to simply discard all carries. What is the other way? (2 points)
5. Compute the basic checksum, the 1`s complement checksum, and the 2`s complement checksum for each of the following groups of 8-bit data elements using both the basic calculation of the datasum and the one`s complement datasum. All data is in hexadecimal.
a.) 34, 9A, FC, 28, 74, 45
b.) 88, 65, 8A, FC, AC, 23, DC, 63
c.) 00, 34, 54, 23, 5C, F8, F1, 3A, 34
6. Use the checksum to verify each of the following groups of 8-bit data elements. All of the data is represented in hexadecimal.
a.) 54, 47, 82, CF, A9, 43 basic checksum = D8
b.) 36, CD, 32, CA, CF, A8, 56, 88 basic checksum = 55
c.) 43, A3, 1F, 8F, C5, 45, 43 basic checksum = E1
7. Identify the two reasons for using the XOR "borrow-less" subtraction in the long-division used to calculate the CRC.
8. What problem does the checksum error correction method have that is solved by using CRCs?
9. True or False: A CRC changes if the data within the data block is sorted differently.
10. True or False: By using the CRC process where the transmitting device appends the remainder to the end of the data stream, the remainder calculated by the receiving device should be zero.
11. How many possible CRC values (i.e., remainders) are possible with a 33-bit polynomial?
12. Assume each of the following streams of bits is received by a device and that each of the streams has appended to it a CRC checksum. Using the polynomial 10111, check to see which of the data streams are error free and which are not.
a.) 1001011101011001001
b.) 101101010010110100100101
c.) 11010110101010110111011011011
13. Compute the number of parity bits needed to provide single-bit error correction for 256 bits of data.
14. Using the error detection/correction equations 9.5 through 9.8, determine the single-bit error that would result from the following parity check values.15. Using the programming language of your choice, implement the parity generating function of the single-bit error correction scheme for eight data bits discussed in this chapter. Use equations 9.9 through 9.12 to generate the parity bits.
You may use the C prototype shown below as a starting point where the integer data represents the 8 data bits and the returned value will contain the four parity bits in the least significant four positions in the order P0, P1, P2, and P3.
int generateParityBits (int data)
16. Using the programming language of your choice, implement the parity checking function of the single-bit error correction scheme for eight data bits discussed in this chapter.
Use equations 9.5 through 9.8 to verify the data read from memory. You may use the C prototype shown below as a starting point where the integer data represents the 8 data bits and the integer parity represents the four parity bits in the least significant four positions in the order P0, P1, P2, and P3.
The returned value is the data, unmodified if no error was detected or corrected if a single-bit error was detected.
18. Identify the error in the parity check equations below. Note that the expressions are supposed to represent a different grouping than those in equations 9.2, 9.3, and 9.4. There is still an error though with these new groupings.
This IT Computer Science Assignment has been solved by our IT Computer Science Experts at TheTVAH.
Our Assignment Writing Experts are efficient to provide a fresh solution to this question
We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics.
Our Experts are well trained to follow all marking rubrics & referencing Style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered.
You may continue to expect the same or even better quality with the used and new assignment solution files respectively.
There’s one thing to be noticed that you could choose one between the two and acquire an HD either way.
You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turn tin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.