Question: (a) Write Verilog code that describes the logic block shown in Figure 6-1(a). Use the following module: module Figure6_1a(X_in,Y_in,clk,CE,Qx,Qy,X,Y,XLUT,YLUT); input[1:4]X_in,Y_in; input CE,clk; input[0:15] XLUT,YLUT; inout

(a) Write Verilog code that describes the logic block shown in Figure 6-1(a). Use the following module:

module Figure6_1a(X_in,Y_in,clk,CE,Qx,Qy,X,Y,XLUT,YLUT);

input[1:4]X_in,Y_in;

input CE,clk;

input[0:15] XLUT,YLUT;

inout X,Y;

output Qx,Qy;

.

.

.

endmodule

Figure 6-1(a)

| X] XX Function | X,]X Function X, generator OX FF X

(b) Write structural Verilog code that instantiates two Figure 6-1(a) block components to implement the 4-to-1 MUX of Figure 6-2. When you instantiate a block, use the actual bit patterns stored in XLUT and YLUT to specify the function generated by each of the LUTs.

| X] XX Function | X,]X Function X, generator OX FF X generator FF O CE QX CE So LUT4 M1 х, LUT4 X4 Y1 YlY Function Y g

| X] XX Function | X,]X Function X, generator OX FF X generator FF O CE QX CE So LUT4 M1 , LUT4 X4 Y1 YlY Function Y generator YY Function 13 generator LUT4 QY FF CE QY FF CE So M2 YA LUT4 Figure 6-2: Highlighting Paths for a 4-to-1 MUX

Step by Step Solution

3.55 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a module Figure61aXin Yin clk CE Qx Qy X Y XLUT YLUT input 1 4 Xin Yin input c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Digital Systems Design Questions!