summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/rc.c
blob: 1850da313da31fa28d5f437a86bf92feab60e3be (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
/*
 * cdelay.c
 *
 */

#include "netlist/devices/net_lib.h"

NETLIST_START(rc)

    /*
     * delay circuit
     *
     */

    /* Standard stuff */

    SOLVER(Solver, 48000)
    PARAM(Solver.ACCURACY, 1e-6)
    CLOCK(clk, 20000)

    CAP(C1, 0.022e-6)
    RES(R1, 10000)
    RES(R2, 20000)

    NET_C(clk, R2.1)
    NET_C(R2.2, R1.1, C1.1)
    NET_C(C1.2, R1.2, GND)

    LOG(tt, C1.1)

NETLIST_END()
ss="w"> } files { MAME_DIR .. "3rdparty/benchmark/src/benchmark.cc", MAME_DIR .. "3rdparty/benchmark/src/colorprint.cc", MAME_DIR .. "3rdparty/benchmark/src/commandlineflags.cc", MAME_DIR .. "3rdparty/benchmark/src/complexity.cc", MAME_DIR .. "3rdparty/benchmark/src/console_reporter.cc", MAME_DIR .. "3rdparty/benchmark/src/csv_reporter.cc", MAME_DIR .. "3rdparty/benchmark/src/json_reporter.cc", MAME_DIR .. "3rdparty/benchmark/src/reporter.cc", MAME_DIR .. "3rdparty/benchmark/src/sleep.cc", MAME_DIR .. "3rdparty/benchmark/src/string_util.cc", MAME_DIR .. "3rdparty/benchmark/src/sysinfo.cc", MAME_DIR .. "3rdparty/benchmark/src/timers.cc", MAME_DIR .. "3rdparty/benchmark/src/re_std.cc", } project("benchmarks") uuid ("a9750a48-d283-4a6d-b126-31c7ce049af1") kind "ConsoleApp" flags { "Symbols", -- always include minimum symbols for executables } if _OPTIONS["SEPARATE_BIN"]~="1" then targetdir(MAME_DIR) end configuration { } links { "benchmark", } includedirs { MAME_DIR .. "3rdparty/benchmark/include", MAME_DIR .. "src/osd", } files { MAME_DIR .. "benchmarks/main.cpp", MAME_DIR .. "benchmarks/eminline_native.cpp", MAME_DIR .. "benchmarks/eminline_noasm.cpp", }