Skip to content

Cannot select and cutpoint blackbox modules #4561

@RCoeurjoly

Description

@RCoeurjoly

Version

Yosys 0.44+39 (git sha1 32d770d64, g++ 13.2.0 -Og -fPIC)

On which OS did this happen?

Linux

Reproduction Steps

read_verilog <<EOT
(* blackbox *)
module passthrough(
    input wire in,  // Input signal
    output wire out // Output signal
);

    // Assign the output to be the same as the input
    assign out = in;

endmodule
EOT
cutpoint =*

I get:

  1. Executing CUTPOINT pass.

Note that if the module is not a blackbox:

read_verilog <<EOT
module passthrough(
    input wire in,  // Input signal
    output wire out // Output signal
);

    // Assign the output to be the same as the input
    assign out = in;

endmodule
EOT

cutpoint =*
  1. Executing CUTPOINT pass.
    Making all outputs of module passthrough cut points, removing module contents.

Expected Behavior

  1. Executing CUTPOINT pass.
    Making all outputs of module passthrough cut points, removing module contents.

Actual Behavior

  1. Executing CUTPOINT pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions