Mark Pizzolato schreef op 15-12-2018 om 19:10:
Hi Wilm,

On Saturday, December 15, 2018 at 3:45 AM, Wilm Boerhout wrote:
I'm trying to get my head around VAXELN and system time.

Before I cry "Wolf" and accuse any innocent program(mer) of instruction
obstruction, I want to know how things are supposed to work here (i.e.
as on a real rtVAX with VAXELN)

I have built a VAXELN system image and can download this into the simh
rtVAX. Whatever simh setting I use, the VAXELN system clock always
starts at 0, starting time after boot on 17-NOV-1858. I can set the time
manually, but it is not preserved across boot. Should it be?

simh ini file:

echo rtVAX-1000

set CPU diag=MIN 16M idle=ELN conhalt autoboot
set WTC time=STD

set DZ  disable
set LPT disable
set RL  disable
set TS  disable
set TQ  disable

att -e NVR /opt/ka620.nvr

set RQ0 rd54
att -e RQ0 /vdisk/VAXELN.vdisk

set XQ type=DEQNA mac=08:00:2B:13:01:92
att XQ TAP:tap0

set DEBUG /opt/ka620.debug
set WTC DEBUG

boot

contents of ka620.debug after booting and shutdown (well, no shutdown on
ELN, so ctrl/E)

/opt/rtvax1000.ini-20> set DEBUG /opt/ka620.debug
Debug output to "/opt/ka620.debug"
Debug output to "/opt/ka620.debug" at Sat Dec 15 11:57:42 2018
rtVAX1000 (KA620) simulator V4.0-0 Current        git commit id: c2b45a26
/opt/rtvax1000.ini-23> boot
Loading boot code from internal ka620.bin
DBG(146257)> WTC REG: wtc_rd(pa=0x200B801A [CSRD], data=0x80) VALID1

Simulation stopped, PC: 800066EA (TSTL 80000900)
sim> quit
Goodbye
NVR: writing buffer to file
Eth: closed tap0
 From the debug log it is clear that, although the CSRD register was read and
the time it contained was indicated as being VALID, no other references were
made by the running system to anything that contained time data so it isn't
surprising that the time is 0.

Try running ELN with the MicroVAX3900 simulator and see if you get different
behavior.

- Mark

Overall behaviour is the same with the MicroVAX 3900. After booting ELN, time is "VMS Zero", even after setting it to today, then quitting and restarting simh.

MV3900 ini file:

set CPU 16M idle=ELN conhalt noautoboot
att -e CLK /opt/ka655.toy

set DZ  disable
set LPT disable
set RL  disable
set TS  disable
set TQ  disable

att -e NVR /opt/ka655.nvr

set XQ type=DEQNA mac=08:00:2B:13:01:92
att XQ TAP:tap0

set DEBUG /opt/ka655.debug
set CLK debug

boot

--------------------------------------------------------------------

DEBUG output:

root@raspi2-old ~ # cat /opt/ka655.debug
/opt/pi3k9.ini-19> set DEBUG /opt/ka655.debug
Debug output to "/opt/ka655.debug"
Debug output to "/opt/ka655.debug" at Sat Dec 15 21:00:59 2018
MicroVAX 3900 simulator V4.0-0 Current        git commit id: c2b45a26
/opt/pi3k9.ini-22> boot
Loading boot code from internal ka655x.bin
DBG(34)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5A39
DBG(961145)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6A
DBG(962890)> same as above (436 times)
DBG(962894)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6B
DBG(966023)> same as above (781 times)
DBG(966027)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6C
DBG(969151)> same as above (781 times)
DBG(969155)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6D
DBG(972281)> same as above (781 times)
DBG(972285)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6E
DBG(975413)> same as above (782 times)
DBG(975417)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B6F
DBG(978541)> same as above (781 times)
DBG(978545)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B70
DBG(981673)> same as above (782 times)
DBG(981677)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B71
DBG(984801)> same as above (781 times)
DBG(984805)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B72
DBG(987933)> same as above (782 times)
DBG(987937)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B73
DBG(991061)> same as above (781 times)
DBG(991065)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B74
DBG(994193)> same as above (782 times)
DBG(994197)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B75
DBG(997321)> same as above (781 times)
DBG(997325)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B76
DBG(1000453)> same as above (782 times)
DBG(1000457)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B77
DBG(1003581)> same as above (775 times)
DBG(1003585)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B78
DBG(1006710)> same as above (780 times)
DBG(1006714)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B79
DBG(1009842)> same as above (782 times)
DBG(1009846)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7A
DBG(1012972)> same as above (781 times)
DBG(1012976)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7B
DBG(1016100)> same as above (781 times)
DBG(1016104)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7C
DBG(1019232)> same as above (782 times)
DBG(1019236)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7D
DBG(1022360)> same as above (781 times)
DBG(1022364)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7E
DBG(1025492)> same as above (782 times)
DBG(1025496)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B7F
DBG(1028620)> same as above (781 times)
DBG(1028624)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B80
DBG(1031752)> same as above (782 times)
DBG(1031756)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B81
DBG(1034880)> same as above (781 times)
DBG(1034884)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B82
DBG(1038012)> same as above (782 times)
DBG(1038016)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B83
DBG(1041140)> same as above (781 times)
DBG(1041144)> CLK REG: todr_rd(ROM) - TODR=0xC3AA5B84
DBG(7056415)> CLK REG: todr_rd() - TODR=0x132A4
DBG(7056419)> same as above (1 time)
DBG(9598293)> CLK REG: todr_rd() - TODR=0x133F0
DBG(11998428)> CLK REG: todr_rd() - TODR=0x13526
DBG(14398563)> CLK REG: todr_rd() - TODR=0x1365C

