|
SILICON
|
#include <atomic>#include <compare>#include <cstdint>#include <format>#include <memory>#include <set>#include <string>#include <vector>

Go to the source code of this file.
Classes | |
| class | Wire |
| class | Bus |
Namespaces | |
| namespace | SILICON |
| namespace | SILICON::core |
Typedefs | |
| using | Component_weakPtr = std::weak_ptr<Component> |
| using | Component_set = std::set<Component_ptr, std::owner_less<Component_ptr>> |
| using | Wire_ptr = std::shared_ptr<Wire> |
| using | BusValue = std::vector<State> |
Enumerations | |
| enum class | State : unsigned char { LOW = '0' , HIGH = '1' , UNKNOWN = 'X' , ERROR = 'E' } |
| enum class | Signedness : bool { UNSIGNED = false , SIGNED = true } |
Functions | |
| State | operator&& (const State &a, const State &b) |
| State | operator|| (const State &a, const State &b) |
| State | operator^ (const State &a, const State &b) |
| State | operator! (const State &a) |
| std::string | to_str (State s) |
| BusValue | operator+ (const BusValue &a, const BusValue &b) |
| BusValue | twosComplement (const BusValue &n) |
| std::partial_ordering | compare (const BusValue &lhs, const BusValue &rhs, const Signedness signedness) |
| BusValue | shift (const BusValue &v, const ptrdiff_t amount, const Signedness signedness) |
| BusValue | multiply (const BusValue &a, const BusValue &b, const Signedness signedness) |
| std::pair< BusValue, BusValue > | divide (const BusValue &a, const BusValue &b, Signedness signedness) |