Changeset 421


Ignore:
Timestamp:
Sep 29, 2014, 2:42:37 PM (10 years ago)
Author:
alain
Message:

Fixing bugs in linux_dts generator.

Location:
soft/giet_vm/giet_python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r411 r421  
    9898                   help = 'map the "convol" application for the GietVM' )
    9999
     100parser.add_option( '--router', action = 'store_true', dest = 'router',     
     101                   default = False,
     102                   help = 'map the "router" application for the GietVM' )
     103
    100104######################################################################################
    101105#   Get command line arguments
  • soft/giet_vm/giet_python/mapping.py

    r411 r421  
    148148                  x_size,                          # number of clusters in a row
    149149                  y_size,                          # number of clusters in a column
    150                   nprocs,                       # max number of processors per cluster
     150                  nprocs,                          # max number of processors per cluster
    151151                  x_width        = X_WIDTH,        # number of bits encoding x coordinate
    152152                  y_width        = Y_WIDTH,        # number of bits encoding y coordinate
     
    12381238        s += '\n'
    12391239        s += '/{\n'
    1240         s += '  compatible = "tsar, %s";\n' % self.name
     1240        s += '  compatible = "tsar,%s";\n' % self.name
    12411241        s += '  #address-cells = <2>;\n'               # physical address on 64 bits
    12421242        s += '  #size-cells    = <1>;\n'               # segment size on 32 bits
     
    12601260                y       = cluster.y
    12611261                l       = proc.lpid
    1262                 proc_id = (((x << self.y_width) + y) * self.nprocs) + l
     1262                proc_id = (((x << self.y_width) + y) << self.p_width) + l
    12631263                s += '    cpu@%d_%d_%d {\n' %(x,y,l)
    12641264                s += '      device_type = "cpu";\n'
     
    13071307
    13081308                    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'
    13101310                    s += '    interrupt-controller;\n'
    13111311                    s += '    #interrupt-cells = <1>;\n'
     
    13211321
    13221322                    s += '  %s: %s {\n'  % (irq_ctrl_name, irq_ctrl_name)
    1323                     s += '    compatible = "soclib, vci_iopic";\n'
     1323                    s += '    compatible = "soclib,vci_iopic";\n'
    13241324                    s += '    interrupt-controller;\n'
    13251325                    s += '    #interrupt-cells = <1>;\n'
     
    13571357
    13581358                    s += '  tty: tty {\n'
    1359                     s += '    compatible = "soclib, vci_multi_tty";\n'
     1359                    s += '    compatible = "soclib,vci_multi_tty";\n'
    13601360                    s += '    interrupt-parent = <&%s>;\n' % (irq_ctrl_name)
    13611361                    s += '    interrupt = <%d>;\n' % hwi_id
     
    13771377
    13781378                        s += '  bdv: bdv {\n'
    1379                         s += '    compatible = "soclib:vci_blockdevice";\n'
     1379                        s += '    compatible = "soclib,vci_blockdevice";\n'
    13801380                        s += '    interrupt-parent = <&%s>;\n' % (irq_ctrl_name)
    13811381                        s += '    interrupt = <%d>;\n' % hwi_id
     
    14081408        s += '  };\n\n'
    14091409        s += '  cpuclk {\n'
    1410         s += '    compatible = "soclib, mips32_clksrc";\n'
     1410        s += '    compatible = "soclib,mips32_clksrc";\n'
    14111411        s += '    clocks = <&freq@50MHZ>;\n'
    14121412        s += '  };\n'
Note: See TracChangeset for help on using the changeset viewer.