Behaviotal Modeling part 2

Behaviotal Modeling part 2

Behaviotal Modeling part 2

... are executed at time 0 • Statement reg_a [2] = 0 at time = 15 • Statement reg_b[15:13] = {x, y, z} at time = 25 • Statement count = count + 1 at time = 25 • Since there is a delay of 15 and 10 ... reg_a; //initialize vectors #15 reg_a [2] = 1'b1; //Bit select assignment with delay #10 reg_b[15:13] = {x, y, z} //Assign result of concatenation to // part select of a vector count = coun...

Ngày tải lên: 28/10/2013, 22:15

6 257 0
Switch Level Modeling part 2

Switch Level Modeling part 2

... blocks, they use switch-level modeling. 11 .2. 2 2- to-1 Multiplexer A 2- to-1 multiplexer can be defined with CMOS switches. We will use the my_nor gate declared in Section 11 .2. 1 , CMOS Nor Gate to implement ... C2 are CMOS switches, discussed in Section 11.1 .2 , CMOS Switches. Switch C1 is closed if clk = 1, and switch C2 is closed if clk = 0. Complement of the clk is fed to the nco...

Ngày tải lên: 20/10/2013, 16:15

6 335 0
Behaviotal Modeling part 1

Behaviotal Modeling part 1

... begin #5 a = 1'b1; //multiple statements; need to be grouped #25 b = 1'b0; end initial begin #10 x = 1'b0; #25 y = 1'b1; end initial #50 $finish; endmodule In the above example, ... Initialization Variables can be initialized when they are declared. Example 7 -2 shows such a declaration. Example 7 -2 Initial Value Assignment //The clock variable is defined first reg cloc...

Ngày tải lên: 28/10/2013, 22:15

4 327 0
Behaviotal Modeling part 3

Behaviotal Modeling part 3

... 7- 12 illustrates zero delay control. Example 7- 12 Zero Delay Control initial begin x = 0; y = 0; end initial begin #0 x = 1; //zero delay control #0 y = 1; end In Example 7- 12 , ... 7-10 . Example 7-10 Regular Delay Control //define parameters parameter latency = 20 ; parameter delta = 2; //define register variables reg x, y, z, p, q; initial begin x = 0;...

Ngày tải lên: 07/11/2013, 19:15

7 229 0
Behaviotal Modeling part 4

Behaviotal Modeling part 4

... 2& apos;bx0, 2& apos;bx1, 2& apos;bxz, 2& apos;bxx, 2& apos;b0x, 2& apos;b1x, 2& apos;bzx : begin out0 = 1'bx; out1 = 1'bx; out2 = 1'bx; out3 = 1'bx; end 2& apos;bz0, 2& apos;bz1, ... ({s1, s0}) //Switch based on concatenation of control signals 2& apos;d0 : out = i0; 2& apos;d1 : out = i1; 2& apos;d2 : out = i2; 2& apos;d3 : out = i3; defa...

Ngày tải lên: 07/11/2013, 19:15

5 257 0
Behaviotal Modeling part 5

Behaviotal Modeling part 5

... keywords begin and end. Example 7 -22 illustrates the use of the while loop. Example 7 -22 While Loop //Illustration 1: Increment count from 0 to 127 . Exit at count 128 . //Display the count variable. ... while (count < 128 ) //Execute loop till count is 127 . //exit at count 128 begin $display("Count = %d", count); count = count + 1; end end //Illustration...

Ngày tải lên: 07/11/2013, 19:15

5 274 0
Tài liệu Behaviotal Modeling part 6 ppt

Tài liệu Behaviotal Modeling part 6 ppt

... r_loop [2] .g1, r_loop[3].g1 r_loop[0].g2, r_loop[1].g2, r_loop [2] .g2, r_loop[3].g2 // and : r_loop[0].g3, r_loop[1].g3, r_loop [2] .g3, r_loop[3].g3 r_loop[0].g4, r_loop[1].g4, r_loop [2] .g4, ... r_loop[1].t2, r_loop[1].t3 // r_loop [2] .t1, r_loop [2] .t2, r_loop [2] .t3 // r_loop[3].t1, r_loop[3].t2, r_loop[3].t3 assign co = carry[N]; endmodule 7.8 .2 Generate Conditional...

Ngày tải lên: 15/12/2013, 03:15

7 423 0
Tài liệu Behaviotal Modeling part 7 doc

Tài liệu Behaviotal Modeling part 7 doc

... end initial fork: block2 //parallel block named block2 reg i; // register i is static and local to block2 // can be accessed by hierarchical name, top.block2.i join Disabling named ... known. Variables z and w will get values 1 and 2 if x = 1'b0 and y = 1'b1 execute first. Variables z and w will get values 2& apos;bxx and 2& apos;bxx if x = 1'b0 and y = 1&apo...

Ngày tải lên: 15/12/2013, 03:15

6 340 0
Tài liệu Gate Level Modeling part 2 pdf

Tài liệu Gate Level Modeling part 2 pdf

... a1(out, i1, i2); //Delay of 5 for all transitions and #(4,6) a2(out, i1, i2); // Rise = 4, Fall = 6 bufif0 #(3,4,5) b1 (out, in, control); // Rise = 3, Fall = 4, Turn-off = 5 5 .2. 2 Min/Typ/Max ... 5:6:7) a2(out, i1, i2); // Three delays // if +mindelays, rise= 2 fall= 3 turn-off = 4 // if +typdelays, rise= 3 fall= 4 turn-off = 5 // if +maxdelays, rise= 4 fall= 5 turn-off = 6 and...

Ngày tải lên: 15/12/2013, 03:15

6 278 0
Tài liệu Daflow Modeling part 2 pdf

Tài liệu Daflow Modeling part 2 pdf

... A_gt_B = A(3).B(3)' + x(3).A (2) .B (2) ' + x(3).x (2) .A(1).B(1)' + x(3).x (2) .x(1).A(0).B(0)' A_lt_B = A(3)'.B(3) + x(3).A (2) '.B (2) + x(3).x (2) .A(1)'.B(1) + ... Combines operands and operators a ^ b addr1 [20 :17] + addr2 [20 :17] in1 | in2 6.3 .2 Operands Operands can be any one of the data types defined in Section 3 .2, Data Types. Some...

Ngày tải lên: 26/01/2014, 14:20

4 228 0
Từ khóa:
w