Presentation is loading. Please wait.

Presentation is loading. Please wait.

NDG-L38Introduction to ASIC Design1 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP.

Similar presentations


Presentation on theme: "NDG-L38Introduction to ASIC Design1 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP."— Presentation transcript:

1

2 NDG-L38Introduction to ASIC Design1 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP – A Simple Customizable Microprocessor* - Cont’d  SIMP Implementation – Datapath + Control Unit Datapath consists of all registers + interconnect structures (such as Muxes) and ALU etc. Control Unit provides proper timing, sequencing, and synchronization of micro-operations, other activation signals + control signals for external world Fig-05: Basic Partition of SIMP Design

3 NDG-L38Introduction to ASIC Design2 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP Implementation – Cont’d  Datapath Implementation  PC Module/Block module PC(q, lda, ldd, inc, clr, clk, pca, pcd); output [11:0] q; input [11:0] pca, pcd; input lda, ldd, inc, clr, clk; reg [11:0] q; always @(posedge clk or negedge clr) begin if (!clr) q <= 12'd0; else begin if (lda) q <= pca; else if (ldd) q <= pcd; else if (inc) q <= q + 1; else q <= q; end endmodule Fig-06: Program Counter Block

4 NDG-L38Introduction to ASIC Design3 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP Implementation – Cont’d  Datapath Implementation – Cont’d  SP Block module SP (q, d, dec, inc, init, clk); output [11:0] q; input [11:0] d; input dec, inc, init, clk; reg [11:0] q; always @(posedge clk or posedge init) begin if (init) q <= 12'hff0; else if (dec) q <= q - 1; else if (inc) q<= q + 1; else q <= q; end endmodule Fig-07: Stack Pointer Block

5 NDG-L38Introduction to ASIC Design4 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP Implementation – Cont’d  Datapath Implementation – Cont’d  Working Register B module regb(q, d, ld, dec, inc, clr, com, clk); output [15:0] q; input [15:0] d; input ld, inc, dec, clr, com, clk; reg [15:0] q; always @(posedge clk) begin if (ld) q <= d; else if (inc) q <= d + 1; else if (dec) q <= d - 1; else if (com) q <= ~q; else q <= q; end endmodule Fig-08: Working Register B

6 NDG-L38Introduction to ASIC Design5 module alu(z, q, cout, a, b, cin, als); output [15:0] q; output cout; output z; input [15:0] a; input [15:0] b; input cin; input [1:0] als; reg [15:0] q; reg cout; assign z = (q == 16'd0); always @(a or b or als or cin) module alu(z, q, cout, a, b, cin, als); output [15:0] q; output cout; output z; input [15:0] a; input [15:0] b; input cin; input [1:0] als; reg [15:0] q; reg cout; assign z = (q == 16'd0); always @(a or b or als or cin) Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP Implementation – Cont’d  Datapath Implementation – Cont’d  Arithmetic Logic Unit (ALU) begin case (als) 2'b00:{cout, q} = a + b + cin; 2'b01:q = a & b; 2'b10:q = a; 2'b11:q = b; default: q = a; endcase end endmodule

7 NDG-L38Introduction to ASIC Design6 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP Implementation – Cont’d  Datapath Implementation – Cont’d  Data Bus Multiplexer Fig-09: Data Bus Multiplexer module dbusmux(out, pcdata, tempdata, aludata, din, dbus_sel); output [15:0] out; input [15:0] aludata, din; input [11:0] pcdata, tempdata; input [1:0] dbus_sel; reg [15:0] out; always @(dbus_sel or aludata or din or pcdata or tempdata) begin case (dbus_sel) 2'b00:out = {4'd0, pcdata}; 2'b01:out = {4'd0, tempdata}; 2'b10:out = aludata; 2'b11:out = din; default:out = din; endcase end endmodule

8 NDG-L38Introduction to ASIC Design7 Design of a Simple Customizable Microprocessor  SIMP Implementation – Cont’d  Datapath Implementation – Cont’d  Datapath Overall Fig-10: Datapath Integrated all Together * Chapter 7 and 15, “Digital System Design and Prototyping”


Download ppt "NDG-L38Introduction to ASIC Design1 Design of a Simple Customizable Microprocessor * Chapter 7 and 15, “Digital System Design and Prototyping”  SIMP."

Similar presentations


Ads by Google