Docsity

Fully Dedicated Architectures (Lecture 4), Slides of Digital Systems Design

Partial preview of the text

Download Fully Dedicated Architectures (Lecture 4) and more Slides Digital Systems Design in PDF only on Docsity!

Fully Dedicated Architectures

Lecture 4

Dr. Shoab A. Khan

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Synchronous Digital Logic at RTL

 Digital designs are convenient to handle if they are

synchronous

 The ‘synchronous’ signifies that all changes in the digital

logic are controlled by one or more circuit clocks

 The ‘digital’ means that the design deals only with digital

signals.

 Synchronous digital logic is designed at the register

transfer level (RTL) of abstraction

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

 Hard real-time system constraints the design to process the input

samples at the input sampling rate and produces output samples at

the output sampling rate

 Examples:

 Communication Systems

 Multimedia Systems

 Biomedical Systems

Hard Real-Time Systems

Analog Analog

Discrete Time

Processing

A/D D/A

environment

Real time

GPP/DSP/ASIC/FPGA

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

System for discrete 1-D Signal

 For 1-D real-time signals only the amplitude varies in

time

 Example: Voice, ECG, signals from temp and pressure

sensors

(^1) -0.0554, -0.0437, -0.0348, -0.0543, 0.0409,…..

0

220 240 260 280 300 320 340

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

A Discrete time Video

 A video is a 2-D signal that varies in time

 A real-time video digital signal processor

processes a number of image frames per second

Frame 1

time

Frame 2 Frame 3 Frame 4

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Digital Design of Real-time Systems

 A digital communication receiver is a good example of real-time system

 Digitizes an analog signal at IF

 Digitally down converts the signal

 Performs demodulation and error correction

 Performs source decoding

 For high data rates, all these operations are performed in a digital

design

 For digital design, a top level framework is important

  • KPN is a framework that facilities top level design for multi-rate

real-time signal processing systems

512MHz

70MHz

Filter

Demodulator FEC

Digital

Down

Converter

Source

X A/D Decododer D/A

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Example of a KPN

 Four processors P 1 ,P 2 ,P 3 and P 4

 A Processor fires if it has enough tokens/data at its input FIFOs

 Example: P3 fires if there are input samples in FIFO4 and

FIFO

P1 (^) P3 P

FIFO 1

FIFO 2

FIFO 3

FIFO 4

FIFO 5

P 2

input

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

KPN for Modeling Streaming Applications

 For mapping applications in HW using KPN, it is

recommended that High-level language code should also

be broken down into blocks

 Clearly identify streams of input and output data

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Building Blocks in JPEG compression

RGB-YCbCr DCT

Sink

Entropy

Coding

Quantization

Source

FIFO 1

FIFO 4

FIFO 2

FIFO 5

FIFO 3

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

JPEG Code Matlab Code for Mapping as KPN

Q=[ 8 36 36 36 39 45 52 65;...

36 36 36 37 41 47 56 68;...

36 36 38 42 47 54 64 78;...

36 37 42 50 59 69 81 98;...

39 41 47 54 73 89 108 130;...

45 47 54 69 89 115 144 178;...

53 56 64 81 108 144 190 243;...

65 68 78 98 130 178 243 255];

BLK_SZ = 8; % block size

imageRGB = imread('peppers.png'); % default image

figure, imshow(imageRGB);

title('Original Color Image');

ImageFIFO = rgb2gray(RGB);

figure, imshow(ImageFIFO);

title('Original Gray Scale Image');

fun = @dct2;

DCT_ImageFIFO = blkproc(ImageFIFO,[BLK_SZ BLK_SZ],fun);

figure, imshow(DCT_ImageFIFO); title('DCT Image');

QuanFIFO = blkproc(DCT_FIFO, [BLK_SZ BLK_SZ], 'round(x./P1)', Q);

figure, imshow(QuanFIFO);

fun = @zigzag_runlength;

zigzagRLFIFO = blkproc(QuanFIFO, [BLK_SZ BLK_SZ], fun);

% variable length coding using Huffman tables

JPEGoutFIFO = VLC_huffman(zigzagRLFIFO, Huffman_dict);

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Example: MPEG Encoding

I P P P I P P P

(a)

(b)

Y

Cr

Cb

DCT Quant

Zig - zag Huffman^ RLE

For each 8 x 8 block

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Steps in Video Encoding

 Video is coded as a mixture of

 Intra-Frames (I-Frames)

 Inter- or Predicted Frames (P-Frames).

 I-Frame is coded as JPEG frame

 The I-Frame and all other frames are also decoded for coding of P-Frame.

 For P-Frame

 Frame is divided into sub-blocks

 Each target block is searched in the previously self-decoded reference

frame

 The difference of target and reference block is coded as a JPEG block

 The motion vector is also coded and transmitted with the coded block

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

Limitations of KPN

 Reads to follow FIFO operation

 Read in sequential order from the first value to the last

 The values once read from the FIFO are deleted

 All values in the FIFO to be read

 Many Signal Processing Algorithms do not adhere to these strict rules

 FFT requires bit reverse reading of data

 Convolution requires multiple read of same value many times

 Fractional re-sampling may require sparse reading of data

 Similarly the outputs may not be produced in sequential order

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

MPSoC

 Multi-processor System on Chip (MPSoC) employs some from of

KPN

 Local memory in each PE enables the design to counter KPN key

limitations

 The PE (P) first copies the data from FIFO to local memory (M) and then

processes it and writes the results in the memory

 The results are then copied in FIFO for passing to the next PE

P M

MC

CC

TILE

P M

MC

CC

P

M

MC

CC

NOC

Memory Processor

FIFO

TILE TILE