Professional Documents
Culture Documents
DIC Assignment
DIC Assignment
DIC Assignment
ASSIGNMENT #1
EMT 353/3
DIGITAL INTEGRATED CIRCUIT DESIGN
ASSIGNMENT #1
SEMESTER 1
ACADEMIC SESSION 2016/2017
GROUP MEMBERS
RK 05
BEH YONG JIAN 141010413 Technology view
Microelectronic Engineering
RK 05
CHIA SHAN BOON 141010415 Schematic Design
Microelectronic Engineering
RK 05
LAU TENG HUI 141010425 HDL Design
Microelectronic Engineering
RK 05
ONG CHEE CHUNG 141010475 RTL view
Microelectronic Engineering
EMT 353/3 DIGITAL INTEGRATED CIRCUIT DESIGN
ASSIGNMENT #1
ASSIGNMENT #1 (10%)
DUE DATE: 11 NOVEMBER 2016 (W9)
module mux4_ifelse
(
input [3:0]A,B,C,D, //4-bit input A,B,C,D
input [1:0]Sel, //2-bit input Sel
output reg [3:0]Y //4-bit output
);
always @ (A or B or C or D or Sel) //cyclic behavioural model
begin
if (Sel==2'b00) //Sel=00,Y=inputA
Y = A;
else //Sel=11,Y=inputD
Y = D;
end
endmodule
module mux4_ifelse
(
input [3:0]A,B,C,D, //4-bit input A,B,C,D
input [1:0]Sel, //2-bit input Sel
output reg [3:0]Y //4-bit output
);
always @ (A or B or C or D or Sel) //cyclic behavioural model
begin
if (Sel==2'b00) //Sel=00,Y=inputA
Y = A;
b. case statement:
b1.Complete case:
module mux4_case
(
input [3:0]A,B,C,D, //4-bit input A,B,C,D
input [1:0]Sel, //2-bit input Sel
output reg [3:0]Y //4-bit output
);
module mux4_case
(
input [3:0]A,B,C,D, //4-bit input A,B,C,D
input [1:0]Sel, //2-bit input Sel
output reg [3:0]Y //4-bit output
);
c. Demonstrate the effect of complete and incomplete case (a) and case (b) respectively.
Case(a) if-else:
a1. Complete if-else:
Case(b) case:
b1. Complete case:
1 is interpreted as true.
Remain previous value hence latch is inferred.
0, x, z are interpreted as false.
EMT 353/3 DIGITAL INTEGRATED CIRCUIT DESIGN
ASSIGNMENT #1
(iii) Differentiate between the schematic and HDL-based design technique and relate to abstraction
levels in digital design.
Schematic HDL
Schematic gives far more insight into HDL good perform in complex but well-
what's happening at a gate-level design defined designs.
and gate level implementation. HDLs represent extensive parallel
easier to optimize the design for the operations.
specific device. Do not need to redesign circuit when new
Flexible in design. technology emerges.
A schematic capture tool allows the user to Tools for HDL have extraordinary
draw a schematic diagram of a circuit in sophistication, with plenty of verification
which circuit elements, such as logic and simulation.
gates, are depicted as graphical symbols Logic synthesis tool will optimize the
and connections between circuit elements circuit in area and timing for the new
are drawn as lines. technology.
Tools provided a library which is a functional verification of the design can be
collection of graphical symbols that done early in the design cycle.
represents gates of various types. Designing with HDLs is analogous to
It allows hierarchical design to create a computer programming.
circuit that includes within it other smaller A textual description with comments is an
circuits. easier way to develop and debug circuits
Harder to port it to a different device, HDL aren't the best to tweak the last inch
Reference
1. Ciletti M. D., Verilog 2001 for Beginners, Prentice Hall, 2008.
2. Lab 0 Introduction To Quartus II and Modelsim: From Design to Hardware Prototyping.