Description: //4 × 4 multiplier lookup table module mult4x4 (out, a, b, clk) output [7:0] out input [3:0] a, b input clk reg [7:0] out reg [1:0 ] firsta, firstb reg [1:0] seconda, secondb wire [3:0] outa, outb, outc, outd always @ (posedge clk) beginfirsta = a [3:2] seconda = a [1:0] firstb = b [3:2] secondb = b [1:0] endlookup m1 (outa, firsta, firstb, clk), m2 (outb, firsta, secondb, clk), m3 (outc, seconda, firstb, clk), m4 ( outd, seconda, secondb, clk)// module call
To Search:
File list (Check if you may need any files):