25
Simulation & Synthesis of UART HD-6402 using VHDL [02-384] Deepak Patel Presented by

Simulation & Synthesis

Embed Size (px)

DESCRIPTION

Simulation & Synthesis. of UART HD-6402 using VHDL. Presented by. [02-384] Deepak Patel. Scope of our Project. VLSI and its Emergence. Chip Complexity. 1975: transistor size = 10  m. 1985: transistor size = 2  m. 1995: transistor size = 0.4  m. Introduction to VHDL. Design Process. - PowerPoint PPT Presentation

Citation preview

Page 1: Simulation & Synthesis

Simulation & Synthesisof UART HD-6402 using VHDL

[02-384] Deepak Patel

Presented by

Page 2: Simulation & Synthesis

Scope of our Project

Page 3: Simulation & Synthesis

VLSI and its Emergence

Page 4: Simulation & Synthesis

Chip Complexity

1975: transistor size = 10m

1985: transistor size = 2m

1995: transistor size = 0.4m

Page 5: Simulation & Synthesis

Introduction to VHDL

Page 6: Simulation & Synthesis

Design Process

Page 7: Simulation & Synthesis

Required product

Design specifications

Initial design

Simulation

Design correct?

Redesign

Prototype implementation

Testing

Meets specifications?

Finished product

Minor errors?

Make corrections

No

Yes

No

Yes

Yes

No

Page 8: Simulation & Synthesis

Concept of Design Review

Design SpecificationsSimulationRTL SimulationSynthesis DescriptionVerify Synthesis ResultsTiming AnalysisImplementation( FPGAs , ASICs )

Page 9: Simulation & Synthesis

UART Basics for our project

Page 10: Simulation & Synthesis

Communication system

SourceTransmitter

EncoderReceiverDecoder

DestinationChannel

Page 11: Simulation & Synthesis

Asynchronous Communication

Start Bit Stop Bit

8 Data Bits

Mark

Space

Page 12: Simulation & Synthesis

What is UART ?

niversal

synchronous

eceiver

ransmitter

Page 13: Simulation & Synthesis

Basic UART Interface

PARALLEL DATA BUSPARALLEL DATA BUS

UART

P ExternalDevice

Page 14: Simulation & Synthesis

Need for UART

To convert the parallel data from P systems to serial data to external devices Or vice-versa. It is necessary to have an interfacing device.

External devices are capable of communicating only serially

Computer and P systems often send/receive data in parallel format

Page 15: Simulation & Synthesis

Block Diagram of UART

Page 16: Simulation & Synthesis

Block Diagram of UART

Page 17: Simulation & Synthesis

Control Word

Page 18: Simulation & Synthesis

Advantages of Implementing UART using VHDL

Page 19: Simulation & Synthesis

How Stuff works ???

Page 20: Simulation & Synthesis

PARITY FUNCTION

CLS2 CLS1 DATA LENGTH

0 0 5 BITS

0 1 6 BITS

1 0 7 BITS

1 1 8 BITS

CLS2 CLS1 8 BIT DATA

PARITY GENERATOR

PARITY BIT

Page 21: Simulation & Synthesis

TRANSMITTER

CLS2 CLS1 PI EPE SBS

P1: If CRL is High load CONTROLWORD

P2:

0 to 5 Bits 1 to 2 Bits 0 or 1 Bit 5 to 8 Bits 1 Bit

Extra

bits

Stop

bits

Parity

bits

Data

bits

Start

bits

Page 22: Simulation & Synthesis

P3: Generation of TRE, TBRE.

CLS2 CLS1 PI EPE SBS

If CTRLWORD is 000X0 counter = 8If CTRLWORD is 000X1 counter = 9 Shifting 12 bit contents to right bit by bit.

Transmit serial Data at TRO pin.

Page 23: Simulation & Synthesis

RECEIVER

CLS2 CLS1 SBS PI EPE

P1: If CRL is High load CONTROLWORD.Receive data from transmitter bit by bit.

P2: To see that data is not overwritten with the help of DR pin.To store each bit serially in a register.

11 10 9 8 7 6 5 4 3 2 1 0

If CONTROLWORD is 0001X => 1 start 5 data 0 parity 1 stopSo 5th bit is checked and if 0 then DR is set

Data In

Data

Out

Page 24: Simulation & Synthesis

P3: In it valid data is send into receiver register and extra zeros are padded.

If CONTROLWORD is 0001X =>1 start 5 data 0 parity 1 stop

So valid data bits are from 10 to 6.

P4: In it PE, FE, OE are generated.

If CTRLWORD is XX101- check 9th bit.

If CTRLWORD is XX001- check 10th bit.

If CTRLWORD is XX0XX- check 11th bit for Stop bit.

If CTRLWORD is XX1XX- check 10th and 11th bit for Stop bit.

P5: Sends 8 Bit data to RBR and sends error output to output pins.

CLS2 CLS1 SBS PI EPE

11 10 9 8 7 6 5 4 3 2 1 0Data In

Data

Out

Page 25: Simulation & Synthesis