mirror of https://github.com/YosysHQ/yosys.git
[core] debug
This commit is contained in:
parent
c98dddfe32
commit
75a2ff3ed8
|
|
@ -104,9 +104,9 @@ struct InsertClockBuffer : public Pass {
|
|||
void rewire_subckt(RTLIL::Module *module, RTLIL::Cell *cell,
|
||||
RTLIL::IdString id_name, std::string C_input) {
|
||||
std::string C_output = C_input + "_ckbuf";
|
||||
if (!module->wire("\\" + C_output)) {
|
||||
auto output_wire = module->addWire("\\" + C_output, 1);
|
||||
}
|
||||
// if (!module->wire("\\" + C_output)) {
|
||||
// auto output_wire = module->addWire("\\" + C_output, 1);
|
||||
// }
|
||||
/* connect new ckbuf to the subckt */
|
||||
cell->unsetPort(id_name); // unsetPort("C")
|
||||
cell->setPort(id_name, module->wire("\\" + C_output));
|
||||
|
|
@ -186,7 +186,7 @@ struct InsertClockBuffer : public Pass {
|
|||
representing internally generated signals. When such a signal is found, it
|
||||
invokes rewire_subckt.*/
|
||||
std::set<std::string>
|
||||
find_internal_clk_r_signal(RTLIL::Module *module, RTLIL::Design *design,
|
||||
find_internal_clk_r_signal(RTLIL::Module *module,
|
||||
std::map<std::string, std::string> &ckbuf_type) {
|
||||
std::set<std::string> ckbuf_info;
|
||||
/*get input ports of the top module*/
|
||||
|
|
@ -528,7 +528,7 @@ struct InsertClockBuffer : public Pass {
|
|||
if (module->name == RTLIL::escape_id(top_module_name)) {
|
||||
std::map<std::string, std::string> ckbuf_type;
|
||||
std::set<std::string> ckbuf_info =
|
||||
find_internal_clk_r_signal(module, design, ckbuf_type);
|
||||
find_internal_clk_r_signal(module, ckbuf_type);
|
||||
/*insert ckbuf and rewire dff */
|
||||
insert_ckbuf(module, ckbuf_info);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
USING_YOSYS_NAMESPACE
|
||||
PRIVATE_NAMESPACE_BEGIN
|
||||
|
||||
#include "pmgen/rf_dsp_mad.h"
|
||||
#include "rf_dsp_mad_pm.h"
|
||||
|
||||
static void create_rf_mad_dsp(rf_dsp_mad_pm &pm) {
|
||||
auto &st = pm.st_rf_dsp_mad;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
USING_YOSYS_NAMESPACE
|
||||
PRIVATE_NAMESPACE_BEGIN
|
||||
|
||||
#include "pmgen/rf_new_dsp.h"
|
||||
#include "rf_new_dsp_pm.h"
|
||||
|
||||
void swapinput(RTLIL::SigSpec &sigA, RTLIL::SigSpec &sigB) {
|
||||
if (GetSize(sigA) < GetSize(sigB)) {
|
||||
|
|
@ -438,4 +438,4 @@ struct RfNewDSP : public Pass {
|
|||
}
|
||||
} RfNewDsp;
|
||||
|
||||
PRIVATE_NAMESPACE_END
|
||||
PRIVATE_NAMESPACE_END
|
||||
|
|
|
|||
Loading…
Reference in New Issue