Combinatorial Logic Flashcards

1
Q

What are the main two uses for a multiplexer?

A
  • Data steering
  • Function generating
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the order of gate implementation for SOP?

A

AND gate followed by OR gate

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

What is the order of implementation for POS?

A

OR gate followed by AND gate

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

If we are given a K-Map for a multiplexer, how can we determine the gates used?

A

We can group each column and by evaluating the SOP (1’s) we can observe what kind of gate is associated with this behaviour.

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

What is a 4 to 1 mux?

A

It consists of 4 data input lines, two select lines, and one output

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

What does an 8 to 1 mux consist of?

A

8 input data lines, 3 select lines, 1 output

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

Describe how to implement a 4 to 1 mux in VHDL

A

State the entity and define the ports:

  • Input ports e.g. D0, D1, D2, D3
  • Select: in logic vetor 2 bit wide
  • y : out.

Next the architecture of mux_arch of mux is

y will be assigned from D0 to D3 when the select line increases from “00” to “11”

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

Describe an encoder.

A

An encoder has a numver of input lines, only one of which is activated at a given time.

It produces an N-bit output code depending on which input is activated.

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

What relation must be satisfied for an encoder?

A

For M (input) elements to be uniquely encoded, the output code of width N must satisfy the relation:

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

What is a priority encoder?

A

A priority encoder has the same function as an encoder, however input elements are given an order of priority.

This means that if two inputs are selected simultaneously then, the input with the higher priority is encoded.

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

What is special about the encoder inputs?

A

The inputs to an encoder follow a pattern in which only one bit in the sequence is high whilst the rest remain low. The value of the bit that is one increases as we move down the inputs.

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

Describe how we can implement an 8 to 3 encoder in VHDL.

A

We define the ports in the entity, which will be the input and output. These values will be logic vectors - input (7downto0) and output (2downto0).

A case statement is used to assign the input (8 bit) case to an output (3 bit) using a series of when statements.

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

What is a comparator used for?

A

A comparator circuit is used to compare the magnitudes of two numbers expressed in binary.

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

What are the two circuits which implement a 1-bit comparator?

A

An Equality circuit which imlements a XNOR gate

An Inequality circuit which implements a XOR gate

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