Simulation stopped, PC: 800066EE (BEQL 800066EA)
sim> quit
Goodbye
NVR: writing buffer to file
CLK: writing buffer to file
Eth: closed tap0

-------------------------------------------------------

root@raspi2-old ~ # hexdump /opt/ka655.toy
0000000 5a88 5c15 00e9 0000 0003 0000
000000c

root@raspi2-old ~ # hexdump /opt/ka655.nvr
0000000 0230 0000 0000 0000 0000 0000 0000 0000
0000010 042d 2014 0000 0000 0000 0000 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
*
0000040 0000 0000 0000 0000 0000 0000 5400 0437
0000050 5d20 0437 7e20 0435 7e20 0435 0020 0000
0000060 0000 0000 0000 0000 0000 0000 0000 0000
*
0000090 4000 0437 0020 0000 4900 0437 0020 0000
00000a0 0000 0000 0200 0200 0002 0d71 7820 0000
00000b0 0000 7e00 00ff 0000 0000 1000 0000 3000
00000c0 00ff 5a39 c3aa 0000 0000 0000 0000 0000
00000d0 0000 0000 0000 0000 0000 0000 0000 0000
00000e0 041f 0003 0000 0000 0000 01f8 0000 0200
00000f0 0000 0000 041f 0000 0000 0300 041f 0000
0000100 0000 ffff ffff 0000 0000 0000 0000 014c
0000110 2008 0000 0000 0a01 0000 0000 4080 0000
0000120 4080 0000 0004 0000 0000 0000 0000 0000
0000130 0000 0000 0000 0000 0000 0000 0000 0000
0000140 0000 0000 0000 0000 0000 0000 2062 5158
0000150 6500 0076 0000 0000 0000 0000 0000 0000
0000160 0000 0000 0000 0000 0000 0000 0000 0000
*
0000190 0000 0000 0000 0000 0000 0000 2400 0450
00001a0 4c20 1405 0220 0000 4e00 1405 0020 0000
00001b0 0000 0000 0000 0000 0000 0000 0000 0000
*
00001e0 0000 0000 0200 0000 0000 0000 0000 0000
00001f0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000210 0000 0000 0000 0000 0000 0000 cc00 2004
0000220 0668 2014 1f40 2000 8000 2008 1fff 0000
0000230 cc00 2004 0668 2014 1f40 2000 0000 0000
0000240 0000 2000 06ac 2014 0670 2014 36b0 2004
0000250 000a 0000 04a5 2014 042d 2014 3676 2004
0000260 0041 0000 0000 0000 6e29 2004 387c 2004
0000270 0000 0000 0000 2ffc 06f0 2014 06b4 2014
0000280 408a 2004 0041 0000 0000 0000 107c 2005
0000290 0000 284e 2004 281f 2004 0000 0000 2876
00002a0 2004 284e 2004 281f 2004 0000 0000 37fc
00002b0 0000 0000 7e00 00ff 1f40 2000 0000 0000
00002c0 05a5 2014 0000 0000 0000 0000 0000 0000
00002d0 0000 0000 06f0 2014 06dc 2014 0000 0000
00002e0 0000 2000 072e 2014 0704 2014 51e3 2004
00002f0 0003 2a59 2004 284e 2004 281f 2004 0000
0000300 0000 37fc 1082 0000 0008 0000 6430 2004
0000310 0000 0000 05a5 2014 0000 0000 0000 0000
0000320 0000 0000 0000 0000 0744 2014 0730 2014
0000330 0000 0000 0000 2000 0000 0000 0000 0000
0000340 6098 2004 0003 0000 01f8 0000 2080 0002
0000350 04ee 2014 000c 0000 fd3f 03ff 0000 0ecc
0000360 0000 0300 0000 0000 0000 0000 069c 2014
0000370 107c 2005 3000 00ff 1000 807f 8000 00ff
0000380 cba6 2004 ffff ffff 0000 0000 0000 000f
0000390 0000 0000 ffff ffff 0000 0000 0000 0000
00003a0 0000 0000 0000 0000 ae00 2004 c858 2004
00003b0 0000 8000 86a0 0001 0000 0000 0000 0000
00003c0 0000 0000 0000 0000 0000 0000 4141 0000
00003d0 0200 0000 066c 2014 1096 2005 40d4 2004
00003e0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400


_______________________________________________
Simh mailing list
Simh@trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh

Reply via email to