This shows you the differences between two versions of the page.
schedule_code_generator [2017/04/19 13:31] 127.0.0.1 external edit |
schedule_code_generator [2017/04/19 14:17] waruna [Usage] |
||
---|---|---|---|
Line 23: | Line 23: | ||
The following commands will generate the scheduled code based on the given target mapping. | The following commands will generate the scheduled code based on the given target mapping. | ||
- | <sxh cs; gutter: false> | + | <sxh cs; gutter:true> |
# Load an alphabets program and store as 'program' | # Load an alphabets program and store as 'program' | ||
program = ReadAlphabets("../../alphabets/matrix_product.ab"); | program = ReadAlphabets("../../alphabets/matrix_product.ab"); | ||
Line 44: | Line 44: | ||
setMemoryMap(program, system, "temp_C", "matrix_product", "(i,j,k->i,j)"); | setMemoryMap(program, system, "temp_C", "matrix_product", "(i,j,k->i,j)"); | ||
- | </sxh> | ||
- | <sxh cs; gutter:true> | ||
# Generate scheduled code according to the target mapping | # Generate scheduled code according to the target mapping | ||
generateScheduledCode(program, system, outDir); | generateScheduledCode(program, system, outDir); |