|
SILICON
|
#include <array>#include <concepts>#include <functional>#include <memory>#include <optional>#include <ranges>#include <span>#include <string>#include <string_view>#include <type_traits>#include <unordered_map>#include <utility>#include <variant>#include <vector>#include <core/wire.hpp>#include <utils/transparent_string.hpp>

Go to the source code of this file.
Classes | |
| struct | ComponentMetadata |
| struct | Context |
| Context describing why a component is being evaluated. More... | |
| class | Component |
| Base class for all digital circuit components. More... | |
Namespaces | |
| namespace | SILICON |
| namespace | SILICON::yosys |
| namespace | SILICON::simulation |
| namespace | SILICON::core |
Concepts | |
| concept | SILICON::core::HasType |
| Concept to check if a type has a Type static member. | |
Typedefs | |
| using | PropertyValue = std::variant<int, bool, std::string, BusValue> |
| Variant type for component properties. | |
| using | PropertyMap |
| Map from property names to their values. | |
| using | PropertyCallback = std::function<PropertyValue(const PropertyValue&)> |
| Callback function for property validation/transformation. | |
| using | PropertyCallbackMap |
| Map from property names to their callback functions. | |
| using | StringPropertyOptions = std::vector<std::string> |
| Allowed values for a constrained string property. | |
| using | StringPropertyOptionsMap |
| Map from property names to constrained string values. | |
Enumerations | |
| enum class | ComponentCategory { Gates , Multiplexers , Arithmetic , FlipFlops , Register , Memory , Subcircuits , Inputs , Outputs , Utils } |
| enum class | PortRole { None , Input , Output } |
| Declares whether a component represents a public circuit boundary port. More... | |
Functions | |
| PropertyValue | requireNonNegative (std::string_view name, const PropertyValue &value) |
| Validates that an integer property value is non-negative. | |
| PropertyValue | requireValidSize (std::string_view name, const PropertyValue &value) |
| Validates that an integer property value is a valid bus size. | |