29 #ifndef HWAC_FREIA_SPOC_H_
30 # define HWAC_FREIA_SPOC_H_
185 #define spoc_depth_prop "HWAC_SPOC_DEPTH"
188 #define FREIA_SPOC_INCLUDES \
189 "#include <freiaCommon.h>\n" \
190 "#include <freiaMediumGrain.h>\n" \
191 "#include <freiaCoarseGrain.h>\n" \
192 "#include <spoc.h>\n"
194 #define FREIA_SPOC_DECL \
195 " spoc_instr si;\n" \
196 " spoc_param sp;\n" \
197 " freia_microcode mcode;\n" \
198 " freia_dynamic_param dynparam;\n" \
199 " freia_op_param param;\n" \
200 " freia_status ret;\n"
202 #define FREIA_SPOC_CALL_START \
204 " mcode.raw = (freia_ptr) &si;\n" \
205 " mcode.size = sizeof(spoc_instr);\n" \
207 " dynparam.raw = (freia_ptr) &sp;\n" \
208 " dynparam.size = sizeof(spoc_param);\n" \
211 #define FREIA_SPOC_CALL_REDUC \
212 " redres.raw = (freia_ptr) &reduc;\n" \
213 " redres.size = sizeof(spoc_reduction);\n" \
216 #define FREIA_SPOC_CALL_END \
217 " ret = freia_cg_write_microcode(&mcode);\n" \
218 " ret |= freia_cg_write_dynamic_param(&dynparam);\n" \
spoc_hw_parts_t
all SPoC hardware parts as a bitfield
spoc_alu_t
all SPoC ALU operations
ALU operation full description.
description of a SPoC hardware configuration should be precise enough to generate a full AIPO functio...