comparison modules/bluespec/Pygar/core/AudioCoreSystem.cpp @ 39:5a30f173bbac pygar svn.40

[svn r40] no longer cpu terminating dependent
author punk
date Tue, 04 May 2010 19:32:25 -0400
parents 0475235d1513
children 16ba43f0a7c3
comparison
equal deleted inserted replaced
38:05598d745f99 39:5a30f173bbac
102 printf("main:PROCESSOR about to enter loop %d\n", count); 102 printf("main:PROCESSOR about to enter loop %d\n", count);
103 103
104 //rlm: here we read both files. later refactor into a function. 104 //rlm: here we read both files. later refactor into a function.
105 // also, this will terminate when the FIRST file reaches its end. 105 // also, this will terminate when the FIRST file reaches its end.
106 while( fread(&sample, 2, 1, inputFile)) //&& (fread(&sample1, 2 , 1, inputFile1))) 106 while( fread(&sample, 2, 1, inputFile)) //&& (fread(&sample1, 2 , 1, inputFile1)))
107 { 107 { /*
108 printf("hi\n"); 108 printf("hi\n");
109 if (!coreFin && (result = clientStub->ReadCPUToHost(0)) != 1) 109 if (!coreFin && (result = clientStub->ReadCPUToHost(0)) != 1)
110 { 110 {
111 sleepCount++; 111 sleepCount++;
112 if(sleepCount == 200) { 112 if(sleepCount == 200) {
121 else if (!coreFin && result == 1) 121 else if (!coreFin && result == 1)
122 { 122 {
123 printf("\n***SOFT_CORE PASSED***\n"); 123 printf("\n***SOFT_CORE PASSED***\n");
124 coreFin = true; 124 coreFin = true;
125 } 125 }
126 */
126 127
127 if(count%1000 == 0) 128 if(count%1000 == 0)
128 printf("main: %d\n", count); 129 printf("main: %d\n", count);
129 count++; 130 count++;
130 sem_wait(&throttle); 131 sem_wait(&throttle);