Previous 15994 Revisions Next

r15685 Friday 27th July, 2012 at 06:21:30 UTC by Jonathan Gevaryahu
VK100: Comment wrangling and some analysis of the newly dumped proms. Still some work to be done here especially on the vector prom. [Lord Nightmare]
[src/mess/drivers]vk100.c

src/mess/drivers/vk100.c
r15684r15685
947947     * 3 pattern function bits from WOPS (F0 "N" is a6, F1 and F2 are a7 and a8
948948     * and one bit from the lsb of the pattern register shifter (a9)
949949i.e. addr bits 9876543210
950               ||||||\\\\- input from ram A
951               ||||\\----- bit select (from x reg lsb)
952               |||\------- negate N \___ low 3 bits of WOPS
953               |\\-------- function /
954               \---------- pattern bit P
955          functions are:
956          Overlay: M=A|(P^N)
957          Replace: M=P^N
958          Complement: M=A^(P^N)
959          Erase: M=N
950     *         ||||||\\\\- input from ram A
951     *         ||||\\----- bit select (from x reg lsb)
952     *         |||\------- negate N \___ low 3 bits of WOPS
953     *         |\\-------- function /
954     *         \---------- pattern bit P
955     *    functions are:
956     *    Overlay: M=A|(P^N)
957     *    Replace: M=P^N
958     *    Complement: M=A^(P^N)
959     *    Erase: M=N
960960     */
961961   ROM_LOAD( "wb8201_656f1.m1-7643-5.pr4.ic17", 0x0000, 0x0400, CRC(e8ecf59f) SHA1(49e9d109dad3d203d45471a3f4ca4985d556161f)) // label verified from nigwil's board
962962
r15684r15685
966966   ROM_LOAD( "wb---0_060b1.6309.pr2.ic77", 0x0000, 0x0100, CRC(198317fc) SHA1(00e97104952b3fbe03a4f18d800d608b837d10ae)) // label verified from nigwil's board
967967
968968   ROM_REGION( 0x400, "proms", ROMREGION_ERASEFF )
969   // not sure what this prom is, it may relate somehow to addressing or modifying vram, or the systat b register and dipswitches. (256*4, 82s129)
969   // not sure what this prom is, it may relate somehow to addressing or modifying vram, or the systat b register. (256*4, 82s129)
970970   ROM_LOAD( "wb8151_573a2.6301.pr3.ic44", 0x0000, 0x0100, CRC(75885a9f) SHA1(c721dad6a69c291dd86dad102ed3a8ddd620ecc4)) // label verified from nigwil's and andy's board
971   /* this is the "VECTOR ROM" (256*8, 82s135) which runs the vector generator state machine
972    * the vector rom bits are complex and are unfortunately poorly documented
973    * in the tech manual. see figure 5-23.
974    * addr bits: 76543210
975    *            ||||\\\\-- To sync counter, which counts 0xC 0x3 0x2 0x1 0x0 0x5 0x4 0xB 0xA 0x9 0x8 0xD in that order
976    *            ||\\------ ?VG_MODE?
977    *            |\-------- CARRY_IN
978    *            \--------- ?
979    *
980    * data bits: 76543210
981    *            |||||||\-- ? MAYBE WRT L
982    *            ||||||\--- ? MAYBE related to the dir rom PIXEL WRT (ahead by 2 clocks?)
983    *            |||||\---- ? MAYBE /SYSTAT_A WRT (ahead by 2 clocks?)
984    *            ||||\----- /LD ERROR (strobes calculated value into the vgERR register)
985    *            |||\------ ? MAYBE STROBE L (delayed by 2 clocks?)
986    *            ||\------- ? possibly carry out
987    *            |\-------- C0 (high during DVM read, low otherwise)
988    *            \--------- ?
989    */
990   ROM_LOAD( "wb8146_058b1.6309.pr1.ic99", 0x0100, 0x0100, CRC(71b01864) SHA1(e552f5b0bc3f443299282b1da7e9dbfec60e12bf))  // label verified from nigwil's and andy's board
991971   /* this is the "DIRECTION ROM"  == mb6309 (256x8, 82s135)
992    * see figure 5-24 on pahe 5-39
972    * see figure 5-24 on page 5-39
993973    * It tells the direction and enable for counting on the X and Y counters
994974    * and also handles the non-math related parts of the bresenham line algorithm
995975    * addr bits: 76543210
996976    *            ||||\\\\-- DIR (vgDIR register low 4 bits)
997977    *            |||\------ ERROR CARRY (strobed in by STROBE L from the error counter's adder)
998978    *            ||\------- Y0 (the otherwise unused lsb of the Y register, used for bresenham)
999    *            |\-------- feedback bit from d5 gated by vclk
979    *            |\-------- feedback bit from d5 gated by V CLK
1000980    *            \--------- GND; the second half of the prom is blank (0x00)
1001981    * data bits: 76543210
1002982    *            |||||||\-- ENA X (enables change on X counter)
r15684r15685
1005985    *            ||||\----- X DIRECTION (high is count down, low is count up)
1006986    *            |||\------ PIXEL WRT
1007987    *            ||\------- feedback bit to a6
1008    *            |\-------- UNUSED?
1009    *            \--------- UNUSED?
988    *            |\-------- UNUSED, always 0
989    *            \--------- UNUSED, always 0
1010990    */
1011   ROM_LOAD( "wb8141_059b1.tbp18s22.pr5.ic108", 0x0200, 0x0100, CRC(4b63857a) SHA1(3217247d983521f0b0499b5c4ef6b5de9844c465))  // label verified from andy's board
991   ROM_LOAD( "wb8141_059b1.tbp18s22.pr5.ic108", 0x0100, 0x0100, CRC(4b63857a) SHA1(3217247d983521f0b0499b5c4ef6b5de9844c465))  // label verified from andy's board
992   /* this is the "VECTOR ROM" (256*8, 82s135) which runs the vector generator state machine
993    * the vector rom bits are complex and are unfortunately poorly documented
994    * in the tech manual. see figure 5-23.
995    * addr bits: 76543210
996    *            ||||\\\\-- To sync counter, which counts 0xC 0x3 0x2 0x1 0x0 0x5 0x4 0xB 0xA 0x9 0x8 0xD in that order
997    *            ||\\------ VG_MODE
998    *            |\-------- CARRY_IN (when set, only one /LD ERROR pulse occurs instead of two)
999    *            \--------- ? possibly tied or somehow pulsed by sync rom d7? /LD ERROR only goes active (low) when this is unset
1000    *
1001    * data bits: 76543210
1002    *            |||||||\-- WRITE (fig 5-20, page 5-32)
1003    *            ||||||\--- ? MAYBE related to the dir rom PIXEL WRT or an active low /CLR on the WRT L line [active low, sync addr 011]
1004    *            |||||\---- ? MAYBE related to the dir rom PIXEL WRT or an active low /CLR on the WRT L line [active low, sync addr 011]
1005    *            ||||\----- /LD ERROR (strobes a value into the vgERR register)
1006    *            |||\------ likely CLK ERROR, also strobes a value into the vgERR register but from the adder and not the bus
1007    *            ||\------- ? possibly drives a4 on the sync rom, only low for VG_MOVE?
1008    *            |\-------- C0 (high during DVM read, low otherwise)
1009    *            \--------- ? (active low at same cycle as bit 4)
1010    */
1011   ROM_LOAD( "wb8146_058b1.6309.pr1.ic99", 0x0200, 0x0100, CRC(71b01864) SHA1(e552f5b0bc3f443299282b1da7e9dbfec60e12bf))  // label verified from nigwil's and andy's board
10121012   /* this is the "SYNC ROM" == mb6331 (32x8, 82s123)
10131013    * It generates the ram RAS/CAS and a few other signals, see figure 5-20 on page 5-32
10141014    * The exact pins for each signal are not documented.
10151015    * addr bits: 43210
10161016    *            |\\\\-- To sync counter, which counts 0xC 0x3 0x2 0x1 0x0 0x5 0x4 0xB 0xA 0x9 0x8 0xD in that order
1017    *            \------ ? (not grounded)
1017    *            \------ likely tied to /RESET, /GO, vblank, or possibly a read of SYSTAT A or writes to the vector regs
1018    *                      when high: the sync rom matches figure 5-20 (page 5-32) and 5-23 (page 5-38)
1019    *                      when low: RA/RB is fixed on WOPS in the register file
1020    *                                LD SHFR does NOT output pulses
1021    *                                WRT/RD is held at /RD so writes to vram do nothing
1022    *                    it is also possible this is tied to vector rom d5
10181023    * data bits: 76543210
1019    *            |||||||\-- ? wrt/rd
1020    *            ||||||\--- ? /RAS
1021    *            |||||\---- ? /CAS
1022    *            ||||\----- ? ld shfr
1023    *            |||\------ ? strobe
1024    *            ||\------- ? write
1025    *            |\-------- ? ra\__selects which slot of the 8x4 register file (du, dvm, dir, or wops) is selected
1026    *            \--------- ? rb/
1024    *            |||||||\-- WRT/RD (write high when x,y (vg) drives vram, read low when ma (crtc) drives vram)
1025    *            ||||||\--- /RAS
1026    *            |||||\---- STROBE aka STROBE L
1027    *            ||||\----- LD SHFR
1028    *            |||\------ /CAS
1029    *            ||\------- RA\__selects which slot of the 8x4 register file (du, dvm, dir, or wops) is selected
1030    *            |\-------- RB/
1031    *            \--------- vector rom "write signal"? (mentioned on page 5-35 last paragraph?) (this is off by one cycle though...) [active low, sync addr 011]
10271032    */
10281033   ROM_LOAD( "wb8-14_297a1.74s288.pr6.ic89", 0x0300, 0x0020, CRC(e2f7c566) SHA1(a4c3dc5d07667141ad799168a862cb3c489b4934)) // label verified from nigwil's and andy's board
10291034ROM_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team