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

SP1_3

Q&A

SP1_4: Circuit design using hierarchical multiple-VHDL file plan C2

P_Ch1

Lab3


NOTE: This subproject must be solved only after having completed successfully lab session Lab3 because you will copy and adapt materials from it.

1. Specifications

The aim of this preparatory laboratory assignment is to invent a 9-bit radix-2 comparator (Comp_9bit) using plan C2 based on hierarchical structures using components Comp_1bit or other chips like Comp_4bit that at the same time are built internally using other blocks) In this way, you can practise how to develop plan C2 and complete this component that has to be used in the internal architecture of P_Ch1 as Chip2.

circuit

Fig. 1. Comp_9bit symbol and truth table.

 

2. Planning

Draw a schematic plan C2 for the Comp_9bit using components and logic if necessary. Annotate all the parameters required for an effortless VHDL translation.

Project location:

C:\CSD\P_Ch1\SP1_4\Comp_9bit\

Project name: Comp_9bit_prj.

3. Developing

This exercise must be solved only after having completed lab session Lab3 comprehending how n-bit adders are build in VHDL using Adder_1bit blocks and plan C2 mechanisms.

Translate to VHDL the plan and write the Comp_9bit.vhd source file.

Run a synthesis project. Target chips: MAX II (PLD) EPM2210F324C3 or Cyclone IV (FPGA) EP4CE115F29C7

Examine and discuss RTL and technology schematics. Indicate the number of programmable logic device (PLD) resources (combinational blocs, logic cells, etc.) used in this project.

 

4. Testing

Organise a VHDL testbench Comp_9bit_tb.vhd filling in the empty skeleton supplied by Quartus Prime with some stimulus vectors representing comparison operations from the initial timing diagram.

Run a ModelSim functional simulation and examine results from logic analyser to determine whether the circuit works as expected.

 

5. Reporting

This report is annexed as A4 in P_Ch1 scanned report. Follow this rubric for writing reports.