Question: (a) Write Verilog code that describes the logic block shown in Figure 6-3. Use a module similar to that used in Problem 6.6(a), except add

(a) Write Verilog code that describes the logic block shown in Figure 6-3. Use a module similar to that used in Problem 6.6(a), except add ZLUT and SA, SB, SC, and SD. SA, SB, SC, and SD represent the programmable select bits that control the four MUXes. These bits should be assigned values of 0 or 1 when the block component is instantiated.

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

Q2 Qi G Q2 A1 FF1 Q1- Qi Q3 Аз G2 FF2 Q'FQ2 X' A5 G5 | 23 D3 G4 Aз Aб Qi G3 X' FF3 G6 Q3 Q' CLK FIGURE 1-26: Realiza


QX х, CE FF X2 |X Function X generator X3 Z Function Ход LUT4 | X4 generator LUT3 | Y1 QY D. FF CE |Y2 Y Function Y

Data from Problem 6.6.

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

Q2 Qi G Q2 A1 FF1 Q1- Qi Q3 G2 FF2 Q'FQ2 X' A5 G5 | 23 D3 G4 A A Qi G3 X' FF3 G6 Q3 Q' CLK FIGURE 1-26: Realization of Code Converter QX , CE FF X2 |X Function X generator X3 Z Function LUT4 | X4 generator LUT3 | Y1 QY D. FF CE |Y2 Y Function Y generator Y3 LUT4 Yout | Y4 Figure 6-3: Example Programmable Logic Block with Three Look-Up Tables. Based on Xilinx. Programmable MUX

Step by Step Solution

3.24 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a module Figure63Xin Yin clk CE C Qx Qy X Y XLUT YLUT ZLUT SA SB SC SD inpu... 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!