


























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























































Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan
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
GPP/DSP/ASIC/FPGA
Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan
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 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
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
real-time signal processing systems
Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan
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
Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan
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
(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
Intra-Frames (I-Frames)
Inter- or Predicted Frames (P-Frames).
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
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
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