Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* MicroVAX II - Parity Check Test...
@ 2001-09-09  1:52 sword7
  2001-09-09 23:17 ` Jeff Campbell
  2001-09-10 18:30 ` emanuel stiebler
  0 siblings, 2 replies; 6+ messages in thread
From: sword7 @ 2001-09-09  1:52 UTC (permalink / raw)


Hello folks:

Good news! I resolved problems with console terminal tests on test #3...
However, it failed to boot with ?4 message during test #3.  I looked
into that debug log file.  I learned that firmware want to test parity
check.  On my screen:

KA630-A.V1.3

   7..6..5..4..3..
?4
Failure.

When it set up MSER<2> (Write Wrong Parity), then put a trap on desired
location to try to read.  When it attempts to read, Machine-Check 
exception occured with parity error settings on MSER and CEAR register.

MOVB #03,@#MSER          <- Enable wrong parity write
MOVL #55555555,@#FF0000  <- Put a trap on location FF0000.
MOVB #01,@#MSER          <- Turn off it.
MOVL @#FF0000,R5         <- Machine-Check Exception occurs.

Does anyone know parity check alogrithm?  I believe that parity check
slows down my emulation or so.

Thank you!

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MicroVAX II - Parity Check Test...
  2001-09-09  1:52 MicroVAX II - Parity Check Test sword7
@ 2001-09-09 23:17 ` Jeff Campbell
  2001-09-10  2:26   ` sword7
  2001-09-10 18:30 ` emanuel stiebler
  1 sibling, 1 reply; 6+ messages in thread
From: Jeff Campbell @ 2001-09-09 23:17 UTC (permalink / raw)


sword7@speakeasy.org wrote:
> 
> Hello folks:
> 
> Good news! I resolved problems with console terminal tests on test #3...
> However, it failed to boot with ?4 message during test #3.  I looked
> into that debug log file.  I learned that firmware want to test parity
> check.  On my screen:
> 
> KA630-A.V1.3
> 
>    7..6..5..4..3..
> ?4
> Failure.
> 
> When it set up MSER<2> (Write Wrong Parity), then put a trap on desired
> location to try to read.  When it attempts to read, Machine-Check
> exception occured with parity error settings on MSER and CEAR register.
> 
> MOVB #03,@#MSER          <- Enable wrong parity write
> MOVL #55555555,@#FF0000  <- Put a trap on location FF0000.
> MOVB #01,@#MSER          <- Turn off it.
> MOVL @#FF0000,R5         <- Machine-Check Exception occurs.

What's in the Machine Check Error Summary Register, IPR 38(decimal)?
What
are the values in the Machine Check Parameter Block on the stack? In
case
you don't have the layout: (longwords)

   sp:  byte count
        machine check code
        most recent virtual address
        internal state information
        pc
        psl

Also what's in the MSER?

> Does anyone know parity check alogrithm?  I believe that parity check
> slows down my emulation or so.
> 
> Thank you!
> 
> -- Tim Stark
> 
> --
> Timothy Stark   <><     Inet: sword7@speakeasy.org
> --------------------------------------------------------------------------
> "For God so loved the world, that he gave his only begotten Son, that
> whosoever believeth in him should not perish, but have everlasting life.
> Amen." -- John 3:16 (King James Version Bible)

Jeff Campbell
n8wxs@arrl.net


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MicroVAX II - Parity Check Test...
  2001-09-09 23:17 ` Jeff Campbell
@ 2001-09-10  2:26   ` sword7
  2001-09-10 15:24     ` Kevin Handy
  0 siblings, 1 reply; 6+ messages in thread
From: sword7 @ 2001-09-10  2:26 UTC (permalink / raw)


In comp.os.vms Jeff Campbell <jcampbell@ins-msi.com> wrote:
> What's in the Machine Check Error Summary Register, IPR 38(decimal)?
> What
> are the values in the Machine Check Parameter Block on the stack? In
> case
> you don't have the layout: (longwords)

>    sp:  byte count
>         machine check code
>         most recent virtual address
>         internal state information
>         pc
>         psl

I already know that but I am figuring how to implement parity check 
alogrithm...

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MicroVAX II - Parity Check Test...
  2001-09-10  2:26   ` sword7
@ 2001-09-10 15:24     ` Kevin Handy
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Handy @ 2001-09-10 15:24 UTC (permalink / raw)


