Changeset 281 for soft/giet_vm/giet_xml
- Timestamp:
- Jan 30, 2014, 5:32:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_xml/xml_parser.c
r267 r281 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 processor 117 118 unsigned int tty_channels = 0; // total number of terminals in TTY 118 119 unsigned int hba_channels = 0; // total number of channels in HBA … … 122 123 unsigned int use_iob = 0; // using IOB component 123 124 unsigned int use_xcu = 0; // using XCU (not ICU) 124 unsigned int use_hba = 0; // using XCU (not IOC)125 unsigned int use_hba = 0; // using HBA 125 126 126 127 … … 1442 1443 if (found_icu || use_xcu) error = 1; 1443 1444 found_icu = 1; 1445 1446 if (icu_channels > 0) 1447 { 1448 assert( (periph[periph_index]->channels == icu_channels) && 1449 "[XML ERROR] the number of interruptions per processor " 1450 "from the ICU (icu channels) must be the same on all " 1451 "clusters"); 1452 } 1453 else 1454 { 1455 icu_channels = periph[periph_index]->channels; 1456 } 1444 1457 } 1445 1458 ////////////////////////////////// … … 1466 1479 { 1467 1480 periph[periph_index]->type = PERIPH_TYPE_XCU; 1468 if (found_ icu || found_timer) error = 1;1481 if (found_xcu || found_icu || found_timer) error = 1; 1469 1482 found_xcu = 1; 1470 1483 found_timer = 1; 1471 1484 tim_channels = 32; 1472 1485 use_xcu = 1; 1486 1487 if (icu_channels > 0) 1488 { 1489 assert( (periph[periph_index]->channels == icu_channels) && 1490 "[XML ERROR] the number of interruptions per processor " 1491 "from the ICU (icu channels) must be the same on all " 1492 "clusters"); 1493 } 1494 else 1495 { 1496 icu_channels = periph[periph_index]->channels; 1497 } 1473 1498 } 1474 1499 else 1475 1500 { 1476 printf("[XML ERROR] illegal <type> for peripheral %d in cluster %d\n",1477 periph_loc_index, cluster_index);1501 printf("[XML ERROR] illegal <type>: %s for peripheral %d in cluster %d\n", 1502 str, periph_loc_index, cluster_index); 1478 1503 exit(1); 1479 1504 } … … 1481 1506 if (error) 1482 1507 { 1483 printf("[XML ERROR] illegal <type> for peripheral %d in cluster %d\n",1484 periph_loc_index, cluster_index);1508 printf("[XML ERROR] illegal <type>: %s for peripheral %d in cluster %d\n", 1509 str, periph_loc_index, cluster_index); 1485 1510 exit(1); 1486 1511 } … … 2509 2534 sprintf(prol, "/* Generated from file %s.xml */\n\n",header->name); 2510 2535 2511 char * ifdef = "#ifndef _HARD_CONFIG_H\n#define _HARD D_CONFIG_H\n\n";2536 char * ifdef = "#ifndef _HARD_CONFIG_H\n#define _HARD_CONFIG_H\n\n"; 2512 2537 char * epil = "\n#endif //_HARD_CONFIG_H"; 2513 2538 … … 2542 2567 def_int_write(fdout, "USE_IOB ", use_iob); 2543 2568 def_int_write(fdout, "USE_HBA ", use_hba); 2569 2570 file_write(fdout, "\n"); 2571 2572 def_int_write(fdout, "IRQ_PER_PROCESSOR ", icu_channels); 2544 2573 2545 2574 file_write(fdout, epil);
Note: See TracChangeset
for help on using the changeset viewer.