Commit Graph

140 Commits

Author SHA1 Message Date
The Coriolis Project 7abcd87d96 PYTHON libraries missing for linking.
lineno not renamed in scanner.
2011-02-09 16:42:59 +00:00
Jean-Paul Chaput f5cedcdece * <All Tools>/CMakeLists.txt:
- Change: Added versioning to library.
2011-02-02 22:48:30 +00:00
Jean-Paul Chaput 9eb7b14bc5 * <All Tools>/CMakeLists.txt:
- Bug: During the packaging stage, DESTDIR must be appended to the
        pathes prepended to CMAKE_MODULE_PATH.
2011-02-02 10:43:02 +00:00
Damien Dupuis edd711dd9b Thanks to the help of Jean-Paul may python installation is alive !
- Updated Boost.Python port for OpenChams

  - Updated drive & aprse examples in Python
2010-11-22 14:44:27 +00:00
Damien Dupuis ec97d7f369 Thanks to the help of Jean-Paul may python installation is alive !
- Updated Boost.Python port for OpenChams

  - Updated drive & aprse examples in Python
2010-11-22 14:44:17 +00:00
Damien Dupuis 501ac35b2b !! Adding support for subCircuits !!!
* New <subCircuitsPathes> section in <circuit> that lists the pathes that contain subCircuits xml files

    * New Device object that inherits from simplified Instance object.
        - Instance has a name, a model, some connectors and optionnal parameters
        - Device has the same attributes plus mosType, sourceBulkConnected and transistors

    * Updated readFromFile and wrtieToFile methods to support these modifications

    * Updated parse and drive examples to support these modifications
        - Note: only C++ examples has been updated since my boost.python environment is actually totaly broken

    * New buffer.xml example that uses subCircuits.
2010-11-22 10:22:04 +00:00
Damien Dupuis 5887a0b59f !! Adding support for subCircuits !!!
* New <subCircuitsPathes> section in <circuit> that lists the pathes that contain subCircuits xml files

    * New Device object that inherits from simplified Instance object.
        - Instance has a name, a model, some connectors and optionnal parameters
        - Device has the same attributes plus mosType, sourceBulkConnected and transistors

    * Updated readFromFile and wrtieToFile methods to support these modifications

    * Updated parse and drive examples to support these modifications
        - Note: only C++ examples has been updated since my boost.python environment is actually totaly broken

    * New buffer.xml example that uses subCircuits.
2010-11-22 10:21:52 +00:00
Damien Dupuis 3c2062bdd0 Version property for tehcnology tag is not mandatory. 2010-11-18 15:13:56 +00:00
Damien Dupuis 928b3a0a2a Updated examples 2010-11-17 15:39:03 +00:00
Damien Dupuis 48407432c9 New version attribute in Techno object (it is parsed and drived)
Recently adds have been adjusted in PyDtr.py

    Examples have been updated (c++ is tested, python fails on my Mac due to a strange python2.6.6 behavior I have to check this)
2010-11-17 15:09:59 +00:00
Damien Dupuis 9e5b5226d9 Adding setName & setUnit methods on Techno object.
getRule method of Techno does not throw exception anymore if rule is not found : a NULL Rule* is returned instead.

    but getValue methods throw exception if rule is not found
2010-11-16 15:33:42 +00:00
Jean-Paul Chaput a9d0783026 * ./vslsisapd/src/configuration:
- New: In Parameter, adds a priority for all the mutators method calls.
        Allows to sets values according to where they came from instead of
        only taking the last change. This is needed because we cannot ensure
        that the last sets value is the truly wanted one. Four priorities
        are avalaibles (in increasing order):
          1. - ApplicationBuiltin (the default).
          2. - ConfigurationFile  (currently: the XML parser).
          3. - CommandLine        (supplied by the command line, see Unicorn).
          4. - Interactive        (changed through ConfigurationWidget).
    - New: In ConfigurationWidget, hideTabs()/showTabs() to explicitly select
        which tabs are displayeds or hidden. Two modes are avalaibles:
        Incremental and Exact. In Exact mode only hidden tabs are hiddens and
        only shown tabs are shown.
    - Change: In ConfigurationWidget/ConfTabWidget/ParameterWidget, no longer
        relies on the Widget parent/child tree to find the ConfigurationWidget
        from a ParameterWidget (consequence of the hide/show capability which
        is implemented by cutting off hidden tabs). Adds an explicit attribute.
2010-11-16 13:51:14 +00:00
Damien Dupuis 7506bae16e Adding support for unspecified values (saving NaN)
Adding setValue && setRef methods on Rules

    writeToFile method now produce an easy to read file thanks to iomanip.stw() method
