





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Professor: Lysecky; Class: Computer-Aided Logic Design; Subject: Electrical & Computer Engr; University: University of Arizona; Term: Unknown 2006;
Typology: Exams
1 / 9
This page cannot be seen from the preview
Don't miss anything!






ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 2 of 94
Frank Vahid
RTL Design Examples and Issues
32 4 A
rd D
Per0 Per1 Per
Master processor
Faddr
4
rd D A
Bus interface
Main part
Peripheral
32
to/from processor bus
32 4
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 3 of 94 Frank Vahid
RTL Example: Bus Interface
WaitMyAddress
Inputs: rd (bit); Q (32 bits); A, Faddr (4 bits) Outputs: D (32 bits) Local register: Q1 (32 bits) rd’ rd
SendData
D = “Z” Q1 = Q
(A = Faddr) and rd
(A = Faddr) and rd’
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 4 of 94
Frank Vahid
RTL Example: Bus Interface
WaitMyAddress
Inputs: rd (bit); Q (32 bits); A, Faddr (4 bits) Outputs: D (32 bits) Local register: Q1 (32 bits) rd’ rd
SendData
D = “Z” Q1 = Q
(A = Faddr) and rd
(A = Faddr) and rd’
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 5 of 94
Frank Vahid
RTL Example: Bus Interface
ld (^) Q
Faddr Q
4 4 32
32
a
WaitMyAddress
Inputs: rd (bit); Q (32 bits); A, Faddr (4 bits) Outputs: D (32 bits) Local register: Q1 (32 bits) rd’ rd
SendData
D = “Z” Q1 = Q
(A = Faddr) and rd
(A = Faddr) and rd’
Datapath
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 6 of 94 Frank Vahid
RTL Example: Bus Interface
Datapath
Q1_ld ld (^) Q
Faddr Q
4 4 32
A_eq_Faddr (4-bit equality) 32
32
D_en
a
WaitMyAddress
Inputs: rd (bit); Q (32 bits); A, Faddr (4 bits) Outputs: D (32 bits) Local register: Q1 (32 bits) rd’ rd
SendData
D = “Z” Q1 = Q
(A = Faddr) and rd
(A = Faddr) and rd’
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 10 of 94 Frank Vahid
RTL Example:
Video Compression – Sum of Absolute Differences
!(i< 256 )
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 11 of 94 Frank Vahid
RTL Example:
Video Compression – Sum of Absolute Differences
!(i< 256 )
go
sad
Inputs: A, B (256 byte memory); go (bit) Outputs: sad (32 bits) Local registers: sum, sad_reg (32 bits); i (9 bits)
go
sum = 0 i = 0
sum=sum+abs(A[i]-B[i]) i=i+
i<
(i<256)’
a
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 12 of 94 Frank Vahid
RTL Example:
Video Compression – Sum of Absolute Differences
Inputs: A, B (256 byte memory); go (bit) Outputs: sad (32 bits) Local registers: sum, sad_reg (32 bits); i (9 bits)
S0 !go go S1 sum = 0i = 0
S3 sum=sum+abs(A[i]-B[i])i=i+
S4 sad_ reg=sum
i<
(i<256)’
i_lt_
i_inc
i_clr
sum_ld
sum_clr
sad_reg_ld
Datapath
sum
sad_reg
sad
AB_addr A_data B_data
i –
abs
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 13 of 94
Frank Vahid
RTL Example:
Video Compression – Sum of Absolute Differences
i_lt_
i_inc
i_clr
sum_ld
sum_clr
sad_reg_ld
Datapath
sum
sad_reg
sad
AB_addr A_data B_data
i –
abs
S0 !go go
S
sum = 0 i = 0
S3 sum=sum+abs(A[i]-B[i]) i=i+
S4 sad_ reg=sum
i<
(i<256)’
Controller
go AB_ rd
sum_clr= i_clr=
i_lt_
i_inc=
i_lt_256’
sum_ld=1; AB_rd=
sad_reg_ld=
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 14 of 94
Frank Vahid
RTL Example:
Video Compression – Sum of Absolute Differences
!(i< 256 )
!(i< 256 )(i_lt_ 256 )
(i<256)’
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 15 of 94 Frank Vahid
RTL Design Pitfalls and Good Practice
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 19 of 94
Frank Vahid
Control vs. Data Dominated RTL Design
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 20 of 94
Frank Vahid
Data Dominated RTL Design Example:
FIR Filter
clk
digital filter
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 21 of 94 Frank Vahid
Data Dominated RTL Design Example:
FIR Filter
clk
digital filter
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 22 of 94
Frank Vahid
Data Dominated RTL Design Example:
FIR Filter
a
clk
digital filter
xt0 xt1 xt
x(t) x(t-1) x(t-2)
3-tap FIR filter
X
Y
clk
12 12
12
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 23 of 94
Frank Vahid
Data Dominated RTL Design Example:
FIR Filter
xt0 xt1 xt
x(t) x(t-1) x(t-2)
3-tap FIR filter
X
Y
clk
c0 c1 c
∗ ∗ ∗
a
clk
digital filter
ECE 474a/575a Susan Lysecky
Digital DesignCopyright © 2006 24 of 94 Frank Vahid
Data Dominated RTL Design Example:
FIR Filter
a
xt0 xt1 xt
x(t) x(t-1) x(t-2)
3-tap FIR filter
X
Y
clk
c0 c1 c
∗ ∗ ∗
clk
digital filter