mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00

- Dead code removal and minor refactoring. - Simplify. Align naming with stl. Fix somed pedantic warnings. - More STL compatability. - Remove ATTR_HOT and ATTR_COLD. Refactored netlist_time. - Fix long standing workaround which would ignore policy of change-only" propagation. - Rewrote for loops to use auto : semantics. - Truthtable cleanup. (nw) - Get rid of nl_math. Remove nl_util.h and moved contents to plib/putil.h. - Fix standalone build. Refactor ptypes.h. [Couriersud]
45 lines
653 B
C
45 lines
653 B
C
// license:GPL-2.0+
|
|
// copyright-holders:Couriersud
|
|
/*
|
|
* cdelay.c
|
|
*
|
|
*/
|
|
|
|
#include "netlist/devices/net_lib.h"
|
|
|
|
NETLIST_START(perf)
|
|
|
|
SOLVER(Solver, 48000)
|
|
PARAM(Solver.ACCURACY, 1e-20)
|
|
MAINCLOCK(clk, 50000000)
|
|
|
|
TTL_7400_NAND(n1,clk,clk)
|
|
|
|
NETLIST_END()
|
|
|
|
|
|
NETLIST_START(7400_astable)
|
|
|
|
/*
|
|
* delay circuit
|
|
*
|
|
*/
|
|
|
|
/* Standard stuff */
|
|
|
|
SOLVER(Solver, 48000)
|
|
PARAM(Solver.ACCURACY, 1e-20)
|
|
CLOCK(clk, 5000)
|
|
|
|
TTL_7400_NAND(n1,clk,clk)
|
|
CAP(C, 1e-9)
|
|
NET_C(n1.Q, C.2)
|
|
NET_C(GND, C.1)
|
|
TTL_7400_NAND(n2,n1.Q, n1.Q)
|
|
|
|
LOG(logclk, clk)
|
|
LOG(logn1Q, C.2)
|
|
LOG(logn2Q, n2.Q)
|
|
|
|
NETLIST_END()
|