From d1f2cb01dcde4bd8972e28df9e600a4060b77344 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 5 Dec 2018 19:27:48 +0000 Subject: lut2mux: handle 1-bit INIT constant in $lut cells. This pass already handles INIT constants shorter than 2^width, but that was not done for the recursion base case. --- passes/techmap/lut2mux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'passes/techmap/lut2mux.cc') diff --git a/passes/techmap/lut2mux.cc b/passes/techmap/lut2mux.cc index d32bbff14..a4ed79550 100644 --- a/passes/techmap/lut2mux.cc +++ b/passes/techmap/lut2mux.cc @@ -32,7 +32,7 @@ int lut2mux(Cell *cell) if (GetSize(sig_a) == 1) { - cell->module->addMuxGate(NEW_ID, lut[0], lut[1], sig_a, sig_y); + cell->module->addMuxGate(NEW_ID, lut.extract(0)[0], lut.extract(1)[0], sig_a, sig_y); } else { -- cgit v1.2.3