(a) Write Verilog code that describes the logic block shown in Figure 6-3. Use a module similar...

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Digital Systems Design Using Verilog

ISBN: 978-1285051079

1st edition

Authors: Charles Roth, Lizy K. John, Byeong Kil Lee

Question Posted: