Birla Institute of Technology and Science II Semester 2012-13 MEL G641 CAD For IC Design Lab Assignement-1
Birla Institute of Technology and Science II Semester 2012-13 MEL G641 CAD For IC Design Lab Assignement-1
For the following circuit perform the VHDL coding using structural style of modeling. Identify the circuit operation.
B0 A3 AB A2 AB A1 A.B A0 A.B B1 P0 A3 AB 0 A2 A.B A1 A.B 0 A0 A.B 0
FA
A3 AB A2 A.B A1
FA
FA
P1 A0
B2
A.B
A.B
FA
A3 A2 A3 B3 AB AB A1 AB
FA
FA
P2 A0 AB B3
FA
FA
FA
FA
B3
A3
FA
Cout P7
FA
P6
FA
P5
FA
P4
FA
P3
Q2: (Choice: VHDL/Verilog) (A) Write a module for positive edge triggered D flip-flop with setup and hold time limit violation specification. Module must report, if any violations are present. Chose setup time limit= 3 ns and Hold time limit of 7 ns, clock to q delay is 2 ns. Write test benches that verify all such violation. (B) If Q2 is connected back to D1 through an inverter having delay of 1ns and Q1 connected to D2 through an buffer having delay 1ns, also Hold time limit of Flip-Flop changed to 7 ns (keeping setup & clock to q delay unchanged) then comment on any time violations. In case any violations suggest suitable modifications in combinational circuit delays to remove timing violations and maximum clock frequency. Write the corresponding test benches.
1 ns
Q1 D1 D F/F
D2 D
Clk
1 ns
Clk
F/F
Q2