Changeset db4d6de in mainline for contrib/arch/hadlbppp.py


Ignore:
Timestamp:
2009-11-28T16:30:43Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c4702804
Parents:
ba8f8cb (diff), 67392fa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/arch/hadlbppp.py

    rba8f8cb rdb4d6de  
    409409        return result
    410410
    411 def dump_frame(frame, outdir, var, archf):
     411def dump_frame(directed_binds, frame, outdir, var, archf):
    412412        "Dump Behavior Protocol of a given frame"
    413413       
     
    443443                        iface = get_iface(provides['iface'])
    444444                        if (not iface is None):
     445                                binds = directed_binds['%s.%s' % (var, provides['iface'])]
     446                                if (not binds is None):
     447                                        cnt = len(binds)
     448                                else:
     449                                        cnt = 1
     450                               
    445451                                if ('protocol' in iface):
    446                                         protocols.append(extend_bp(outname, iface['protocol'], iface['name']))
     452                                        proto = extend_bp(outname, iface['protocol'], iface['name'])
     453                                        for _ in range(0, cnt):
     454                                                protocols.append(proto)
     455                               
    447456                                for protocol in inherited_protocols(iface):
    448                                         protocols.append(extend_bp(outname, protocol, iface['name']))
     457                                        proto = extend_bp(outname, protocol, iface['name'])
     458                                        for _ in range(0, cnt):
     459                                                protocols.append(proto)
    449460                        else:
    450461                                print "%s: Provided interface '%s' is undefined" % (frame['name'], provides['iface'])
     
    639650                        break
    640651       
     652        directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes))
     653       
    641654        outname = os.path.join(outdir, "%s.archbp" % arch['name'])
    642655        if ((opt_bp) or (opt_ebp)):
     
    648661       
    649662        for inst in insts:
    650                 dump_frame(inst['frame'], outdir, inst['var'], outf)
    651        
    652         directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes))
     663                dump_frame(directed_binds, inst['frame'], outdir, inst['var'], outf)
    653664       
    654665        for dst, src in directed_binds.items():
     
    17271738                outf.write("\tlabel=\"%s\";\n" % arch['name'])
    17281739                outf.write("\tcompound=true;\n")
     1740                outf.write("\tsplines=\"polyline\";\n")
    17291741                outf.write("\tedge [fontsize=8];\n")
    17301742                outf.write("\t\n")
Note: See TracChangeset for help on using the changeset viewer.