Transcript ppt

Structural Description-Animation
Shantanu Dutt
ECE Dept.
UIC
Structural Description
entity ckt1 is
port(s1, s2: in bit; z: out bit);
end entity ckt1;
architecture structural of ckt1 is
signal sbar1, sbar2, x, y: bit;
sbar2
And
S2
X
not2
and1
Or
Z
or1
S1
not1
And
Not
end architecture structural;
Not
begin
not1: entity work.notgate(behav)
port map (s1, sbar1);
not2: entity work.notgate(behav)
port map (s2, sbar2);
and1: entity work.andgate(behav)
port map (s1, sbar2, x);
and2: entity work.andgate(behav)
port map (s2, sbar1, y);
or1: entity work.orgate(behav)
port map (x, y, z);
sbar1
and2
Y