Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on July 3, 2025 at 11:21 PM
Expires on August 2, 2025 at 11:21 PM (4 weeks from now)

New Paste 1 (Text)

top	$abc$3123$lut$not$aiger3122$1	$lut	A	in	\ctr [0]
top	$abc$3123$lut$not$aiger3122$1	$lut	Y	out	$abc$3123$auto$rtlil.cc:2609:MuxGate$1039

Why does the below techmap.v not replace the above WIDTH==1 lut?

module \$lut (A, Y);
   parameter WIDTH = 0;
   parameter LUT = 0;
   
   (* force_downto *)
   input [WIDTH-1:0] A;
   output            Y;
   
   generate
      if (WIDTH == 1) begin
         LUT_SIMPLE _TECHMAP_REPLACE_ (.LUT_INIT({{4{LUT[1]}},{4{LUT[0]}}}), .Q(Y), .S0(1'b0), .S1(1'b0), .S2(A[0]));
      end if (WIDTH == 2) begin
         LUT_SIMPLE _TECHMAP_REPLACE_ (.LUT_INIT({{2{LUT[3]}},{2{LUT[2]}},{2{LUT[1]}},{2{LUT[0]}}}), .Q(Y), .S0(1'b0), .S1(A[0]), .S2(A[1]));
      end else if (WIDTH == 3) begin
         LUT_SIMPLE _TECHMAP_REPLACE_ (.LUT_INIT(LUT), .Q(Y), .S0(A[0]), .S1(A[1]), .S2(A[2]));
      end else begin
         wire _TECHMAP_FAIL_ = 1;
      end
   endgenerate
endmodule