SILICON
Loading...
Searching...
No Matches
helpers.hpp File Reference
#include <format>
#include <initializer_list>
#include <stdexcept>
#include <string>
#include <string_view>
#include <utility>
#include <core/component.hpp>
#include <core/serialization/yosys/netlist.hpp>
Include dependency graph for helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SILICON
namespace  SILICON::yosys
namespace  SILICON::yosys::detail

Functions

Json directions (std::initializer_list< std::pair< std::string_view, std::string_view > > values)
const Bus & requireBus (const Component &component, const bool input, const std::size_t index)
Json unsignedParameters (const std::size_t aWidth, const std::size_t bWidth, const std::size_t yWidth)
void emitUnary (SerializationContext &context, const std::string_view suffix, const std::string_view type, const Json &input, const Json &output)
void emitBinary (SerializationContext &context, const std::string_view suffix, const std::string_view type, const Json &lhs, const Json &rhs, const Json &output)
void emitFineBinary (SerializationContext &context, const std::string_view suffix, const std::string_view type, const Json &lhs, const Json &rhs, const Json &output)
void emitGateFold (SerializationContext &context, const Component &component, const std::string_view operation, const bool invert)
void emitLogicalGateFold (SerializationContext &context, const Component &component, const std::string_view operation)