head	1.4;
access;
symbols
	bg2_23:1.4
	bg2_22:1.4
	bg2_21:1.4
	bg2_20:1.4
	bg2_16:1.4
	bg2_15:1.4
	bg2_12:1.4
	bg2_07:1.4;
locks; strict;
comment	@# @;


1.4
date	2008.02.24.19.55.00;	author martin;	state Exp;
branches;
next	1.3;
commitid	5aac47c1cb8c4567;

1.3
date	2008.01.08.00.09.08;	author martin;	state Exp;
branches;
next	1.2;
commitid	53214782bf234567;

1.2
date	2007.12.22.22.12.43;	author martin;	state Exp;
branches;
next	1.1;
commitid	2696476d8bda4567;

1.1
date	2007.12.22.16.29.49;	author martin;	state Exp;
branches;
next	;
commitid	dec476d3b7b4567;


desc
@@


1.4
log
@JOP goes GPL
@
text
@/*
  This file is part of JOP, the Java Optimized Processor
    see <http://www.jopdesign.com/>

  Copyright (C) 2001-2008, Martin Schoeberl (martin@@jopdesign.com)

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package wcet;

import com.jopdesign.sys.*;

/**
 * WCET timing issue - measurement differs from WCET analysis
 * @@author martin
 *
 */
public class ArrayIssue {

	int[][] block = { {99, 104}, {109, 113} };

	public static void main(String[] args) {
		ArrayIssue ai = new ArrayIssue();
		ai.fdct(ai.block);
	}
	
	void fdct(int[][] block) {
	     int t1, diff;
	     t1 = Native.rd(Const.IO_CNT);
	     t1 = Native.rd(Const.IO_CNT)-t1;
	     diff = t1;

	     JVMHelp.wr('*');
	     
	     int[] ia = new int[1];
	     
	     t1 = Native.rd(Const.IO_CNT);
//	     int tmp0 = block[0][0];
//	     block[0][0] = 0;
	     ia[0] = 0;

//	     int x[] = block[0];
//	     int i = x[0];
	     
	     t1 = Native.rd(Const.IO_CNT)-t1;
	     JVMHelp.wr('-');
	     System.out.println(t1-diff);
	     
	}
}
@


1.3
log
@correct iastore timing info
@
text
@d1 20
@


1.2
log
@test case for RTAS measurement issue
@
text
@d27 2
d31 2
d34 2
a35 2
	     int x[] = block[0];
	     int i = x[0];
@


1.1
log
@test case for RTAS measurement issue
@
text
@d36 1
@

