Clean up vhdl_comp_inst
This commit is contained in:
parent
babe694366
commit
5a7cfd8c02
|
|
@ -255,6 +255,15 @@ vhdl_comp_inst::vhdl_comp_inst(const char *inst_name, const char *comp_name)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vhdl_comp_inst::~vhdl_comp_inst()
|
||||||
|
{
|
||||||
|
port_map_list_t::iterator it;
|
||||||
|
for (it = mapping_.begin(); it != mapping_.end(); ++it) {
|
||||||
|
delete (*it).expr;
|
||||||
|
}
|
||||||
|
mapping_.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void vhdl_comp_inst::map_port(const char *name, vhdl_expr *expr)
|
void vhdl_comp_inst::map_port(const char *name, vhdl_expr *expr)
|
||||||
{
|
{
|
||||||
port_map_t pmap = { name, expr };
|
port_map_t pmap = { name, expr };
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ typedef std::list<port_map_t> port_map_list_t;
|
||||||
class vhdl_comp_inst : public vhdl_conc_stmt {
|
class vhdl_comp_inst : public vhdl_conc_stmt {
|
||||||
public:
|
public:
|
||||||
vhdl_comp_inst(const char *inst_name, const char *comp_name);
|
vhdl_comp_inst(const char *inst_name, const char *comp_name);
|
||||||
virtual ~vhdl_comp_inst() {}
|
~vhdl_comp_inst();
|
||||||
|
|
||||||
void emit(std::ofstream &of, int level) const;
|
void emit(std::ofstream &of, int level) const;
|
||||||
void map_port(const char *name, vhdl_expr *expr);
|
void map_port(const char *name, vhdl_expr *expr);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue