Changeset 586
- Timestamp:
- Nov 1, 2018, 12:33:12 PM (6 years ago)
- Location:
- trunk/tools/arch_info
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/arch_info/arch_classes.py
r571 r586 48 48 'ROM_SCL', # 1.0 49 49 'FBF_SCL', # 2.0 50 'FBF_LTI', # 2.1 50 51 'IOB_TSR', # 3.0 51 52 'IOC_BDV', # 4.0 … … 59 60 'TIM_SCL', # 8.0 60 61 'TXT_TTY', # 9.0 61 'TXT_MTY', # 9.1 62 'TXT_RS2', # 9.1 63 'TXT_MTY', # 9.2 62 64 'ICU_XCU', # A.0 63 65 'PIC_TSR', # B.0 … … 67 69 0x00000000, # 0.0 68 70 0x00010000, # 1.0 69 0x00020000, # 1.0 71 0x00020000, # 2.0 72 0x00020001, # 2.1 70 73 0x00030000, # 3.0 71 74 0x00040000, # 4.0 … … 80 83 0x00090000, # 9.0 81 84 0x00090001, # 9.1 85 0x00090002, # 9.2 82 86 0x000A0000, # A.0 83 87 0x000B0000, # B.0 84 88 ] 85 89 86 90 ######################################################################################### 87 91 class Archinfo( object ): 88 92 ######################################################################################### … … 385 389 fbf_arg0 = 0 386 390 fbf_arg1 = 0 391 use_fbf_scl = False 392 use_fbf_lti = False 387 393 388 394 nb_iob = 0 … … 430 436 txt_base = 0xFFFFFFFFFFFFFFFF 431 437 txt_size = 0 438 use_txt_tty = False 439 use_txt_rs2 = False 440 use_txt_mty = False 432 441 433 442 nb_icu = 0 … … 467 476 fbf_size = device.size 468 477 fbf_channels = device.channels 478 use_fbf_scl = True 479 fbf_arg0 = device.arg0 480 fbf_arg1 = device.arg1 481 nb_fbf +=1 482 elif ( device.ptype == 'FBF_LTI' ): 483 fbf_base = device.base 484 fbf_size = device.size 485 fbf_channels = device.channels 486 use_fbf_lti = True 469 487 fbf_arg0 = device.arg0 470 488 fbf_arg1 = device.arg1 … … 536 554 txt_size = device.size 537 555 txt_channels = device.channels 556 use_txt_tty = True 557 nb_txt +=1 558 elif ( device.ptype == 'TXT_RS2' ): 559 txt_base = device.base 560 txt_size = device.size 561 txt_channels = device.channels 562 use_txt_rs2 = True 563 nb_txt +=1 564 elif ( device.ptype == 'TXT_MTY' ): 565 txt_base = device.base 566 txt_size = device.size 567 txt_channels = device.channels 568 use_txt_mty = True 538 569 nb_txt +=1 539 570 … … 625 656 s += '#define USE_IOC_RDK %d\n' % use_ioc_rdk 626 657 s += '\n' 658 s += '#define USE_TXT_TTY %d\n' % use_txt_tty 659 s += '#define USE_TXT_RS2 %d\n' % use_txt_rs2 660 s += '#define USE_TXT_MTY %d\n' % use_txt_mty 661 s += '\n' 662 s += '#define USE_FBF_SCL %d\n' % use_fbf_scl 663 s += '#define USE_FBF_LTI %d\n' % use_fbf_lti 664 s += '\n' 627 665 s += '#define FBUF_X_SIZE %d\n' % fbf_arg0 628 666 s += '#define FBUF_Y_SIZE %d\n' % fbf_arg1 … … 930 968 print ' irq global index = %d / expected = %d' \ 931 969 % (self.index , expected) 932 sys.exit(1)933 934 970 # compute source device type numerical value 935 971 dev_id = 0xFFFFFFFF -
trunk/tools/arch_info/arch_info.h
r571 r586 71 71 DEV_TYPE_ROM_SCL = 0x00010000, 72 72 DEV_TYPE_FBF_SCL = 0x00020000, 73 DEV_TYPE_FBF_LTI = 0x00020001, 73 74 DEV_TYPE_IOB_TSR = 0x00030000, 74 75 DEV_TYPE_IOC_BDV = 0x00040000, … … 82 83 DEV_TYPE_TIM_SCL = 0x00080000, 83 84 DEV_TYPE_TXT_TTY = 0x00090000, 84 DEV_TYPE_TXT_MTY = 0x00090001, 85 DEV_TYPE_TXT_RS2 = 0x00090001, 86 DEV_TYPE_TXT_MTY = 0x00090002, 85 87 DEV_TYPE_ICU_XCU = 0x000A0000, 86 88 DEV_TYPE_PIC_TSR = 0x000B0000, -
trunk/tools/arch_info/genarch.py
r575 r586 14 14 # to store the "arch_info.bin" file are defined by parameters on the command line: 15 15 # --arch=string : path to directory containing the "arch_info.py" file 16 # --bin=string : path to directory store the "arch_info.bin" file16 # --bin=string : path to directory to store the "arch_info.bin" file 17 17 # 18 18 # As the target architecture is generic, the following hardware parameters can be … … 23 23 # --nb_ttys=int : number of TTY channels 24 24 # --nb_nics=int : number of NIC channels 25 # --fbf_size=int : frame buffer width & heigth26 25 # --ioc_type=string : can be IOC_BDV , IOC_HBA , IOC_SDC , IOC_SPI 26 # --txt_type=string : can be TXT_TTY , TXT_MTY 27 # --fbf_type=string : can be FBF_LTI , FBF_SCL 28 # --sys_clk=int : system clock frequency (Hz) 27 29 # 28 30 # The following parameters can be used to generate the optional "hard_config.h" file, … … 71 73 help = 'define number ot NIC channels' ) 72 74 73 parser.add_option( '--fbf_size', type = 'int', dest = 'fbf_size',74 default = 128,75 help = 'define frame buffer width and heigth' )76 77 75 parser.add_option( '--ioc_type', type = 'string', dest = 'ioc_type', 78 76 default = 'IOC_BDV', 79 help = 'define type of IOC: BDV / HBA / SDC / RDK / SPI' ) 77 help = 'IOC type : BDV / HBA / SDC / RDK / SPI' ) 78 79 parser.add_option( '--txt_type', type = 'string', dest = 'txt_type', 80 default = 'TXT_TTY', 81 help = 'TXT type : TTY / RS2 / MTY' ) 82 83 parser.add_option( '--fbf_type', type = 'string', dest = 'fbf_type', 84 default = 'FBF_SCL', 85 help = 'FBF type : LTI / SCL' ) 80 86 81 87 parser.add_option( '--sys_clk', type = 'int', dest = 'sys_clk', 82 default = 25000, 83 help = 'define system clock frequency (25MHz for FPGA, 600MHz for TSARLET)' ) 84 85 parser.add_option( '--segs_set', type = 'string', dest = 'segs_set', 86 default = 'SIMU', 87 help = 'define which set of base addresses to use (may differ between simulation and real machine' ) 88 default = 50000, 89 help = 'system clock frequency (50 KHz simu / 25 MHz FPGA, 600 MHz VLSI)' ) 88 90 89 91 parser.add_option( '--hard', type = 'string', dest = 'hard_path', … … 110 112 nb_cores = options.nb_cores # number of cores in a cluster 111 113 nb_ttys = options.nb_ttys # number of TTY channels 112 fbf_size = options.fbf_size # frame buffer width & heigth113 114 nb_nics = options.nb_nics # number of NIC channels 114 115 ioc_type = options.ioc_type # ioc controller type 115 sys_clk = options.sys_clk # system clock frequency in kHz 116 segs_set = options.segs_set # Set of base addresses used (simu or real) 116 txt_type = options.txt_type # txt terminal type 117 fbf_type = options.fbf_type # fbf terminal type 118 sys_clk = options.sys_clk # system clock frequency in Hertz 117 119 118 120 hard_path = options.hard_path # path for hard_config.h file … … 143 145 nb_ttys, 144 146 nb_nics, 145 fbf_size, 146 ioc_type ) 147 ioc_type, 148 txt_type, 149 fbf_type, 150 sys_clk ) 147 151 148 152 print '[genarch] archinfo build for %s' % archinfo.name
Note: See TracChangeset
for help on using the changeset viewer.