SILICON
Loading...
Searching...
No Matches
netlist.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <boost/graph/adjacency_list.hpp>
#include <nlohmann/json.hpp>
#include <core/wire.hpp>
#include <utils/transparent_string.hpp>
Include dependency graph for netlist.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ModuleDependencyGraph
 Module-instantiation dependency graph for a Yosys JSON design. More...
struct  ModuleDependencyGraph::VertexProperty
 Per-vertex payload holding the declared module name. More...
class  SerializationContext
 Mutable module-building interface passed to component serializers. More...

Namespaces

namespace  SILICON
namespace  SILICON::core
namespace  SILICON::yosys

Typedefs

using Json = nlohmann::ordered_json

Functions

ModuleDependencyGraph moduleDependencyGraph (std::string_view json)
 Build a module dependency graph from a Yosys write_json document.
std::string serialize (const Circuit &circuit, const std::string_view moduleName)
 Serialize a complete Silicon circuit as Yosys write_json-compatible JSON.
Circuit deserialize (std::string_view json, std::optional< std::string_view > moduleName=std::nullopt)
 Deserialize one supported Yosys write_json module into a Silicon circuit.