EASy68K
http://easy68k.com/EASy68Kforum/

Possible Simulator Bug
http://easy68k.com/EASy68Kforum/viewtopic.php?f=8&t=1089
Page 1 of 1

Author:  aboxer [ Tue Apr 03, 2012 6:25 pm ]
Post subject:  Possible Simulator Bug

Hi,

I've attached a snip of the RunLog.txt file showing the same instruction
(PC=000003FA) executed twice in a row. Notice that the LSB of memory
location 000000C0 changes twice, indicating that the simulator is really
executing the instruction twice, not just outputting the same data twice.

I've attached a snip of the assembler code at the bottom of this post.
Unfortunately, if I isolate that snip into a little program of its own the
problem disappears, so I can't provide a way to duplicate the problem
unless I send the complete program (over 400 lines).

NOTE: I ran my program again and the problem did not recur, so it is
not repeatable.

I am using the easy68k simulator to validate a 68k verilog design for
one of our customers. If this is a problem that can't be addressed for
a while, please let me know.

thanks,
Aaron Boxer
Millogic
Burlington,MA


----------------- RunLog.txt -------------------------------------
D0=00010203 D4=10111216 A0=000000E9 A4=000000E4 T_S__INT___XNZVC
D1=04050637 D5=14151630 A1=000000EC A5=000000E9 SR=0010000000000000
D2=00000004 D6=18191A2C A2=000000EC A6=000000E4
D3=3509C91C D7=1C1D00E6 A3=000000EA A7=00FF0000 SS=0000C000
PC=000003FA Code=0878 0068 00C0 Line= 245 S0_157 BCHG.B #104,$0c0

00000040: 00 00 00 06 20 09 00 00 00 00 03 C4 00 01 02 03 ---- -----------
00000050: 04 05 06 37 00 00 00 04 35 09 C9 0B 10 11 12 16 ---7----5-------
00000060: 14 15 16 30 18 19 1A 1B 1C 1D 00 E6 00 00 00 E9 ---0------------
00000070: 00 00 00 EC 00 00 00 EC 00 00 00 EA 00 00 00 E4 ----------------
00000080: 00 00 00 E9 00 00 00 E4 00 00 BF FC DE AD BE EF ----------------
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000C0: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000E0: 00 00 00 12 88 00 04 05 21 88 DB 1E 00 00 00 00 --------!-------
000000F0: 00 00 00 00 00 00 00 00 04 05 06 07 00 00 00 00 ----------------
00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------

D0=00010203 D4=10111216 A0=000000E9 A4=000000E4 T_S__INT___XNZVC
D1=04050637 D5=14151630 A1=000000EC A5=000000E9 SR=0010000000000000
D2=00000004 D6=18191A2C A2=000000EC A6=000000E4
D3=3509C91C D7=1C1D00E6 A3=000000EA A7=00FF0000 SS=0000C000
PC=000003FA Code=0878 0068 00C0 Line= 245 S0_157 BCHG.B #104,$0c0

00000040: 00 00 00 06 20 09 00 00 00 00 03 C4 00 01 02 03 ---- -----------
00000050: 04 05 06 37 00 00 00 04 35 09 C9 0B 10 11 12 16 ---7----5-------
00000060: 14 15 16 30 18 19 1A 1B 1C 1D 00 E6 00 00 00 E9 ---0------------
00000070: 00 00 00 EC 00 00 00 EC 00 00 00 EA 00 00 00 E4 ----------------
00000080: 00 00 00 E9 00 00 00 E4 00 00 BF FC DE AD BE EF ----------------
00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
000000E0: 00 00 00 12 88 00 04 05 21 88 DB 1E 00 00 00 00 --------!-------
000000F0: 00 00 00 00 00 00 00 00 04 05 06 07 00 00 00 00 ----------------
00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------
00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ----------------


------------------------ Assembler Output -------------------------------
000003E8 3C7C 00E8 240 S0_152 movea #buf_mid,A6
000003EC 085E 0074 241 S0_153 BCHG.B #116,(A6)+
000003F0 C703 242 S0_154 ABCD.B D3,D3
000003F2 023C 00F5 243 S0_155 andi #$f5,CCR
000003F6 D278 00C0 244 S0_156 ADD.W $0c0,D1
000003FA 0878 0068 00C0 245 S0_157 BCHG.B #104,$0c0
00000400 D683 246 S0_158 ADD.L D3,D3
00000402 B0FC 00F4 247 S0_159 cmpa #buf_end,A0
00000406 4EB8 0140 248 S0_160 jsr fr_sav

Author:  profkelly [ Mon Apr 09, 2012 7:47 pm ]
Post subject: 

Corrected in Sim68K v5.12.1

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/