Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison src/Application/SimParams.c @ 5:648207f2e38f
Netlist creation runnable + creation of faked simulation results
| author | hausers |
|---|---|
| date | Tue, 06 Dec 2011 18:46:42 +0100 |
| parents | 7566745e812a |
| children |
comparison
equal
deleted
inserted
replaced
| 1:294f0b19858e | 2:ea99a06b26d3 |
|---|---|
| 48 | 48 |
| 49 | 49 |
| 50 | 50 |
| 51 ParamStruc *param; | 51 ParamStruc *param; |
| 52 | 52 |
| 53 param = getParamFromBag( "GuestApplicationFileName", paramBag ); | 53 //param = getParamFromBag( "GuestApplicationFileName", paramBag ); |
| 54 | 54 |
| 55 guestAppFileName = param->strValue; | 55 guestAppFileName = param->strValue; |
| 56 | 56 |
| 57 param = getParamFromBag( "numBytesInGuestApp", paramBag ); | 57 //param = getParamFromBag( "numBytesInGuestApp", paramBag ); |
| 58 | 58 |
| 59 numBytesInGuestApp = param->intValue; | 59 numBytesInGuestApp = param->intValue; |
| 60 | 60 |
| 61 | 61 |
| 62 | 62 |
| 64 | 64 |
| 65 read_Machine_Code_From_File( numBytesInGuestApp, guestAppFileName ); | 65 read_Machine_Code_From_File( numBytesInGuestApp, guestAppFileName ); |
| 66 | 66 |
| 67 | 67 |
| 68 | 68 |
| 69 param = getParamFromBag( "SystemCodeFileName", paramBag ); | 69 //param = getParamFromBag( "SystemCodeFileName", paramBag ); |
| 70 | 70 |
| 71 systemCodeFileName = param->strValue; | 71 systemCodeFileName = param->strValue; |
| 72 | 72 |
| 73 param = getParamFromBag( "numBytesInSystemCode", paramBag ); | 73 //param = getParamFromBag( "numBytesInSystemCode", paramBag ); |
| 74 | 74 |
| 75 numBytesInSystemCode = param->intValue; | 75 numBytesInSystemCode = param->intValue; |
| 76 | 76 |
| 77 | 77 |
| 78 | 78 |
| 82 | 82 |
| 83 | 83 |
| 84 | 84 |
| 85 | 85 |
| 86 | 86 |
| 87 param = getParamFromBag( "numNodes", paramBag ); | 87 //param = getParamFromBag( "numNodes", paramBag ); |
| 88 | 88 |
| 89 simParams->numNodes = param->intValue; | 89 simParams->numNodes = param->intValue; |
| 90 | 90 |
| 91 | 91 |
| 92 | 92 |
| 124 | 124 |
| 125 { | 125 { |
| 126 | 126 |
| 127 if( feof( file ) ) printf( "file ran out too soon" ); | 127 if( feof( file ) ) printf( "file ran out too soon" ); |
| 128 | 128 |
| 129 machineCode[byte] = getchar( file ); | 129 // machineCode[byte] = getchar( file ); |
| 130 | 130 |
| 131 | 131 |
| 132 | 132 |
| 133 } | 133 } |
| 134 | 134 |
| 150 | 150 |
| 151 } | 151 } |
| 152 | 152 |
| 153 | 153 |
| 154 | 154 |
| 155 |