2010-11-16 11:24:26 +00:00
Sophie Belloeil 578877d8d7 VlsiSAPD is now G++ version 4.4 compliant ! 2010-11-02 11:02:44 +00:00
Damien Dupuis ab4be8a22b As Farakh asked me : Operator name is now always converted to upper case before save. 2010-10-28 20:56:08 +00:00
Sophie Belloeil 81d4d455bd - Improvment of parsing examples with examples of maps and vectors.
- No more pprint method in Python, now __repr__method encapsuling new c++ method getString.
2010-10-15 11:13:53 +00:00
Sophie Belloeil 2bc62b400b - Python examples
- forgotten PyLiberty.cpp
2010-10-14 11:06:22 +00:00
Sophie Belloeil 40a6d2e0da Python wrapper. (without example it seems ?) 2010-10-14 11:01:16 +00:00
Damien Dupuis ec979ff2b8 Need to to take into account the new signals confOk() and needRestart() 2010-10-14 09:32:53 +00:00
Jean-Paul Chaput dbb56bbc50 Forgot to comment out debug lines. 2010-10-14 09:23:21 +00:00
Jean-Paul Chaput 0cd5cc498d * ./vslsisapd/src/configuration:
- Change: In ConfigurationWidget, two separate signals for "confOk" and
        "needRestart", rewrite of the "apply clicked" method.
    - Bug: In LogEntry::restore(), uses correct flags on Paramater::setString().
2010-10-14 09:02:24 +00:00
Jean-Paul Chaput 45f9dcc394 * ./vslsisapd/src/configuration:
- Change: Internal rewrite of the check function, now named _doChange()
        and shared by all mutators.
    - Change: Logs now contains entries with the last correct value and are
        able to restore that value.
    - Change: LogWidget simplificated, only one message label. But now two
        buttons (Continue/Cancel).
    - Change: In ConfigurationWidget, two steps validation "mustExist" then
        "needRestart".
2010-10-13 21:44:50 +00:00
Sophie Belloeil 3db947d302 Useful getters. 2010-10-11 11:45:38 +00:00
Sophie Belloeil 6660ae8663 sxlib.lib example becomes testParse.lib 2010-10-08 11:47:06 +00:00
Damien Dupuis 96b084a80d Need to install the sxlib.lib example 2010-10-08 11:31:37 +00:00
Sophie Belloeil 7f878e6c3c New liberty parser / driver :
- only c++ (python will follow)
      - parse and drive examples
2010-10-08 11:22:59 +00:00
Jean-Paul Chaput 446ccd6d58 Discouple "clicked()" signal from apply button to close
of the standalone dialog.
2010-10-08 09:43:26 +00:00
Damien Dupuis 4dddfbba98 Adding statustip on button in configurationWidget and save button also save in memory 2010-10-08 08:37:42 +00:00
Damien Dupuis 4b62ea91d2 Missing Boost_LIBRARIES in target_link_libraries for libconfiguration (do not compile on mac osx if missing) 2010-10-08 08:36:19 +00:00
Damien Dupuis 40be8dc456 parseOpenChams can now parse any file or default inverter.xml file. 2010-10-08 07:52:15 +00:00
Jean-Paul Chaput 9f0fb0b467 * ./vslsisapd/src/configuration:
- New: Attributes "needRestart", "mustExist", "isFile" and "isPath".
    - New: Display a warning message when a parameter with mustExist or
        needRestart is modificated.
    - New: In ConfigurationWidget, method selectTab() to select the current
        displayed tab.
    - Change: In Configuration::writeToFile() and writeToStream(), adds a
        third parameter telling which parameter to save. It's a semicolon
        separated list of parameter head id. Example: "kite;mauka".
2010-10-06 22:03:35 +00:00
Damien Dupuis 1155d95365 Bug correction on mac osx :
based on libxml2 documentation : xmlCleanupParser() function must not be called several times
2010-09-21 09:58:53 +00:00
Damien Dupuis 136e5e90c7 Adding new ConfigurationDialog widget (QDialog) and buildDialog method on configuration.
This is very useful when using configuration as a standalone widget
2010-09-20 10:48:13 +00:00
Jean-Paul Chaput 1a33586cf9 * ./vslsisapd/src/configuration:
- Bug: In FilePathEdit, do not sets the file/path if the Dialog has been
        cancelled.
    - Bug: In FilePathEdit, do not uses the native dialog (called by static
        methods) when under Linux/GtkStyle as the native widget seems to be
        badly linked (bug in GtkStyle?).
