Skip to main content

Module hardware_report

Module hardware_report 

Source
Expand description

What Hardware mode makes of the editor’s text: which kind of design it is, and everything the Studio shows for it. One pure reading, so the panels, Execute and Compile can never disagree about what the file is.

Structs§

HardwareReport
Everything the Studio shows for a Hardware design.
Section
One labelled block of the result panel.

Enums§

Compiled
What Compile makes of a design.
HardwareKind
The kinds of design Hardware mode reads, by what the text names.

Functions§

analyze
Read content as its kind of design.
compiled
Compile content: an English spec becomes a Rust runtime monitor; every other design says why there is nothing to compile, instead of blaming the design.
is_verilog
Whether the editor holds Verilog: a line that opens a module, or an endmodule — known from the first line of a module being written, before kind_of can call it finished Verilog.
kind_of
Which kind of design content is; None for an empty editor. A spec is the kind whose field it names (pigeons:, registers:), whatever its values, so a mistake in one is reported as that spec’s mistake.
nothing_to_compile
Why Compile makes nothing for a design of kind — None for an English spec, which compiles to a Rust runtime monitor. The toolbar shows the same words on the disabled button.