112855Sgabeblack@google.com/***************************************************************************** 212855Sgabeblack@google.com 312855Sgabeblack@google.com Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412855Sgabeblack@google.com more contributor license agreements. See the NOTICE file distributed 512855Sgabeblack@google.com with this work for additional information regarding copyright ownership. 612855Sgabeblack@google.com Accellera licenses this file to you under the Apache License, Version 2.0 712855Sgabeblack@google.com (the "License"); you may not use this file except in compliance with the 812855Sgabeblack@google.com License. You may obtain a copy of the License at 912855Sgabeblack@google.com 1012855Sgabeblack@google.com http://www.apache.org/licenses/LICENSE-2.0 1112855Sgabeblack@google.com 1212855Sgabeblack@google.com Unless required by applicable law or agreed to in writing, software 1312855Sgabeblack@google.com distributed under the License is distributed on an "AS IS" BASIS, 1412855Sgabeblack@google.com WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512855Sgabeblack@google.com implied. See the License for the specific language governing 1612855Sgabeblack@google.com permissions and limitations under the License. 1712855Sgabeblack@google.com 1812855Sgabeblack@google.com *****************************************************************************/ 1912855Sgabeblack@google.com 2012855Sgabeblack@google.com/***************************************************************************** 2112855Sgabeblack@google.com 2212855Sgabeblack@google.com a2901_test.cpp -- 2312855Sgabeblack@google.com 2412855Sgabeblack@google.com Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15 2512855Sgabeblack@google.com 2612855Sgabeblack@google.com *****************************************************************************/ 2712855Sgabeblack@google.com 2812855Sgabeblack@google.com/***************************************************************************** 2912855Sgabeblack@google.com 3012855Sgabeblack@google.com MODIFICATION LOG - modifiers, enter your name, affiliation, date and 3112855Sgabeblack@google.com changes you are making here. 3212855Sgabeblack@google.com 3312855Sgabeblack@google.com Name, Affiliation, Date: 3412855Sgabeblack@google.com Description of Modification: 3512855Sgabeblack@google.com 3612855Sgabeblack@google.com *****************************************************************************/ 3712855Sgabeblack@google.com 3812855Sgabeblack@google.com#include "a2901_test.h" 3912855Sgabeblack@google.com 4012855Sgabeblack@google.comvoid 4112855Sgabeblack@google.coma2901_test::entry() 4212855Sgabeblack@google.com{ 4312855Sgabeblack@google.com switch (vec_cnt++) { 4412855Sgabeblack@google.com case 0: 4512855Sgabeblack@google.com I. write(0x7); 4612855Sgabeblack@google.com D. write( 0); 4712855Sgabeblack@google.com C0. write( 0); 4812855Sgabeblack@google.com OEbar.write( 0); 4912855Sgabeblack@google.com break; 5012855Sgabeblack@google.com case 1: 5112855Sgabeblack@google.com I. write(0x46); 5212855Sgabeblack@google.com D. write( 0); 5312855Sgabeblack@google.com C0. write( 0); 5412855Sgabeblack@google.com OEbar.write( 0); 5512855Sgabeblack@google.com break; 5612855Sgabeblack@google.com case 2: 5712855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000 (%0d)\n", (int)Y.read()); 5812855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 5912855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 6012855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 6112855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 6212855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 6312855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1 (%0d)\n", (int)F30.read()); 6412855Sgabeblack@google.com 6512855Sgabeblack@google.com I.write(0x7); 6612855Sgabeblack@google.com D.write(0x0); 6712855Sgabeblack@google.com C0.write(0x0); 6812855Sgabeblack@google.com OEbar.write(0x0); 6912855Sgabeblack@google.com 7012855Sgabeblack@google.com break; 7112855Sgabeblack@google.com case 3: 7212855Sgabeblack@google.com I.write(0x46); 7312855Sgabeblack@google.com D.write(0x0); 7412855Sgabeblack@google.com C0.write(0x1); 7512855Sgabeblack@google.com OEbar.write(0x0); 7612855Sgabeblack@google.com break; 7712855Sgabeblack@google.com case 4: 7812855Sgabeblack@google.com if (Y.read() != 0x1) fprintf(stderr,"Y != 4'b0001\n"); 7912855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 8012855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 8112855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 8212855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 8312855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 8412855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 8512855Sgabeblack@google.com 8612855Sgabeblack@google.com I.write(0x7); 8712855Sgabeblack@google.com D.write(0xf); // N("4'b1111") 8812855Sgabeblack@google.com C0.write(0x0); 8912855Sgabeblack@google.com OEbar.write(0x0); 9012855Sgabeblack@google.com 9112855Sgabeblack@google.com break; 9212855Sgabeblack@google.com case 5: 9312855Sgabeblack@google.com I.write(0x46); 9412855Sgabeblack@google.com D.write(0x0); 9512855Sgabeblack@google.com C0.write(0x0); 9612855Sgabeblack@google.com OEbar.write(0x0); 9712855Sgabeblack@google.com 9812855Sgabeblack@google.com break; 9912855Sgabeblack@google.com case 6: 10012855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 10112855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 10212855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 10312855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 10412855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 10512855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 10612855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 10712855Sgabeblack@google.com 10812855Sgabeblack@google.com I.write(0x7); 10912855Sgabeblack@google.com D.write(0xf); 11012855Sgabeblack@google.com C0.write(0x0); 11112855Sgabeblack@google.com OEbar.write(0x0); 11212855Sgabeblack@google.com 11312855Sgabeblack@google.com break; 11412855Sgabeblack@google.com case 7: 11512855Sgabeblack@google.com I.write(0x46); 11612855Sgabeblack@google.com D.write(0x0); 11712855Sgabeblack@google.com C0.write(0x1); 11812855Sgabeblack@google.com OEbar.write(0x0); 11912855Sgabeblack@google.com break; 12012855Sgabeblack@google.com case 8: 12112855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 12212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 12312855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 12412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 12512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 12612855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 12712855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 12812855Sgabeblack@google.com 12912855Sgabeblack@google.com I.write(0x7); 13012855Sgabeblack@google.com D.write(0xf); 13112855Sgabeblack@google.com C0.write(0x0); 13212855Sgabeblack@google.com OEbar.write(0x0); 13312855Sgabeblack@google.com break; 13412855Sgabeblack@google.com case 9: 13512855Sgabeblack@google.com I.write(0x46); 13612855Sgabeblack@google.com D.write(0xf); 13712855Sgabeblack@google.com C0.write(0x0); 13812855Sgabeblack@google.com OEbar.write(0x0); 13912855Sgabeblack@google.com break; 14012855Sgabeblack@google.com case 10: 14112855Sgabeblack@google.com if (Y.read() != 0xe) fprintf(stderr,"Y != 4'b1110\n"); 14212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 14312855Sgabeblack@google.com if (Gbar.read() != 0x0) fprintf(stderr,"Gbar != 1'b0\n"); 14412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 14512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 14612855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 14712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 14812855Sgabeblack@google.com 14912855Sgabeblack@google.com I.write(0x7); 15012855Sgabeblack@google.com D.write(0xf); 15112855Sgabeblack@google.com C0.write(0x0); 15212855Sgabeblack@google.com OEbar.write(0x0); 15312855Sgabeblack@google.com break; 15412855Sgabeblack@google.com case 11: 15512855Sgabeblack@google.com I.write(0x46); 15612855Sgabeblack@google.com D.write(0xf); 15712855Sgabeblack@google.com C0.write(0x1); 15812855Sgabeblack@google.com OEbar.write(0x0); 15912855Sgabeblack@google.com break; 16012855Sgabeblack@google.com case 12: 16112855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 16212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 16312855Sgabeblack@google.com if (Gbar.read() != 0x0) fprintf(stderr,"Gbar != 1'b0\n"); 16412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 16512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 16612855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 16712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 16812855Sgabeblack@google.com 16912855Sgabeblack@google.com I .write( 0x7); 17012855Sgabeblack@google.com D .write( 0x0); 17112855Sgabeblack@google.com C0 .write( 0x0); 17212855Sgabeblack@google.com OEbar .write( 0x0); 17312855Sgabeblack@google.com break; 17412855Sgabeblack@google.com case 13: 17512855Sgabeblack@google.com I .write( 0x46); 17612855Sgabeblack@google.com D .write( 0xf); 17712855Sgabeblack@google.com C0 .write( 0x0); 17812855Sgabeblack@google.com OEbar .write( 0x0); 17912855Sgabeblack@google.com break; 18012855Sgabeblack@google.com case 14: 18112855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 18212855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 18312855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 18412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 18512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 18612855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 18712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 18812855Sgabeblack@google.com 18912855Sgabeblack@google.com I .write( 0x7); 19012855Sgabeblack@google.com D .write( 0x0); 19112855Sgabeblack@google.com C0 .write( 0x0); 19212855Sgabeblack@google.com OEbar .write( 0x0); 19312855Sgabeblack@google.com break; 19412855Sgabeblack@google.com case 15: 19512855Sgabeblack@google.com I .write( 0x46); 19612855Sgabeblack@google.com D .write( 0xf); 19712855Sgabeblack@google.com C0 .write( 0x1); 19812855Sgabeblack@google.com OEbar .write( 0x0); 19912855Sgabeblack@google.com break; 20012855Sgabeblack@google.com case 16: 20112855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 20212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 20312855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 20412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 20512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 20612855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 20712855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 20812855Sgabeblack@google.com 20912855Sgabeblack@google.com I .write( 0x7); 21012855Sgabeblack@google.com D .write( 0x1); 21112855Sgabeblack@google.com C0 .write( 0x0); 21212855Sgabeblack@google.com OEbar .write( 0x0); 21312855Sgabeblack@google.com break; 21412855Sgabeblack@google.com case 17: 21512855Sgabeblack@google.com I .write( 0x6); 21612855Sgabeblack@google.com D .write( 0x1); 21712855Sgabeblack@google.com C0 .write( 0x0); 21812855Sgabeblack@google.com OEbar .write( 0x0); 21912855Sgabeblack@google.com break; 22012855Sgabeblack@google.com case 18: 22112855Sgabeblack@google.com if (Y.read() != 0x2) fprintf(stderr,"Y != 4'b0010\n"); 22212855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 22312855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 22412855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 22512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 22612855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 22712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 22812855Sgabeblack@google.com 22912855Sgabeblack@google.com I .write( 0x7); 23012855Sgabeblack@google.com D .write( 0x2); // N("4'b0010") 23112855Sgabeblack@google.com C0 .write( 0x0); 23212855Sgabeblack@google.com OEbar .write( 0x0); 23312855Sgabeblack@google.com break; 23412855Sgabeblack@google.com case 19: 23512855Sgabeblack@google.com I .write( 0x46); 23612855Sgabeblack@google.com D .write( 0x2); 23712855Sgabeblack@google.com C0 .write( 0x0); 23812855Sgabeblack@google.com OEbar .write( 0x0); 23912855Sgabeblack@google.com break; 24012855Sgabeblack@google.com case 20: 24112855Sgabeblack@google.com if (Y.read() != 0x4) fprintf(stderr,"Y != 4'b0100\n"); 24212855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 24312855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 24412855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 24512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 24612855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 24712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 24812855Sgabeblack@google.com 24912855Sgabeblack@google.com I .write( 0x7); 25012855Sgabeblack@google.com D .write( 0x4); 25112855Sgabeblack@google.com C0 .write( 0x0); 25212855Sgabeblack@google.com OEbar .write( 0x0); 25312855Sgabeblack@google.com 25412855Sgabeblack@google.com break; 25512855Sgabeblack@google.com case 21: 25612855Sgabeblack@google.com I .write( 0x46); 25712855Sgabeblack@google.com D .write( 0x4); 25812855Sgabeblack@google.com C0 .write( 0x0); 25912855Sgabeblack@google.com OEbar .write( 0x0); 26012855Sgabeblack@google.com break; 26112855Sgabeblack@google.com case 22: 26212855Sgabeblack@google.com if (Y.read() != 0x8) fprintf(stderr,"Y != 4'b1000\n"); 26312855Sgabeblack@google.com if (C4.read()!= 0x0) fprintf(stderr,"C4 != 1'b0\n"); 26412855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 26512855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 26612855Sgabeblack@google.com if (OVR.read() != 0x1) fprintf(stderr,"OVR != 1'b1\n"); 26712855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 26812855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 26912855Sgabeblack@google.com 27012855Sgabeblack@google.com I .write( 0x7); 27112855Sgabeblack@google.com D .write( 0x8); // N("4'b1000") 27212855Sgabeblack@google.com C0 .write( 0x0); 27312855Sgabeblack@google.com OEbar .write( 0x0); 27412855Sgabeblack@google.com break; 27512855Sgabeblack@google.com case 23: 27612855Sgabeblack@google.com I .write( 0x46); 27712855Sgabeblack@google.com D .write( 0x8); 27812855Sgabeblack@google.com C0 .write( 0x0); 27912855Sgabeblack@google.com OEbar .write( 0x0); 28012855Sgabeblack@google.com 28112855Sgabeblack@google.com break; 28212855Sgabeblack@google.com case 24: 28312855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 28412855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 28512855Sgabeblack@google.com if (Gbar.read() != 0x0) fprintf(stderr,"Gbar != 1'b0\n"); 28612855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 28712855Sgabeblack@google.com if (OVR.read() != 0x1) fprintf(stderr,"OVR != 1'b1\n"); 28812855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 28912855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 29012855Sgabeblack@google.com 29112855Sgabeblack@google.com // ******** SUBTRACTION S - R ******** 29212855Sgabeblack@google.com I .write( 0x7); 29312855Sgabeblack@google.com D .write( 0x0); 29412855Sgabeblack@google.com C0 .write( 0x0); 29512855Sgabeblack@google.com OEbar .write( 0x0); 29612855Sgabeblack@google.com break; 29712855Sgabeblack@google.com case 25: 29812855Sgabeblack@google.com I .write( 0x4e); // N("9'b001001110") 29912855Sgabeblack@google.com D .write( 0x0); 30012855Sgabeblack@google.com C0 .write( 0x0); 30112855Sgabeblack@google.com OEbar .write( 0x0); 30212855Sgabeblack@google.com 30312855Sgabeblack@google.com break; 30412855Sgabeblack@google.com case 26: 30512855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 30612855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 30712855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 30812855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 30912855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 31012855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 31112855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 31212855Sgabeblack@google.com 31312855Sgabeblack@google.com I .write( 0x7); 31412855Sgabeblack@google.com D .write( 0x0); 31512855Sgabeblack@google.com C0 .write( 0x0); 31612855Sgabeblack@google.com OEbar .write( 0x0); 31712855Sgabeblack@google.com break; 31812855Sgabeblack@google.com case 27: 31912855Sgabeblack@google.com I .write( 0x4e); 32012855Sgabeblack@google.com D .write( 0x0); 32112855Sgabeblack@google.com C0 .write( 0x1); 32212855Sgabeblack@google.com OEbar .write( 0x0); 32312855Sgabeblack@google.com break; 32412855Sgabeblack@google.com case 28: 32512855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 32612855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 32712855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 32812855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 32912855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 33012855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 33112855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 33212855Sgabeblack@google.com 33312855Sgabeblack@google.com I .write( 0x7); 33412855Sgabeblack@google.com D .write( 0x0); 33512855Sgabeblack@google.com C0 .write( 0x0); 33612855Sgabeblack@google.com OEbar .write( 0x0); 33712855Sgabeblack@google.com break; 33812855Sgabeblack@google.com case 29: 33912855Sgabeblack@google.com I .write( 0x4e); 34012855Sgabeblack@google.com D .write( 0xf); 34112855Sgabeblack@google.com C0 .write( 0x0); 34212855Sgabeblack@google.com OEbar .write( 0x0); 34312855Sgabeblack@google.com break; 34412855Sgabeblack@google.com case 30: 34512855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 34612855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 34712855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 34812855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 34912855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 35012855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 35112855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 35212855Sgabeblack@google.com 35312855Sgabeblack@google.com I .write( 0x7); 35412855Sgabeblack@google.com D .write( 0x0); 35512855Sgabeblack@google.com C0 .write( 0x0); 35612855Sgabeblack@google.com OEbar .write( 0x0); 35712855Sgabeblack@google.com break; 35812855Sgabeblack@google.com case 31: 35912855Sgabeblack@google.com I .write( 0x4e); 36012855Sgabeblack@google.com D .write( 0xf); 36112855Sgabeblack@google.com C0 .write( 0x1); 36212855Sgabeblack@google.com OEbar .write( 0x0); 36312855Sgabeblack@google.com 36412855Sgabeblack@google.com break; 36512855Sgabeblack@google.com case 32: 36612855Sgabeblack@google.com if (Y.read() != 0x1) fprintf(stderr,"Y != 4'b0001\n"); 36712855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 36812855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 36912855Sgabeblack@google.com if (Pbar.read() != 0x1) fprintf(stderr,"Pbar != 1'b1\n"); 37012855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 37112855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 37212855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 37312855Sgabeblack@google.com 37412855Sgabeblack@google.com I .write( 0x7); 37512855Sgabeblack@google.com D .write( 0xf); 37612855Sgabeblack@google.com C0 .write( 0x0); 37712855Sgabeblack@google.com OEbar .write( 0x0); 37812855Sgabeblack@google.com 37912855Sgabeblack@google.com break; 38012855Sgabeblack@google.com case 33: 38112855Sgabeblack@google.com I .write( 0x4e); 38212855Sgabeblack@google.com D .write( 0xf); 38312855Sgabeblack@google.com C0 .write( 0x0); 38412855Sgabeblack@google.com OEbar .write( 0x0); 38512855Sgabeblack@google.com 38612855Sgabeblack@google.com break; 38712855Sgabeblack@google.com case 34: 38812855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 38912855Sgabeblack@google.com if (C4.read() != 0x0) fprintf(stderr,"C4 != 1'b0\n"); 39012855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 39112855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 39212855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 39312855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 39412855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 39512855Sgabeblack@google.com 39612855Sgabeblack@google.com I .write( 0x7); 39712855Sgabeblack@google.com D .write( 0xf); 39812855Sgabeblack@google.com C0 .write( 0x0); 39912855Sgabeblack@google.com OEbar .write( 0x0); 40012855Sgabeblack@google.com break; 40112855Sgabeblack@google.com case 35: 40212855Sgabeblack@google.com I .write( 0x4e); 40312855Sgabeblack@google.com D .write( 0xf); 40412855Sgabeblack@google.com C0 .write( 0x1); 40512855Sgabeblack@google.com OEbar .write( 0x0); 40612855Sgabeblack@google.com 40712855Sgabeblack@google.com break; 40812855Sgabeblack@google.com case 36: 40912855Sgabeblack@google.com if (Y.read() != 0x0) fprintf(stderr,"Y != 4'b0000\n"); 41012855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 41112855Sgabeblack@google.com if (Gbar.read() != 0x1) fprintf(stderr,"Gbar != 1'b1\n"); 41212855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 41312855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 41412855Sgabeblack@google.com if (F3.read() != 0x0) fprintf(stderr,"F3 != 1'b0\n"); 41512855Sgabeblack@google.com if (F30.read() != 0x1) fprintf(stderr,"F30 != 1'b1\n"); 41612855Sgabeblack@google.com 41712855Sgabeblack@google.com I .write( 0x7); 41812855Sgabeblack@google.com D .write( 0xf); 41912855Sgabeblack@google.com C0 .write( 0x0); 42012855Sgabeblack@google.com OEbar .write( 0x0); 42112855Sgabeblack@google.com 42212855Sgabeblack@google.com break; 42312855Sgabeblack@google.com case 37: 42412855Sgabeblack@google.com I .write( 0x4e); 42512855Sgabeblack@google.com D .write( 0x0); 42612855Sgabeblack@google.com C0 .write( 0x0); 42712855Sgabeblack@google.com OEbar .write( 0x0); 42812855Sgabeblack@google.com 42912855Sgabeblack@google.com break; 43012855Sgabeblack@google.com case 38: 43112855Sgabeblack@google.com if (Y.read() != 0xe) fprintf(stderr,"Y != 4'b1110\n"); 43212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 43312855Sgabeblack@google.com if (Gbar.read() != 0x0) fprintf(stderr,"Gbar != 1'b0\n"); 43412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 43512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 43612855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 43712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 43812855Sgabeblack@google.com 43912855Sgabeblack@google.com I .write( 0x7); 44012855Sgabeblack@google.com D .write( 0xf); 44112855Sgabeblack@google.com C0 .write( 0x0); 44212855Sgabeblack@google.com OEbar .write( 0x0); 44312855Sgabeblack@google.com break; 44412855Sgabeblack@google.com case 39: 44512855Sgabeblack@google.com I .write( 0x4e); 44612855Sgabeblack@google.com D .write( 0x0); 44712855Sgabeblack@google.com C0 .write( 0x1); 44812855Sgabeblack@google.com OEbar .write( 0x0); 44912855Sgabeblack@google.com break; 45012855Sgabeblack@google.com case 40: 45112855Sgabeblack@google.com if (Y.read() != 0xf) fprintf(stderr,"Y != 4'b1111\n"); 45212855Sgabeblack@google.com if (C4.read() != 0x1) fprintf(stderr,"C4 != 1'b1\n"); 45312855Sgabeblack@google.com if (Gbar.read() != 0x0) fprintf(stderr,"Gbar != 1'b0\n"); 45412855Sgabeblack@google.com if (Pbar.read() != 0x0) fprintf(stderr,"Pbar != 1'b0\n"); 45512855Sgabeblack@google.com if (OVR.read() != 0x0) fprintf(stderr,"OVR != 1'b0\n"); 45612855Sgabeblack@google.com if (F3.read() != 0x1) fprintf(stderr,"F3 != 1'b1\n"); 45712855Sgabeblack@google.com if (F30.read() != 0x0) fprintf(stderr,"F30 != 1'b0\n"); 45812855Sgabeblack@google.com 45912855Sgabeblack@google.com I .write( 0x7); 46012855Sgabeblack@google.com D .write( 0x0); // 0x1; 46112855Sgabeblack@google.com C0 .write( 0x0); 46212855Sgabeblack@google.com OEbar .write( 0x0); 46312855Sgabeblack@google.com 46412855Sgabeblack@google.com if (++loop < 100000) 46512855Sgabeblack@google.com vec_cnt = 0; 46612855Sgabeblack@google.com else { 46712855Sgabeblack@google.com printf ("loops = %d\n", loop); 46812855Sgabeblack@google.com sc_stop(); 46912855Sgabeblack@google.com } 47012855Sgabeblack@google.com break; 47112855Sgabeblack@google.com } 47212855Sgabeblack@google.com} 473