






































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!







































Docsity.com
Docsity.com
Let's look at the common constructs we use to specify the
functionality of a piece of hardware:
Model
inputs outputs
t
input behavior over time
output behavior over time
Docsity.com
continous (analog) gate delay (psec?) clock cycle instruction cycle events
continuous (analog) bit : multiple values bit : binary abstract value composite value ("struct")
discrete time
discrete value
Docsity.com
Continuous Gate Delay Clock Cycle Instruction Cycle Events
Continuous Multivalue Bit^ Bit^ abstract value^ "struct"
Continous Switch Level Boolean Logic Algorithmic Abstract Mathematical
Single Black Box Functional Blocks
Detailed Component Hierarchy
Temporal
Data
Functional
Structural
Docsity.com
Continuous Gate Delay Clock Cycle Instruction Cycle Events
Continuous Multivalue Bit^ Bit^ abstract value^ "struct"
Continous Switch Level Boolean Logic Algorithmic Abstract Mathematical
Single Black Box Functional Blocks
Detailed Component Hierarchy
Temporal
Data
Functional
Structural
Docsity.com
In HDL Terms
General: programming language constructs
Parallelism:
Special purpose H/W constructs
Docsity.com
General HDL Simulators
Event-Driven Execution
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Let's simulate: a= b= Time = 0ns (step1)
Red Boxes : evaluate in current step
1
1
1
0
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Let's simulate:
a= b= Time = 0ns (step3)
1
1
1
0 1 1
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Let's simulate:
a= b= Time = 0ns (step4)
1
1
1
0 1 1 1
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Let's simulate:
a= b= Time = 1ns (step2)
1
1
1
0 1 0 1
1
1
1
1
1
Docsity.com
A more hardware-oriented example
s(0) <= a(0) xor b(0) after 2ns; c(0) <= a(0) and b(0) after 1ns;
s(1) <= a(1) xor b(1) xor c(0) after 2ns; c(1) <= (a(1) and b(1)) or (b(1) and c(0)) or (c(0) and a(1)) after 1ns;
sum_out(1 to 0) <= s(1 to 0); carry_out <= c(1);
and
a
b
and
xor
s(0)
c(0)
xor xor =>
s(1)
sum_out(1)
and
and or
or
=>
=>
sum_out(0)
carry_out
Let's simulate:
a= b= Time = 1ns (step3)
1
1
1
0 1 0 0
1
1
1
1
1
1
Docsity.com