Changeset 560
- Timestamp:
- Apr 13, 2015, 5:34:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/mapping.py
r546 r560 75 75 'GCD', 76 76 'DCT', 77 'CPY', 77 78 ] 78 79 … … 723 724 seg_ioc_base = 0xFFFFFFFF 724 725 seg_ioc_size = 0 726 use_ioc_bdv = False 727 use_ioc_sdc = False 728 use_ioc_hba = False 725 729 726 730 nb_mmc = 0 … … 737 741 mwr_arg2 = 0 738 742 mwr_arg3 = 0 743 use_mwr_gcd = False 744 use_mwr_dct = False 745 use_mwr_cpy = False 739 746 740 747 nb_nic = 0 … … 778 785 seg_drom_base = 0xFFFFFFFF 779 786 seg_drom_size = 0 780 781 use_bdv = False782 use_sdc = False783 use_hba = False784 787 785 788 # get peripherals attributes … … 817 820 ioc_channels = periph.channels 818 821 nb_ioc += 1 819 820 if self.use_ramdisk: continue 821 822 if ( periph.subtype == 'BDV' ): use_bdv = True 823 elif ( periph.subtype == 'HBA' ): use_hba = True 824 elif ( periph.subtype == 'SDC' ): use_sdc = True 822 if ( periph.subtype == 'BDV' ): use_ioc_bdv = True 823 if ( periph.subtype == 'HBA' ): use_ioc_hba = True 824 if ( periph.subtype == 'SDC' ): use_ioc_sdc = True 825 825 826 826 elif ( periph.ptype == 'MMC' ): … … 839 839 mwr_arg3 = periph.arg3 840 840 nb_mwr +=1 841 if ( periph.subtype == 'GCD' ): use_mwr_gcd = True 842 if ( periph.subtype == 'DCT' ): use_mwr_dct = True 843 if ( periph.subtype == 'CPY' ): use_mwr_cpy = True 841 844 842 845 elif ( periph.ptype == 'ROM' ): … … 901 904 902 905 # one and only one type of IOC controller 903 nb_iocs = 0 904 if use_hba : nb_iocs += 1 905 if use_bdv : nb_iocs += 1 906 if use_sdc : nb_iocs += 1 907 if self.use_ramdisk: nb_iocs += 1 908 assert ( nb_iocs == 1 ) 906 nb_ioc_types = 0 907 if use_ioc_hba: nb_ioc_types += 1 908 if use_ioc_bdv: nb_ioc_types += 1 909 if use_ioc_sdc: nb_ioc_types += 1 910 if self.use_ramdisk: nb_ioc_types += 1 911 assert ( nb_ioc_types == 1 ) 912 913 # one and only one type of MWR controller 914 nb_mwr_types = 0 915 if use_mwr_gcd: nb_mwr_types += 1 916 if use_mwr_dct: nb_mwr_types += 1 917 if use_mwr_cpy: nb_mwr_types += 1 918 if ( nb_mwr > 0 ) : assert ( nb_mwr_types == 1 ) 909 919 910 920 # Compute total number of processors … … 1012 1022 s += '\n' 1013 1023 s += '#define USE_XCU %d\n' % ( nb_xcu != 0 ) 1024 s += '#define USE_DMA %d\n' % ( nb_dma != 0 ) 1025 s += '\n' 1014 1026 s += '#define USE_IOB %d\n' % ( nb_iob != 0 ) 1015 1027 s += '#define USE_PIC %d\n' % ( nb_pic != 0 ) … … 1017 1029 s += '#define USE_NIC %d\n' % ( nb_nic != 0 ) 1018 1030 s += '\n' 1019 s += '#define USE_IOC_BDV %d\n' % use_ bdv1020 s += '#define USE_IOC_SDC %d\n' % use_ sdc1021 s += '#define USE_IOC_HBA %d\n' % use_ hba1031 s += '#define USE_IOC_BDV %d\n' % use_ioc_bdv 1032 s += '#define USE_IOC_SDC %d\n' % use_ioc_sdc 1033 s += '#define USE_IOC_HBA %d\n' % use_ioc_hba 1022 1034 s += '#define USE_IOC_RDK %d\n' % self.use_ramdisk 1035 s += '\n' 1036 s += '#define USE_MWR_GCD %d\n' % use_mwr_gcd 1037 s += '#define USE_MWR_DCT %d\n' % use_mwr_dct 1038 s += '#define USE_MWR_CPY %d\n' % use_mwr_cpy 1023 1039 s += '\n' 1024 1040 s += '#define FBUF_X_SIZE %d\n' % fbf_arg0
Note: See TracChangeset
for help on using the changeset viewer.