Declare synth_fabulous pad cells as blackboxes.

iopadmap inserted $__FABULOUS_* cells with no module, so their port
directions were unknown to later passes. Read with -icells so the module
names match the cell types.
This commit is contained in:
nella
2026-09-14 13:50:09 +02:00
parent d0e71cfb7b
commit 77bca709d4
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -31,4 +31,5 @@ yosys_pass(synth_fabulous
DATA_DIR
fabulous
DATA_FILES
cells_bb.v
)
+18
View File
@@ -0,0 +1,18 @@
// Pad cells inserted by synth_fabulous via iopadmap.
// Mapped to fabric primitives by a user supplied -extra-map.
(* blackbox *)
module \$__FABULOUS_IBUF (input PAD, output OUT);
endmodule
(* blackbox *)
module \$__FABULOUS_OBUF (output PAD, input IN);
endmodule
(* blackbox *)
module \$__FABULOUS_TBUF (output PAD, input IN, input EN);
endmodule
(* blackbox *)
module \$__FABULOUS_IOBUF (inout PAD, output OUT, input IN, input EN);
endmodule
+1
View File
@@ -274,6 +274,7 @@ struct SynthPass : public ScriptPass {
void script() override
{
run("read_verilog -icells -lib +/fabulous/cells_bb.v");
if (help_mode) {
run("read_verilog -lib <extra_plib.v>", "(for each -extra-plib)");
} else