UPC EETAC Bachelor's Degree in Telecommunications Systems and in Network Engineering EEL

Chapter 1 problems

     - D1.12 -

5-bit Gray to binary and binary to Gray code converters

Problems

D1.11

D1.13


 Project option #1: 5-bit Gray to binary converter

1.- Specifications

Design the 5-bit Gray to binary radix-2 code converter represented in Fig. 1.

5-bit Gray to bin converter

Fig.1. Symbol of the Gray_bin_5bit converter.

Draw an example of timing diagram to be used later as stimulus in the VHDL testbench when verifying the synthesised circuit. Consider Min_Pulse = 2.78 ms.


CPLD or FPGA target chip options:

 Target option #1.: MAX II

 Target option #2.: MAX 10

 Target option #3.: Cyclone IV

 

2. Planning

Plan A structural circuit based on logic gates and equations in a single VHDL file. We have many estrategies, for instance:

option #1: use minilog to obtain PoS.

Project location:

 C:\CSD\P2\Gray_bin_5bit_PoS\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


option #2: use minilog to obtain SoP.

Project location:

 C:\CSD\P2\Gray_bin_5bit_SoP\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


Plan B behavioural approach writing the truth table or the high-level description or algorithm in VHDL in a single file (flat).

Project location:

 C:\CSD\P2\Gray_bin_5bit_B\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


After having studied P4 tutorials, additional questions can be added to our report. For instance: 

 


 Project option #2: 5-bit binary radix-2 to Gray code converter

1.- Specifications

Design the 5-bit binary radix-2 to Gray code converter represented in Fig. 1.

5-bit Bin to Gray converter

Fig.1. Symbol of the Bin_Gray_5bit converter.

Draw an example of timing diagram to be used later as stimulus in the VHDL testbench when verifying the synthesised circuit. Consider Min_Pulse = 3.45 ms.


CPLD or FPGA target chip options:

 Target option #1.: MAX II

 Target option #2.: MAX 10

 Target option #3.: Cyclone IV

 

2. Planning

Plan A structural circuit based on logic gates and equations in a single VHDL file. We have many estrategies, for instance:

option #1: use minilog to obtain PoS.

Project location:

 C:\CSD\P2\Bin_Gray_5bit_PoS\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


option #2: use minilog to obtain SoP.

Project location:

 C:\CSD\P2\Bin_Gray_5bit_SoP\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


Plan B behavioural approach writing the truth table or the high-level description or algorithm in VHDL in a single file (flat).

Project location:

 C:\CSD\P2\Bin_Gray_5bit_B\(files)

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?

 


After having studied P4 tutorials, additional questions can be added to our report. For instance: 

 


 Project option #3: reversible 5-bit Gray/bianry and binary/Gray code converter

1.- Specifications

Design a reversible 5-bit code converter Gray/binary and binary/Gray using plan C2. Input C selects the code conversion direction: '0' ---> from Gray to binary; '1' ---> from binary to Gray.

Reversible Gray to bin code converter

Fig.1. Symbol of the GrayBin_rev_5bit code converter.

Draw an example of timing diagram to be used later as stimulus in the VHDL testbench when verifying the synthesised circuit. Consider Min_Pulse = 3.45 ms.

CPLD or FPGA target chip options:

 Target option #1.: MAX II

 Target option #2.: MAX 10

 Target option #3.: Cyclone IV

 

2. Planning

Fig. 2 shows an idea on how to connect components to generate such reversible product.

Hiearchical architecture

Fig.2. Hierarchical architecture using components.

 

How many FPGA resources (logic cells, logic elements, etc.) are used? What is the percentage of the target chip used in this design?