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

Chapter 2 problems

      - A2.5 -

-- Analysis of a synchronous circuit

Problems

A2.4

A2.6


1. Specifications

LAB5 PROJECT PROPOSAL SAMPLE: Circuit_Sync2

The circuit represented in Fig. 1 is composed of T_FF. Let us deduce how it works, how many states does it have and what may be its application. Synchronous structures are much more simple to analyse than asynchronous circuits because all registers are driven by the same and only CLK signal. These circuits will be systematically designed following our FSM approach presented in P6.

Circuit_Sync2

Fig 1. Circuit_Sync2 to be analysed using up to three methods. Draw this circuit in you own sheet of paper.

Phase 1: analyse the T_FF memory cell component.

a) Analyse the behaviour of T_FF in Fig. 2 and represent the output Q in a timing diagram like the one represented in Fig.3.

T_FF

Fig 2.  T_FF symbol, function table and state diagram.

Indicate always the T sampled values using dots.

Waveforms

Fig 3. Example input waveforms to be used as stimulus for calculating the output Q. 

 

Phase 2: circuit analysis. Three methods proposed.

b) Method 1: Handwritten pen-and-paper analysis and discussion. Deduce the output Q(3..0) of the circuit represented in Fig. 1. The procedure to follow is presented in P5 highlighted project.

Waveforms

Fig 4. Waveforms.

This method is developed in paper and results are verified by comparing with other methods.

Discuss how many states the system is capable of memorising.

Discuss what may be the function or application of the circuit. 

 

c) Method 2: using Proteus.

Capture Fig. 1 in Proteus and run simulations. For instance copy and adapt a similar structure such Proteus circuit based on CMOS classic chips. When picking parts from the library to mount your circuit, do this initialisation from Proteus top menu:

 --> Tool --> Global Annotator --> Total.

Project location:

 C:\CSD\P5\Circuit_Sync2\

Print and discuss results from the logic analyser.

 

d) Method 3: using VHDL synthesis and simulation tools (plan C2 circuit).

Get the component T_FF model and translate to VHDL the top circuit (Circuit_Sync2.vhd) to be able to start a new multiple-file plan C2 project.

Synthesise the project and print the RTL view. Be aware that the "number of registers" in the project's summary spreadsheet must be "4".

Prepare and use a VHDL testbench to demonstrate that the timing diagram looks like that obtained in Proteus or in the paper analysis above.

How can you measure the maximum speed of the circuit for a given target PLD?

 


Optional: Design exercise

e) Design an FSM that generates the same output Q(3..0).