mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added $lut support in test_cell, techmap, satgen
This commit is contained in:
parent
2a1b08aeb3
commit
8649b57b6f
4 changed files with 102 additions and 9 deletions
|
@ -841,3 +841,20 @@ module \$pmux (A, B, S, Y);
|
|||
assign Y = |S ? Y_B : A;
|
||||
endmodule
|
||||
|
||||
|
||||
// --------------------------------------------------------
|
||||
// LUTs
|
||||
// --------------------------------------------------------
|
||||
|
||||
`ifndef NOLUT
|
||||
module \$lut (A, Y);
|
||||
parameter WIDTH = 1;
|
||||
parameter LUT = 0;
|
||||
|
||||
input [WIDTH-1:0] A;
|
||||
output Y;
|
||||
|
||||
assign Y = LUT[A];
|
||||
endmodule
|
||||
`endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue