Changeset 421 for soft/giet_vm
- Timestamp:
- Sep 29, 2014, 2:42:37 PM (10 years ago)
- Location:
- soft/giet_vm/giet_python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/genmap
r411 r421 98 98 help = 'map the "convol" application for the GietVM' ) 99 99 100 parser.add_option( '--router', action = 'store_true', dest = 'router', 101 default = False, 102 help = 'map the "router" application for the GietVM' ) 103 100 104 ###################################################################################### 101 105 # Get command line arguments -
soft/giet_vm/giet_python/mapping.py
r411 r421 148 148 x_size, # number of clusters in a row 149 149 y_size, # number of clusters in a column 150 nprocs, # max number of processors per cluster150 nprocs, # max number of processors per cluster 151 151 x_width = X_WIDTH, # number of bits encoding x coordinate 152 152 y_width = Y_WIDTH, # number of bits encoding y coordinate … … 1238 1238 s += '\n' 1239 1239 s += '/{\n' 1240 s += ' compatible = "tsar, 1240 s += ' compatible = "tsar,%s";\n' % self.name 1241 1241 s += ' #address-cells = <2>;\n' # physical address on 64 bits 1242 1242 s += ' #size-cells = <1>;\n' # segment size on 32 bits … … 1260 1260 y = cluster.y 1261 1261 l = proc.lpid 1262 proc_id = (((x << self.y_width) + y) * self.nprocs) + l1262 proc_id = (((x << self.y_width) + y) << self.p_width) + l 1263 1263 s += ' cpu@%d_%d_%d {\n' %(x,y,l) 1264 1264 s += ' device_type = "cpu";\n' … … 1307 1307 1308 1308 s += ' %s: %s {\n' % (irq_ctrl_name, irq_ctrl_name) 1309 s += ' compatible = "soclib, vci_xicu", "soclib,vci_xicu_timer";\n'1309 s += ' compatible = "soclib,vci_xicu","soclib,vci_xicu_timer";\n' 1310 1310 s += ' interrupt-controller;\n' 1311 1311 s += ' #interrupt-cells = <1>;\n' … … 1321 1321 1322 1322 s += ' %s: %s {\n' % (irq_ctrl_name, irq_ctrl_name) 1323 s += ' compatible = "soclib, 1323 s += ' compatible = "soclib,vci_iopic";\n' 1324 1324 s += ' interrupt-controller;\n' 1325 1325 s += ' #interrupt-cells = <1>;\n' … … 1357 1357 1358 1358 s += ' tty: tty {\n' 1359 s += ' compatible = "soclib, 1359 s += ' compatible = "soclib,vci_multi_tty";\n' 1360 1360 s += ' interrupt-parent = <&%s>;\n' % (irq_ctrl_name) 1361 1361 s += ' interrupt = <%d>;\n' % hwi_id … … 1377 1377 1378 1378 s += ' bdv: bdv {\n' 1379 s += ' compatible = "soclib :vci_blockdevice";\n'1379 s += ' compatible = "soclib,vci_blockdevice";\n' 1380 1380 s += ' interrupt-parent = <&%s>;\n' % (irq_ctrl_name) 1381 1381 s += ' interrupt = <%d>;\n' % hwi_id … … 1408 1408 s += ' };\n\n' 1409 1409 s += ' cpuclk {\n' 1410 s += ' compatible = "soclib, 1410 s += ' compatible = "soclib,mips32_clksrc";\n' 1411 1411 s += ' clocks = <&freq@50MHZ>;\n' 1412 1412 s += ' };\n'
Note: See TracChangeset
for help on using the changeset viewer.