blob: 95f9f2449d516973fc2be7910da840dd37121427 [file] [log] [blame]
Arya Reais-Parsie4bec992020-12-18 13:56:31 -08001///////// BASIC LUT /////////
2// Assumptions:
3// MEM_SIZE is a multiple of CONFIG_WIDTH
4
5module lut #(
6 parameter INPUTS=4,
7 parameter MEM_SIZE=2**INPUTS
8) (
9 // IO
10 input [INPUTS-1:0] addr,
11 output out,
12
13 // Block Style Configuration
14 input clk,
15 input comb_set,
16 input [MEM_SIZE-1:0] config_in
17);
18
19block_config_latches #(.ADDR_BITS(INPUTS), .PREDEC(1)) latches0 (
20 .addr(addr),
21 .out(out),
22 .clk(clk),
23 .comb_set(comb_set),
24 .config_in(config_in)
25);
26
27endmodule
28