summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add gitignore to src/lib/netlist. (nw) couriersud2019-01-022-1/+6
| | | Also clean up doxygen genereated files in netlist makefile.
* (nw) fix lots of inadverently mutable static pointers Vas Crabb2018-09-201-2/+2
|
* A large portion of the Atari Gran Trak 10 schematics (1974) Felipe Corrêa da Silva Sanches2018-07-2810-2/+339
| | | | implemented on MAME using the netlist subsystem.
* srcclean and other cleanup (nw) Vas Crabb2018-06-248-0/+0
|
* srcclean (nw) Vas Crabb2018-05-271-1/+1
|
* Add Schmitt trigger device to standalone netlist Makefile (nw) balr0g2018-05-111-0/+1
|
* Final GCC 8 batch for tonight (nw) arbee2018-05-011-0/+4
|
* Fixed issue causing drivers using netlists to fail on the Emscripten target. ↵ Justin Kerk2018-03-061-0/+4
| | | | [Justin Kerk]
* srcclean (nw) Vas Crabb2018-02-251-1/+1
|
* disable netlist statistic logging on shutdown, because it triggers a use ↵ smf-2018-01-311-1/+1
| | | | after free in void device_debug::errorlog_write_line(const char *line) & fixed the copy & pasted comment. (nw)
* thanks hap (nw) smf-2018-01-291-1/+0
|
* fix is_set() when generic_function is an int array (nw) smf-2018-01-291-1/+14
|
* fix assertion when debugging in visual studio (nw) smf-2018-01-291-20/+16
|
* Updates "2017" strings to "2018" where relevant. Jonathan Holt2018-01-062-2/+2
|
* dimemory: Lift the cap on the number of address spaces per device [O. Galibert] Olivier Galibert2017-07-032-2/+2
|
* Add Zaccaria to mamenl build. (nw) couriersud2017-05-281-0/+2
|
* Fix state saving for pfunction lfsr. (nw) couriersud2017-05-285-4/+23
|
* srcclean (nw) Vas Crabb2017-05-281-4/+4
|
* Fix issues identified by Vas and LordKale4: couriersud2017-05-273-2/+14
| | | | | | - made local netlists in Cheeky Mouse static - replace stdlib rand by 16 bit galois lfsr (nw)
* Add rand() function to pfunction expression parser. Use this to simulate couriersud2017-05-272-0/+8
| | | E-B noise in Cheeky Mouse and fix the "cheese" choose. [Couriersud]
* netlist: add a crude TTL schmitt trigger model and hook up in 1B11142 Vas Crabb2017-05-277-1/+248
| | | | | | | | | | | | | | | | | sound board, completing the tromba circuit (nw) I'm not sure whether the model works properly or not, but in the circuit where it's used, I don't think it can work properly with the current TTL output model. A capacitor is charged by the Q output of a 74LS74 flipflop (U3A) until the voltage passes the Schmitt trigger's threshold, causing it to reset the flipflop. However, the positive trigger voltage of the Schmitt trigger is 1.6V, but our TTL output model has a high output voltage of 1.0V (see nl_base.cpp:89). I realise the simplified model of TTL logic with high impedance inputs and outputs behaving as though thery're loaded is convenient and fast to simulate, but it's not detailed enough for applications like this where 7400-series chips are used in analog circuitry. This is what held me up last time I tried adding a netlist for this sound board.
* Fix DEBUG build. (nw) couriersud2017-05-271-1/+1
|
* Various code alignments across solvers. (nw) couriersud2017-05-277-76/+137
|
* Cleanup of solver code. (nw) couriersud2017-05-279-289/+46
|
* Reordered members to be more cache friendly. (nw) couriersud2017-05-272-9/+10
|
* Netlist refactoring: couriersud2017-05-276-17/+84
| | | | | | - OPENMP refactored. All OPENMP operations are now templatized in pomp.h - We don't need thread-safe priority queue. Event code updating analog outputs now runs outside the parallel code. (nw)
* Changed Solver.PARALLEL parameter logic: couriersud2017-05-272-33/+13
| | | | | | | | | | | 0: Parallel processing of solvers disabled 1: One processor parallel processing. Can be used to measure OPENMP overhead >1: Solve n analog subnets in parallel. Previously, all available processors were used which caused performance to degrade on hyperthreading. [Couriersud]
* Preliminary netlist sound for the Zaccaria 1B11142 board Vas Crabb2017-05-272-2/+129
| | | | | | | | | | | | | | | | * Tromba (trumpet) sound is not working - requires Schmitt trigger device * Connecting cassa (bass drum) swamps other instruments so it's disconnected for now * Mixing melody sound with speech/SFX is not done in netlist (should be) * Relative levels of melody/speech/SFX are probably still wrong (nw) A good test case for this is the Money Money driver (monymony). There's a bit of buzzing on this one as well. The problem with the cassa could be caused by running into non-ideal characteristics of opams again (the LM3900 seems to ignore the V+ value supplied to it). When the netlist library gets Schmitt trigger support, the tromba can be completed. Unfortunately, the tromba is a key part of the characteristic sound of these boards, so you really notice when it's lacking.
* cheekyms: add preliminary netlist sound based on schematics provided by Sam ↵ Vas Crabb2017-05-263-0/+0
| | | | | | | | | | | | | | | | Grech (nw) It doesn't work quite right yet. The "Hammer" and "Pest" sounds are generated by free-running 555/556 timers and gated with LM324 applifiers. For whatever reason, the netlist system produces a kind of buzzing from the "Hammer" circuit when it's supposed to be suppressed, and it doesn't think the pest sound should be suppressed completely so you can always hear it at a low level in the background. The "Cheese" circuit is a bit weird - either they're using the base-emitter junction of a 2SC945 as a signal diode, or there's an error in the schematic (collector is shown unconnected). Connecting this part of the circuit causes the netlist system to hang, so R2/R3/C8/Q2 are not connected for now.
* Forgot this one for GCC 7.1 (nw) Miodrag Milanovic2017-05-151-0/+4
|
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | significant change, so please pay attention. The core changes are: * Short name, full name and source file are no longer members of device_t, they are part of the device type * MACHINE_COFIG_START no longer needs a driver class * MACHINE_CONFIG_DERIVED_CLASS is no longer necessary * Specify the state class you want in the GAME/COMP/CONS line * The compiler will work out the base class where the driver init member is declared * There is one static device type object per driver rather than one per machine configuration Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type. * DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders. * DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type. Use DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types. * These macros declare storage for the static data, and instantiate the device type and device finder templates. The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate. Things I've actually messed with substantially: * More descriptive names for a lot of devices * Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes * Changed DECO BSMT2000 ready callback into a device delegate * Untangled Microprose 3D noise from driver state * Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices * Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly * Started to break out common parts of Samsung ARM SoC devices * Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++ * Tried to make Z180 table allocation/setup a bit safer * Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant * Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size * Imporved encapsulation of Z80DART channels * Refactored the SPC7110 bit table generator loop to make it more readable * Added wrappers for SNES PPU operations so members can be made protected * Factored out some boilerplate for YM chips with PSG * toaplan2 gfx * stic/intv resolution * Video System video * Out Run/Y-board sprite alignment * GIC video hookup * Amstrad CPC ROM box members * IQ151 ROM cart region * MSX cart IRQ callback resolution time * SMS passthrough control devices starting subslots I've smoke-tested several drivers, but I've probably missed something. Things I've missed will likely blow up spectacularly with failure to bind errors and the like. Let me know if there's more subtle breakage (could have happened in FM or Voodoo). And can everyone please, please try to keep stuff clean. In particular, please stop polluting the global namespace. Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros. It feels like an uphill battle trying to get this stuff under control while more of it's added.
* stupid MSVC (nw) Vas Crabb2017-04-241-0/+2
|
* srcclean (nw) Vas Crabb2017-04-232-44/+44
|
* Minor optimization. (nw) couriersud2017-04-091-4/+4
|
* Parametrized device activation in truthtables. (nw) couriersud2017-04-091-13/+15
|
* Fix VS2015 build. (nw) couriersud2017-04-094-2/+17
|
* More work on 9316. (nw) couriersud2017-04-091-13/+8
|
* Refactored 74715 to one device layout. Removed subdevice. (nw) couriersud2017-04-091-65/+31
|
* Netlist code refactoring: couriersud2017-04-0937-446/+472
| | | | | | | | | | | | | | | | | | | - more use of c++ features - some CRTP in pfmtlog - demangled code for truthtables - use more constexpr - rewrite main loop - use default constructors and assignment operators were applicable. - optimized 7448 and 9316 All of this has decreased startup time by approx. 25% to 30%. Complex netlists like pong or kidniki are parsed, analyzed and constructed in around 15 ms. Run performance has increased by about 5%. All in all not to bad. A game like pong uses a clock of 7 MHz (after division by 2). Thats 14 MHz clock invocations. Running at over 200%, 28 MHz. On a 3.9 GHz Machine about 140 cycles/clock change. [Couriersud]
* pstring, pdynlib, pfmtlog refactoring : couriersud2017-04-0418-314/+556
| | | | | | | | | | | | | | | | | | | | | pstring: - added support for UTF16LE to pstring. - renamed size() to mem_t_size() - renmaed len() to length() - added size() == length() - added empty() - added simple compare() pfmtlog: - Simplified pfmtlog, added more c++ pdynlib: - add a dynproc type to dynlib to wrap dynamic library calls. various: - fix two coverty scan issue. - various clang warnings fixed. (nw)
* Fix pedantic clang warnings. (nw) couriersud2017-03-302-3/+3
|
* Use char32_t were appropriate. (nw) couriersud2017-03-301-3/+3
|
* Change pstring to use std::string as storage container. couriersud2017-03-3017-619/+233
| | | | | | | | This removes all allocation code from pstring. const_iterator is consequently now based on pstring::const_iterator. Removed pstring_buffer. This was class wasn't a good idea. Vas was right: This change did not impact runtime performance. Startup performance (string intensive) increased. (nw)
* Turn psring iterator into a real forward iterator that works with standard ↵ Vas Crabb2017-03-308-53/+85
| | | | | | | | | | | | | | | | | | | | algorithms. There are a few changes to achieve this: * Rename to const_iterator since it's immutable * Typedef iterator to const_iterator for now as there's no mutable iterator * Add default constrcutor and operator-> required by concept, const-qualify operators * Remove operator+ and operator+= since it's not a random-access iterator (use std::next and std::advance instead) * Return reference/pointer to a proxy rather than a code_t value from opertator*/operator-> The final change is required to meet the requirement that operator* for two equivalent forward iterators return an equivalent reference. The pstring doesn't actually contain a sequence of code_t, so there's no way to return a reference to code_t directly. Instead, a reference to a proxy object aliased on the string storage is returned. The proxy is implicitly convertible to code_t. The most noticeable side effect is that auto c = *s.begin() or for (auto c : s) won't work. You need to do for (auto &c : s) or for (code_t c : s) instead.
* srcclean (nw) Vas Crabb2017-03-261-1/+1
|
* Fix openmp compile. (nw) couriersud2017-03-201-4/+4
|
* Fix clang warnings in netlist code. couriersud2017-03-0517-39/+38
| | | | | | Fixed -Winconsistent-missing-destructor-override warnings. Made some constructors of template classes and classes with virtual .. = 0 methods protected. Fixed src/lib/netlist/build/makefile (nw)
* More cppcheck fixes. (nw) Couriersud2017-03-0537-98/+100
|
* Fix some cppcheck warnings. (nw) Couriersud2017-03-055-36/+60
|
* Netlist refactoring couriersud2017-02-254-107/+105
| | | | | - align timed_queue closer to std::priority_queue - use uint8_t in extended clock for better memory usage. - minor changes to nl_breakout.cpp (nw)