27 lines
478 B
Verilog
27 lines
478 B
Verilog
`ifdef verilator3
|
|
`else
|
|
`timescale 1 ps / 1 ps
|
|
`endif
|
|
//
|
|
// LUT5 primitive for Xilinx FPGAs
|
|
// Compatible with Verilator tool (www.veripool.org)
|
|
// Copyright (c) 2019-2022 Frédéric REQUIN
|
|
// License : BSD
|
|
//
|
|
|
|
/* verilator coverage_off */
|
|
module LUT5
|
|
#(
|
|
parameter [31:0] INIT = 32'h00000000
|
|
)
|
|
(
|
|
input wire I0, I1, I2, I3, I4,
|
|
output wire O
|
|
);
|
|
wire [4:0] _w_idx = { I4, I3, I2, I1, I0 };
|
|
|
|
assign O = INIT[_w_idx];
|
|
|
|
endmodule
|
|
/* verilator coverage_on */
|