Cerata
A library to generate structural hardware designs
|
Functions to resolve VHDL-specific problems with graphs. More...
#include <resolve.h>
Static Public Member Functions | |
static Component * | SignalizePorts (Component *comp) |
Transforms the component, inserting signals for every instance port. More... | |
Transforms the component, inserting signals for every instance port.
Many things are terrible in VHDL when it comes to instance ports.
To solve this elegantly and in a "readable" way (similar to how handcrafted designs would do it)turns out to be slightly non-trivial, as there are an incredible bunch of combinations to consider.
We choose to solve this by just inserting signals for every port onto the component and reroute all connections through the signals. This generates a massive amount of signals, but hey, at least I haven't thrown myself out of a window yet.
comp | The component to transform. |
Definition at line 69 of file resolve.cc.