SILICON
Loading...
Searching...
No Matches
SILICON::verilog Namespace Reference

Typedefs

using SourceFile = core::SourceFile

Functions

std::string read (const std::string_view source, const yosys::ToolOptions &options)
std::string read (const std::span< const SourceFile > sources, const std::string_view entryPath, const yosys::ToolOptions &options)
std::string postprocess (const std::string_view source)
std::string write (const std::string_view yosysJson, const yosys::ToolOptions &options)
std::string write (const core::Circuit &circuit, const std::string_view moduleName, const yosys::ToolOptions &options)

Typedef Documentation

◆ SourceFile

Definition at line 33 of file verilog.hpp.

Function Documentation

◆ postprocess()

std::string postprocess ( std::string_view source)
nodiscard

Normalize raw Yosys write_verilog output into SILICON's readable form.

Definition at line 488 of file verilog.cpp.

◆ read() [1/2]

std::string read ( const std::span< const SourceFile > sources,
const std::string_view entryPath,
const yosys::ToolOptions & options )
nodiscard

Definition at line 482 of file verilog.cpp.

◆ read() [2/2]

std::string read ( const std::string_view source,
const yosys::ToolOptions & options )
nodiscard

Definition at line 477 of file verilog.cpp.

◆ write() [1/2]

std::string write ( const core::Circuit & circuit,
const std::string_view moduleName,
const yosys::ToolOptions & options )
nodiscard

Definition at line 499 of file verilog.cpp.

◆ write() [2/2]

std::string write ( const std::string_view yosysJson,
const yosys::ToolOptions & options )
nodiscard

Definition at line 494 of file verilog.cpp.