summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/devices/nlid_cmos.h
blob: 06388a73535b2cdc108d922deee1be45dde1331f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
 * nld_cmos.h
 *
 */

#ifndef NLID_CMOS_H_
#define NLID_CMOS_H_

#include "netlist/nl_base.h"
#include "netlist/nl_setup.h"

namespace netlist
{
namespace devices
{
	// FIXME: this needs to be removed
	NETLIB_OBJECT(vdd_vss)
	{
		NETLIB_CONSTRUCTOR(vdd_vss)
		, m_vdd(*this, "VDD")
		, m_vss(*this, "VSS")
		{
		}

		NETLIB_UPDATEI() {}
		NETLIB_RESETI() {}

	public:
		nl_double vdd() { return m_vdd(); }
		nl_double vss() { return m_vss(); }

		analog_input_t m_vdd;
		analog_input_t m_vss;
	};

} //namespace devices
} // namespace netlist

#endif /* NLID_CMOS_H_ */