 |
Cerata
A library to generate structural hardware designs
|
21 #include "cerata/graph.h"
22 #include "cerata/vhdl/vhdl.h"
23 #include "cerata/vhdl/block.h"
24 #include "cerata/vhdl/defaults.h"
43 std::string notice =
"",
A VHDL design that can generate code for a single file.
std::string notice_
A potential copyright notice to place in the header.
MultiBlock Generate()
Generate the design VHDL code.
constexpr char DEFAULT_LIBS[]
Default libraries to include.
A structure to hold multiple blocks.
Design(const std::shared_ptr< Component > &component, std::string notice="", std::string header=DEFAULT_LIBS)
Design constructor.
Component * component_
The component for this design file.
std::shared_ptr< Component > component(std::string name, const std::vector< std::shared_ptr< Object >> &objects, ComponentPool *component_pool)
Construct a Component with initial nodes.
std::string libs_
Libraries to place after the header.
Design(Component *component, std::string notice="", std::string header=DEFAULT_LIBS)
Design constructor.
Contains everything related to the VHDL back-end.