GHDL no declaration for signal

A VHDL object is not visible in this scope.

ghdlghdlerror

Declare it in the architecture/process or correct the name.

// Minimal educational reproduction for GHDL no declaration for signal
module top; endmodule