Changeset 287 for soft/giet_vm/giet_xml
- Timestamp:
- Feb 3, 2014, 4:34:44 PM (11 years ago)
- Location:
- soft/giet_vm/giet_xml
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/mapping_info.h
r267 r287 139 139 unsigned int vspaces; // number of virtual spaces 140 140 unsigned int increment; // vseg cluster increment for replicated periphs 141 unsigned int irq_per_proc; // number of IRQ per processor 141 142 142 143 unsigned int cma_cluster; // index of cluster containing CMA controler -
soft/giet_vm/giet_xml/xml_driver.c
r263 r287 45 45 "HARD", 46 46 "SOFT", 47 "TIME", 47 48 }; 48 49 … … 229 230 fprintf(fpout, "<?xml version = \"1.0\"?>\n\n"); 230 231 231 fprintf(fpout, "<mapping_info signature = \"0x%x\" \n", header->signature); 232 fprintf(fpout, " name = \"%s\" \n", header->name); 233 fprintf(fpout, " x_size = \"%d\" \n", header->x_size); 234 fprintf(fpout, " y_size = \"%d\" \n", header->y_size); 235 fprintf(fpout, " x_width = \"%d\" \n", header->x_width); 236 fprintf(fpout, " y_width = \"%d\" \n", header->y_width); 237 fprintf(fpout, " vspaces = \"%d\" \n", header->vspaces); 238 fprintf(fpout, " increment = \"%d\" >\n\n", header->vspaces); 232 fprintf(fpout, "<mapping_info signature = \"0x%x\" \n" , header->signature); 233 fprintf(fpout, " name = \"%s\" \n" , header->name); 234 fprintf(fpout, " x_size = \"%d\" \n" , header->x_size); 235 fprintf(fpout, " y_size = \"%d\" \n" , header->y_size); 236 fprintf(fpout, " x_width = \"%d\" \n" , header->x_width); 237 fprintf(fpout, " y_width = \"%d\" \n" , header->y_width); 238 fprintf(fpout, " vspaces = \"%d\" \n" , header->vspaces); 239 fprintf(fpout, " increment = \"%d\" \n" , header->vspaces); 240 fprintf(fpout, " irq_per_proc = \"%d\" >\n\n", header->irq_per_proc); 239 241 240 242 ///////////////////// clusters /////////////////////////////////////////////// -
soft/giet_vm/giet_xml/xml_parser.c
r281 r287 115 115 unsigned int dma_channels = 0; // max number of DMA channels (per cluster) 116 116 117 unsigned int icu_channels = 0; // total number of IRQ per processor117 unsigned int icu_channels = 0; // total number of channels in ICU/XICU 118 118 unsigned int tty_channels = 0; // total number of terminals in TTY 119 119 unsigned int hba_channels = 0; // total number of channels in HBA … … 124 124 unsigned int use_xcu = 0; // using XCU (not ICU) 125 125 unsigned int use_hba = 0; // using HBA 126 127 126 128 127 //////////////////////////////////////////////////////////////// … … 2064 2063 } 2065 2064 2065 // the number of ICU channels must be NB_PROCS * irq_per_proc 2066 if (icu_channels != (header->irq_per_proc * proc_loc_index)) 2067 { 2068 printf("[XML ERROR] illegal ICU number of channels. " 2069 "It must be equal to NB_PROCS * IRQ_PER_PROC\n"); 2070 exit(1); 2071 } 2072 2066 2073 #if XML_PARSER_DEBUG 2067 2074 printf(" end cluster set\n\n"); … … 2294 2301 { 2295 2302 printf("[XML ERROR] illegal or missing <increment> attribute in mapping\n"); 2303 exit(1); 2304 } 2305 2306 ///////// get increment attribute 2307 value = getIntValue(reader, "irq_per_proc", &ok); 2308 if (ok) 2309 { 2310 #if XML_PARSER_DEBUG 2311 printf(" irq_per_proc = %d\n", value); 2312 #endif 2313 header->irq_per_proc = value; 2314 } 2315 else 2316 { 2317 printf("[XML ERROR] illegal or missing <irq_per_proc> attribute in mapping\n"); 2296 2318 exit(1); 2297 2319 } … … 2570 2592 file_write(fdout, "\n"); 2571 2593 2572 def_int_write(fdout, "IRQ_PER_PROCESSOR ", icu_channels);2594 def_int_write(fdout, "IRQ_PER_PROCESSOR ", header->irq_per_proc); 2573 2595 2574 2596 file_write(fdout, epil);
Note: See TracChangeset
for help on using the changeset viewer.