2010-09-16 20:41:39 +00:00
Jean-Paul Chaput 1c572fe188 * ./vslsisapd/src/configuration:
- Bug: In Configuration parser XML zero status indicate no errors...
2010-09-16 14:43:41 +00:00
Jean-Paul Chaput 7b1fd28df0 * ./vslsisapd/src/configuration:
- New: Integrate the FilePathEdit widget, courtesy of D. Dupuis.
    - Bug: In ConfEditorMain, new boolean switch to allow disable of GtkStyle
        which make FilePathEdit to coredump (Linux feature only!).
2010-09-16 13:26:36 +00:00
Jean-Paul Chaput c5427574a8 * ./vslsisapd/src/configuration:
- New: In Configuration, write methods are ables to completly drive the
        XML file (values & layout), selectable through flags.
    - New: In ConfigurationWidget, the Apply button is now outside the
        tabs. Also adds two modes: Embedded & StandAlone with different sets
        of buttons.
2010-09-15 21:46:42 +00:00
Damien Dupuis 5876530c64 In sizing section : operator property is always converted to upper case (since opsim 'needs' it) 2010-09-09 08:03:31 +00:00
Damien Dupuis 73d8035ad8 Adding code examples for openChams parser/driver in c++/python. 2010-09-02 10:31:55 +00:00
Damien Dupuis 76820567a7 Adding support for Layout section in openChams parser/driver 2010-09-02 10:30:02 +00:00
Damien Dupuis b120048eb3 Missing Boost Libraries under mac osx (snow leo) 2010-08-23 12:54:53 +00:00
Jean-Paul Chaput dd405e619f * ./vlsisapd/src/bookshelf:
- New: A Bookshelf autonomic parser/driver. Made to parse and manipulate
        the ISPD04 benchmarks (ibm 01-18 series). Currently parses/drives
        .nodes, .nets, .scl, .pl, the .wts is not implemented yet.
2010-08-18 20:35:50 +00:00
Jean-Paul Chaput 32c864b996 * ./vlsisapd/src/configuration:
- Bug: In Configuration::writeToStream(), percentage parameters values where
        incorrectly written (divideds by 100).
    - Bug: In ConfEditorMain, read the "dot" configuration file *after* the
        system one.
2010-07-30 16:39:57 +00:00
Jean-Paul Chaput 73fa2f5f7c * All Main Python Modules:
- Change: New problem identified with the Python modules: each module seems
        to be built as a complete binary, so all the static C++ initializers are
        allocated in each module. In particular the C++ tree inheritance is built
        for *each* module so we cannot longer uses the typeid() comparisons
        across modules... It was used by boost::program_options to perform is
        casts with boost::any and was starting throwing exceptions because of
        bad casts. program_option was first initialized in "configuration"
        first included by PyViewer then in PyCRL (see Utilities.cpp).
          A first solution is to re-order the import of Python modules in
        stratus1/st_model so that CRL is imported first.
          The second is to not not link "configuration" with boost::program_option
        as only the binary vlsisapd-conf-editor needs it.
          That is a serious problem of which we must be aware and can cause further
        strange behaviors.
          Debug code used to diagnostic has been kept commented in the sources a
        it may be needed again :-(
          This behavior do not affect our singletons because they are part of
        dynamic libraries that seems to be correctly shared between the various
        Python modules.

  * ./vlsisapd:
    - Change: In Configuration CMakeLists.txt, add Boost_LIBRARIES only on the
        target_link_libraries() of the binary, not the libraries, as they are
        not needed there and cause later trouble.
2010-07-17 10:30:35 +00:00
Damien Dupuis f6e62a17f8 Adding implict conversion from std::string to Name, to simplify python script 2010-07-15 14:09:39 +00:00
Jean-Paul Chaput d1f225d4bf * All Tools:
- Change: Using more Bootstrap macros. Simpler way of setting the
        CMAKE_MODULE_PATH.
2010-07-15 14:09:17 +00:00
Damien Dupuis a5d98eca47 CMakeLists cleaning : -D__PYTHON_MODULE__=1 is absolutely not needed when using boost::python (it is specific to isobar) 2010-07-15 11:15:47 +00:00
Jean-Paul Chaput de5dd02c6f * All Tools:
- Change: Switch from "goodies" to "bootstrap".
2010-07-14 19:52:08 +00:00
Damien Dupuis 8fca8eb26e Python module are no more called pyMODULE.so but MODULE.so
Since in CMakeLists.txt there is already a module target (for c++ library) and some file systems are not case sensitive, the target is still pyMODULE but the OUTPUT_NAME property is set to MODULE 

    I've updated all the example python scripts.
2010-07-14 12:11:00 +00:00
Damien Dupuis 91a82cdbfe Bug correction : when creating a python module do not include .cpp files that are not python definition since corresponding .o files will be added twice (as .o and in lib.so)
This has been tested on Mac os 10.6 and linux RHEL 32bits.
2010-07-14 09:21:39 +00:00