示例#1
0
文件: nl_base.cpp 项目: rfka01/mame
logic_output_t::logic_output_t(core_device_t &dev, const pstring &aname)
	: logic_t(dev, aname, STATE_OUT)
	, m_my_net(dev.state(), name() + ".net", this)
{
	this->set_net(&m_my_net);
	state().register_net(pool_owned_ptr<logic_net_t>(&m_my_net, false));
	set_logic_family(dev.logic_family());
	state().setup().register_term(*this);
}
示例#2
0
文件: nl_base.cpp 项目: rfka01/mame
analog_output_t::analog_output_t(core_device_t &dev, const pstring &aname)
	: analog_t(dev, aname, STATE_OUT)
	, m_my_net(dev.state(), name() + ".net", this)
{
	state().register_net(pool_owned_ptr<analog_net_t>(&m_my_net, false));
	this->set_net(&m_my_net);

	//net().m_cur_Analog = NL_FCONST(0.0);
	state().setup().register_term(*this);
}
示例#3
0
文件: nl_base.cpp 项目: rfka01/mame
core_device_t::core_device_t(core_device_t &owner, const pstring &name)
	: object_t(owner.name() + "." + name)
	, logic_family_t()
	, netlist_ref(owner.state())
	, m_hint_deactivate(false)
	, m_active_outputs(*this, "m_active_outputs", 1)
{
	set_logic_family(owner.logic_family());
	if (logic_family() == nullptr)
		set_logic_family(family_TTL());
	state().add_dev(this->name(), pool_owned_ptr<core_device_t>(this, false));
}