$24
Name:
Direction: Upload your typed solutions in a le named \assignment06.txt" to your Github account.
Consider two microprocessors having 8-bit and 16-bit wide external data buses, respectively. The two processors are identical otherwise and their bus cycles take just as long.
If all instructions and operands are two bytes long, by what factor do the maximum data transfer rates di er?
If half the instructions and operads are one btye long, by what factor do the maximum data transfer rates di er?
If a 32-bit microprocessor having 32-bit instructions which consists of a 1 byte opcode and the remainder is either an operand or the address of the operand,
what is the maximum directly addressable memory capacity (in bytes)?
how many bits are needed for the program counter and the instruction register?
Write an int C++ function named DataBusTransfer() that takes an ifstream reference parameter, of-stream reference parameter and an int parameter named memory, cpu and width respectively. Given that memory references a le that consisting of only of 1s and 0s and width is postive, the function writes a line of read characters from memory into cpu every time width number of characters are read from memory or when you reached the end of the le of memory. Afterwards, the function returns the number of lines it wrote in cpu.