sword7@speakeasy.org wrote:
> 
> In comp.os.vms Jeff Campbell <jcampbell@ins-msi.com> wrote:
> > What's in the Machine Check Error Summary Register, IPR 38(decimal)?
> > What
> > are the values in the Machine Check Parameter Block on the stack? In
> > case
> > you don't have the layout: (longwords)
> 
> >    sp:  byte count
> >         machine check code
> >         most recent virtual address
> >         internal state information
> >         pc
> >         psl
> 
> I already know that but I am figuring how to implement parity check
> alogrithm...

The parity test is just to look for bad memory.

Parity uses an additional bit of memory attached to the side of each
memory location.  It is set up to make the number of bits turned "on"
even (for even parity), or odd (for odd parity). When a memory location
is read in, it checks the memory location + the parity bit to make sure
the number of "on" bits are correct. I don't know if the VAX uses
even or odd parity, or if it is byte or word based.

I don't know if the MicroVaxes ever used them, but some memory boards
DEC used used ECC memory checks instead of a simple parity check.

Instead of handling actual parity calculations, could you just write a
"this memory location is bad" test for that specific location being 
referenced by that specific instruction? Otherwise parity calculations
would probably consume most of the emulator time when this check should
be the only time you should ever get one, as well as needing the extra
bit of memory for each memory location (plus setting and reading it
on every memory access).

Another option would be to modify the ROM to disable this parity test.

You can probably assume perfect memory, and let the OS the emulator is
running on worry about bad memory.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MicroVAX II - Parity Check Test...
  2001-09-09  1:52 MicroVAX II - Parity Check Test sword7
  2001-09-09 23:17 ` Jeff Campbell
@ 2001-09-10 18:30 ` emanuel stiebler
  2001-09-10 22:38   ` sword7
  1 sibling, 1 reply; 6+ messages in thread
From: emanuel stiebler @ 2001-09-10 18:30 UTC (permalink / raw)


sword7@speakeasy.org wrote:
> 
> Hello folks:

> When it set up MSER<2> (Write Wrong Parity), then put a trap on desired
> location to try to read.  When it attempts to read, Machine-Check
> exception occured with parity error settings on MSER and CEAR register.
> 
> MOVB #03,@#MSER          <- Enable wrong parity write
> MOVL #55555555,@#FF0000  <- Put a trap on location FF0000.
> MOVB #01,@#MSER          <- Turn off it.
> MOVL @#FF0000,R5         <- Machine-Check Exception occurs.
> 
> Does anyone know parity check alogrithm?  I believe that parity check
> slows down my emulation or so.

Emulating the parity bit in software is IMHO not a good idea. What we
did when running into this problem is:

Since it's save to assume that forced wrong parity writes are the only
source of parity errors in the emulator, it's enough to have a flag
indicating the existence of "bad" spots in emulated memory and eg. a
list of these spots. If the above flag is set, access to (physical)
memory is redirected to a check-routine which compares the address to
the bad spots. If a bad spot is hit then mcheck occurs, else normal.

cheers


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MicroVAX II - Parity Check Test...
  2001-09-10 18:30 ` emanuel stiebler
@ 2001-09-10 22:38   ` sword7
  0 siblings, 0 replies; 6+ messages in thread
From: sword7 @ 2001-09-10 22:38 UTC (permalink / raw)


In comp.os.vms emanuel stiebler <emu@ecubics.com> wrote:
> Since it's save to assume that forced wrong parity writes are the only
> source of parity errors in the emulator, it's enough to have a flag
> indicating the existence of "bad" spots in emulated memory and eg. a
> list of these spots. If the above flag is set, access to (physical)
> memory is redirected to a check-routine which compares the address to
> the bad spots. If a bad spot is hit then mcheck occurs, else normal.

Yeah. I resolved the problem by implementing "this memory location is bad"
flag.  So I had implemented two Q22 bad spots and one CPU bad spot and
finally got the past of the CPU and Q22 parity check tests!   Whew!  I am 
working on stage 7 and 8 in test #3.   Stage 7 to test non-existant memory 
and Stage 8 to test an interrupt from Q22 (by set IE and RDY in the same 
time).  Then '>>>' is printed...

Later I will modify ROM to skip parity check for emulators.

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-10 22:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-09  1:52 MicroVAX II - Parity Check Test sword7
2001-09-09 23:17 ` Jeff Campbell
2001-09-10  2:26   ` sword7
2001-09-10 15:24     ` Kevin Handy
2001-09-10 18:30 ` emanuel stiebler
2001-09-10 22:38   ` sword7

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox