Question

Base no bit 0 0 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits for segment no and 13 bits for offset. Segme

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

There are 3 bits for segement, so the segment numbers can range from 0 (000) to 7 (111).

So, a maximum of 8 segments are possible.

b)

0100 1001 1101 1110

Here, the highest 3 bits denote segment number, equal to 010, equivalent to decimal 2. Also, the offset is binary 0 1001 1101 1110.

As seen from segment table, segment 2 is present in memory, and its base address is binary 0010 0000 1000 0011.

So, the physical address is given by

= (Base address) + (Offset)

= 0010 0000 1000 0011 + 0 1001 1101 1110

= Binary 0010 1010 0110 0001

= Decimal 10849

c)

When converting logical addresses to physical addresses, we can certainly get addresses which are present in segments that are not present/loaded for the particular process in hand.

This results in segmentation faults, and is an effective mechanism to prevent a process from unauthorized access of addresses (of the same/different processes).

Add a comment
Know the answer?
Add Answer to:
Base no bit 0 0 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • DO bit 0 1 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits for...

    DO bit 0 1 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits for segment no and 13 bits for offset. Segment table of the currently running process is given below: a) (5) How many segments can this Segment Present Modify process have at maximum? Length bit Base 0 0 0 0100 0111 0000 0100 0000 1000 0100 b) (15) Convert the following logical 1 1 0100 0100 0001 0010 0010 1100 1000 address to physical (real) address...

  • Generate the equivalent Sim68 assembly program for the following machine code assuming it originates at address...

    Generate the equivalent Sim68 assembly program for the following machine code assuming it originates at address dollar 0000: 1001 0000 0100 0000 0011 0000 0100 0000 0011 0010 0010 1000 0000 0000 0000 1100 0110 0111 0000 0110 0110 1101 1111 1000 1101 0000 0100 0001 0110 0000 1111 0110 0100 1110 0100 0000 0000 0000 0000 0000 0001 0110 1111 0000 1111 1111 1111 1111 1000 0000 0000 0000 0000 0000 0000 0001

  • Arduino. DEC HEX BIN(4-bits) Introducing ARDUINO 0 0 0000 1 1 0001 2 2 0010 3...

    Arduino. DEC HEX BIN(4-bits) Introducing ARDUINO 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 How many 1/0 of Port-D? How many usable 1/0 of Port-D, if Serial-Communication is in-used? What is the Arduino's pin assignment of ATMEL's PC5, PB3, & PD1*? What is the ATMEL's pin assignment of Arduino's D13*, D1, & D19? To complete the table about Number System Conversion (shown your step) 6 6 0110 7 7 0111...

  • 7. On a machine, an instruction is always 16 bits long, and the re are 16...

    7. On a machine, an instruction is always 16 bits long, and the re are 16 registers. (1) Briefly explain the idea of expanding opcode. (5%) (2) Given this scheme of expanding opcode, identify how many three-address instructions, two-address instructions, one-address instructions, and zero- address instructions are supported. (10%) O 0000 xxxx yyyy zzzz 0001 xxxX yyyy ZZZZ 0010 xxxx yyyy zzZZZ 92 3-address SE instructions 0111 xxxx yyyy zzzz 1000 0000 yyyy zzZz 1000 0001 yyyy zzzz 1000 0010...

  • We have learned a famous shift cipher called Caesar Cipher. Now if we are given a...

    We have learned a famous shift cipher called Caesar Cipher. Now if we are given a plain test: THE ART OF WARAnd key = 3 (a shift by 3 letters), please give the ciphertext Given an 8 bit block P = 10101111 and a key K = 01101011, please give the result of bitwise XOR between P and K Please give the left 2 shift of the 8 bit text 01100101 Use the given a permutation table 23614857 to define...

  • Convert each of the following 32 IEEE 754 single precision bit patterns to its corresponding decimal...

    Convert each of the following 32 IEEE 754 single precision bit patterns to its corresponding decimal value (the bits are separated into groups of 4 to make interpretation easier). Show all of your work and include a few comments as to what you are doing at each step. 1100 0100 1011 1010 0100 1000 0000 0000 a. b. 0100 0101 1110 0010 0110 1101 0000 0000 Convert each of the following 32 IEEE 754 single precision bit patterns to its...

  • Please show work! 2. Now, give it a try by converting the binary number 01110110 to...

    Please show work! 2. Now, give it a try by converting the binary number 01110110 to decimal by filling in the same table in step 1 r of 2 Pov 128 64 32 16 Cumulative Amount 4. Now, you give it a try by converting the decimal number 131 to binary by filling in the table Power of 2 128 32 16 Bit Amount Remaining 6. Use the binary to hexadecimal table to convert the binary number 01101111 to hexadecimal...

  • Assuming the square 2D memory organization shown in Figure 5.7 below, what are the dimensions of...

    Assuming the square 2D memory organization shown in Figure 5.7 below, what are the dimensions of a memory containing 64 (26) bytes of storage? How large would the MAR be?   How many bits are sent to the row and column decoders?   How many output lines would these decoders have? FIGURE 5.7 Column Column Column Column 2 (10) Address (00) 0001 0010 0011 Row O (00) 0100 0110 0111 Row 1 (01) Row selection lines 1000 1001 1010 1011 Row 2...

  • I think you are actually doing binary to hex. please do this without loops and you...

    I think you are actually doing binary to hex. please do this without loops and you can use recursion. please write a working C code. Thanks Write a loop-less function to convert from Hex to Binary. (HINT: Use a helper function/recursion) binHex[16] [5] {"0000", "O001","0010","0011","0100" ,"0101", "0110", "0111", "1000", "1001" , "1010", "1011", "1100", "1101", "1110" 1 const char = s char hexToBinary ...) 7

  • HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1...

    HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1 bit for sign, 4 bit for exponent with excess-7 rep. (see table below), rest for magnitude). Assume 0000 and 1111 in exponent field are reserved for denormalization. 6 Decimal 0 Unsigned 0000 Excess-7 Reserved used as -6 in unnormalized 1 0001 -6 2 0010 -5 3 0011 -4 4 0100 -3 5 0101 -2 0110 -1 7 0111 0 9 Decimal 8 Unsigned 1000...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT