OpenCores
URL https://opencores.org/ocsvn/ion/ion/trunk

Subversion Repositories ion

[/] [ion/] [trunk/] [tools/] [build_pkg/] [build_pkg.py] - Diff between revs 220 and 232

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 220 Rev 232
Line 239... Line 239...
    template_dir_name = "../templates"
    template_dir_name = "../templates"
    vhdl_filename = "obj_code_pkg_template.vhdl"
    vhdl_filename = "obj_code_pkg_template.vhdl"
    target_filename = None
    target_filename = None
 
 
    package_params = {
    package_params = {
        'bram_size': 1024,
        'boot_bram_size': 1024,
        'xram_size': 0,
        'xram_size': 0,
        'flash_size': 0,
        'flash_size': 0,
        'trigger_address': None,
        'trigger_address': None,
        'indent': 2,
        'indent': 2,
        'project_name': "<anonymous>",
        'project_name': "<anonymous>",
Line 305... Line 305...
 
 
    # Read all the binary data blocks
    # Read all the binary data blocks
    for block in blocks:
    for block in blocks:
        if block.has_key('bin_filename'):
        if block.has_key('bin_filename'):
            if block['bin_filename']:
            if block['bin_filename']:
                (xcode, _, _, top) = read_bin_file(block['bin_filename']);
                (xcode, size, _, top) = read_bin_file(block['bin_filename']);
                block['data'] = xcode
                block['data'] = xcode
                block['top'] = top
                block['top'] = size
        else:
        else:
            # Named block is empty
            # Named block is empty
            block['data'] = []
            block['data'] = []
            block['top'] = 0
            block['top'] = 0
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.