Changeset 571 for trunk/tools/arch_info/arch_classes.py
- Timestamp:
- Oct 5, 2018, 12:18:27 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/arch_info/arch_classes.py
r556 r571 41 41 ######################################################################################### 42 42 # These arrays define the supported types of peripherals. 43 # They must be kept consistent with values defined in file s arch_info.h & device.h.43 # They must be kept consistent with values defined in file arch_info.h 44 44 ######################################################################################### 45 45 … … 59 59 'TIM_SCL', # 8.0 60 60 'TXT_TTY', # 9.0 61 'TXT_RS2', # 9.1 62 'TXT_MTY', # 9.2 61 'TXT_MTY', # 9.1 63 62 'ICU_XCU', # A.0 64 63 'PIC_TSR', # B.0 … … 81 80 0x00090000, # 9.0 82 81 0x00090001, # 9.1 83 0x00090002, # 9.284 82 0x000A0000, # A.0 85 83 0x000B0000, # B.0 … … 363 361 364 362 ###################################################################### 365 def hard_config( self , ioc_type, sys_clk): # compute string for hard_config.h file363 def hard_config( self ): # compute string for hard_config.h file 366 364 # required by 367 365 # - top.cpp compilation … … 557 555 558 556 # one and only one IOC controller 559 #assert ( nb_ioc == 1 )557 assert ( nb_ioc == 1 ) 560 558 561 559 # compute rdk_base and rdk_size … … 605 603 s += '#define BOOT_CORE_CXY %d\n' % self.boot_cxy 606 604 s += '#define CACHE_LINE_SIZE %d\n' % self.cache_line 607 s += '#define RESET_SYSTEM_CLK %d\n' % sys_clk608 605 s += '\n' 609 606 … … 622 619 s += '#define USE_DMA %d\n' % ( nb_dma != 0 ) 623 620 s += '\n' 624 s += '#define USE_IOC_BDV %d\n' % (use_ioc_bdv and ioc_type == "IOC_BDV")625 s += '#define USE_IOC_SDC %d\n' % (use_ioc_sdc and ioc_type == "IOC_SDC")626 s += '#define USE_IOC_HBA %d\n' % (use_ioc_hba and ioc_type == "IOC_HBA")627 s += '#define USE_IOC_SPI %d\n' % (use_ioc_spi and ioc_type == "IOC_SPI")621 s += '#define USE_IOC_BDV %d\n' % use_ioc_bdv 622 s += '#define USE_IOC_SDC %d\n' % use_ioc_sdc 623 s += '#define USE_IOC_HBA %d\n' % use_ioc_hba 624 s += '#define USE_IOC_SPI %d\n' % use_ioc_spi 628 625 s += '#define USE_IOC_RDK %d\n' % use_ioc_rdk 629 s += '\n'630 s += '#define USE_TXT_TTY %d\n' % (self.name[5] != 'l') # use TTY implementation on IOB631 s += '#define USE_TXT_MTY %d\n' % (self.name[5] == 'l') # use MTY implementation on LETI632 626 s += '\n' 633 627 s += '#define FBUF_X_SIZE %d\n' % fbf_arg0 … … 638 632 s += '#define ICU_NB_WTI %d\n' % icu_arg2 639 633 s += '#define ICU_NB_OUT %d\n' % icu_arg3 640 s += '\n'641 if (self.name[5] == 'l') : # If running on LETI642 s += '#define TXT_TGT_CLUSTER 0\n'643 else : # Else, running on IOB644 s += '#define TXT_TGT_CLUSTER ((X_IO << Y_WIDTH) + Y_IO)\n'645 634 s += '\n' 646 635
Note: See TracChangeset
for help on using the changeset viewer.