Codes Flashcards

1
Q

Draw the input-output voltage transfer characteristic of a digital logic gate

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What benefit does the voltage transfer characteristic of a digital logic gate have?

A

It makes small inputs become very small outputs, large inputs become very large outputs and medium stay the same. This has the effect of pushing signals towards either high or low, thus creating a more discrete signal and reducing overall noise and also outwith the non-logic region.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Show on a graph what the rising and falling transition times for a CMOS device

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is in between the logic high and logic low regions?

A

The logic invalid region. The system is designed to not use the output during this time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Show on a graph what the input to output propagation delay for a series of gates is.

Where is it measured from?

A

When the imput crosses 50% to the output crosses 50%.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the third logic value and what does it mean?

A

*

Represents “don’t care”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How many of codewords are possible in an N bit binary code?

What do you call a code that uses less than half of these possible codewords and what could you do about it?

A

There are 2N possible codewords.

A code which uses less than half of the codewords is sparse, otherwise it is dense. This means it could be encoded to use fewer bits if desired.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe the Thermometer code.

Sparse or Dense?

Hamming Distance?

A

Sparse code.

Unit distance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe the Gray Code.

Sparse or dense?

Hamming distance?

A

Dense code

Unit-distance circular code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many bits in each ASCII codeword?

Dense/sparse?

What do the 32 codewords starting 00***** represent?

Is the alphabet in natural order?

What about numbers?

A

A 7-bit code for communicating graphical symbols

Dense code

Non-graphic symbols such as return

Yes. 1000001 (A), 1000010 (B), etc

Yes. 0110000 (0), 0110001 (1), etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the BNN (Binary Natural Number) code

Range?

Resolution?

A

Similar to base-2 notation but 1 is true instead of one and 0 is false not zero.

Range: 0 to (2N - 1)

Resolution: uniform, unity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe the SM (Sign Magnitude) number code.

Range?

Resolution?

A

Essentially BNN but an extra bit to multiply result by -1

Range: -(2(N-1) - 1) to +(2(N-1) - 1)

Resolution: uniform, unity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe the 1’sC (One’s complement) number code.

Range?

Resolution?

A

For positive values (first bit is 0) is just BNN

For negative values (first bit is 1) then invert remaining bits and take BNN.

Range: -(2(N-1) - 1) to +(2(N-1) - 1)

Resolution: uniform, unity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe the offset BNN code

Range?

Resolution?

A

Add a positive bias constant to the valu eto be encoded then encode with BNN. To get the value from the codeword subtract the bias from the BNN value of the codeword.

Range: Total is 2N, limits set by bias

Resolution: uniform, unity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the 2’sC (Two’s Complement) number code.

Resolution?

Range?

A

Like BNN but most significant bit has negative value

Range: -2(N-1) to 2(N-1) - 1

Resolution: uniform, unity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe the fixed point number code, including what F fractional bits means.

Range?

Resolution?

A

There is a “fraction point” which splits the bits into F fractional bits and N-F other bits. Is usually used with the other codes such as BNN, 2’sC, etc.

Range: 0 to approx 2N-F + 1

Resolution: uniform, 2-F

17
Q

Describe the Binary Coded Decimal (BCD) number code.

When would you use it over the more conventional codes?

A

A code within a code.

Split the code into 4-bit fields each of which is used to represnt a single decimal digit 0-9. Thus there are 6 unused codewords (10-15).

Useful for legally exact financial calculations, where very little arithmetic processing is needed.

18
Q

Describe the IEEE 754-1985 floating-point number code, mentioning the three fields, the number of bits in them and how the value is calculated.

A
  • The sign 1 bit
  • The exponent 8 bits
  • The mantissa 23 bits

value = ( -1 )<em>sign</em> x 2<em>exponent - </em>127 x 1.significand

An exponent of -127 or 128 are reserved for special codewords such as NaN, infinity, zero