Example #1
0
    def __init__(self, filename):
        ## Open file
        if not os.path.isfile(filename):
            raise IOError("Cannot open WDB file %s"%filename)
        
        self.fileid = jwdb.ams_sim_open_read_file(filename)

        if self.fileid < 0:
            raise IOError("Cannot open WDB file %s"%filename)

        if not ord(jwdb.ams_sim_is_jwdb_file(self.fileid)):
            raise IOError("File '%s' is not a JWDB file"%filename)

        self.__analyses = []
        self._load()
Example #2
0
    def __init__(self, filename):
        ## Open file
        if not os.path.isfile(filename):
            raise IOError("Cannot open WDB file %s"%filename)
        
        self.fileid = jwdb.ams_sim_open_read_file(filename)

        if self.fileid < 0:
            raise IOError("Cannot open WDB file %s"%filename)

        if not ord(jwdb.ams_sim_is_jwdb_file(self.fileid)):
            raise IOError("File '%s' is not a JWDB file"%filename)

        self.__analyses = []
        self._load()
Example #3
0
# -*- coding: latin-1 -*-
# Copyright (c) 2008 Pycircuit Development Team
# See LICENSE for details.

import jwdb
#import result

#class JWDBResultSet(result.ResultSet):
#    """The JWDBResultSet class handles a JWDB waveform file used by Mentor Graphics software
#
#    """

jwdb.ams_sim_init_file()
filename = "./test/data/g3rxifvga1s_tb.wdb"
fileid = jwdb.ams_sim_open_read_file(filename)
if fileid < 0:
    raise IOError("Cannot open WDB file %s" % filename)

## Get time and date
date = jwdb.ams_sim_get_creation_date(fileid)
time = jwdb.ams_sim_get_creation_time(fileid)

## Load first simulation results
loadflag = jwdb.ams_sim_load_simu_with_complex(fileid)
while loadflag > 0:
    n = jwdb.ams_sim_get_simulation_parameter_number(fileid)

    ## Read the simulation parameters (temperature, ...)
    params = {}
    for i in range(1, n + 1):
        tmp, name, val = jwdb.ams_sim_get_simulation_parameter_info(fileid, i)
Example #4
0
# Copyright (c) 2008 Pycircuit Development Team
# See LICENSE for details.

import jwdb
#import result



#class JWDBResultSet(result.ResultSet):
#    """The JWDBResultSet class handles a JWDB waveform file used by Mentor Graphics software
#
#    """

jwdb.ams_sim_init_file()
filename = "./test/data/g3rxifvga1s_tb.wdb"
fileid = jwdb.ams_sim_open_read_file(filename)
if fileid < 0:
    raise IOError("Cannot open WDB file %s"%filename)

## Get time and date
date = jwdb.ams_sim_get_creation_date(fileid)
time = jwdb.ams_sim_get_creation_time(fileid)

## Load first simulation results
loadflag = jwdb.ams_sim_load_simu_with_complex(fileid)
while loadflag > 0:
    n = jwdb.ams_sim_get_simulation_parameter_number(fileid)

    ## Read the simulation parameters (temperature, ...)
    params = {}
    for i in range(1,n+1):