Changeset 3142
- Timestamp:
- 03/21/07 10:18:08 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
WaveDev/trunk/WaveDev/wavedev/generate/templates/basic_ports/genStructure.py
r2667 r3142 1112 1112 ts = " "*8 + "/*insert code here to do work*/\n\n\n\n\n\n\n"; 1113 1113 output.write(ts) 1114 1115 inCount = 0; 1114 1116 for x in c.ports: 1115 1117 if x.type == "Provides": 1116 inCount = 0; 1117 if x.interface.name == "complexShort": 1118 if x.interface.name == "complexShort": 1118 1119 ts = " "*8 + "Class_instance_name->dataIn_" + str(inCount) + "->bufferEmptied();\n"; 1119 1120 output.write(ts) … … 1143 1144 continue 1144 1145 1145 1146 outCount = 0; 1146 1147 for x in c.ports: #assumes that you have at least one port 1147 if x.type == "Uses": 1148 outCount = 0; 1148 if x.type == "Uses": 1149 1149 if x.interface.name == "complexShort": 1150 1150 ts = " "*8 + "Class_instance_name->dataOut_" + str(outCount) + "->pushPacket(I_out_" + str(outCount) + ", Q_out_" + str(outCount) + ");\n";