├── .gitignore ├── COPYING ├── INSTALL ├── LICENSE ├── Makefile.am ├── Makefile.in ├── README ├── README.debian ├── aclocal.m4 ├── admin ├── mytags └── packages │ └── awb ├── aux-scripts ├── compile ├── config.guess ├── config.sub ├── depcomp ├── install-sh ├── ltmain.sh ├── missing └── mkinstalldirs ├── base ├── README ├── asim_doxy_model.dox ├── config.cpp ├── config.h ├── param.cpp └── param.h ├── changes ├── configure ├── configure.in ├── debian ├── README.Debian ├── awb-bin.dirs ├── awb-bin.docs ├── awb-bin.examples ├── awb-bin.mime ├── awb-bin.postinst ├── awb-bin.postrm ├── awb-bin.preinst ├── awb-bin.prerm ├── awb-bin.sharedmimeinfo ├── awb-doc.docs ├── awb-doc.install ├── awb-version.dirs ├── changelog ├── compat ├── control ├── copyright └── rules ├── etc ├── asim.pack ├── asimrc ├── awb-shell └── repositories.d │ ├── README │ ├── airblue.pack │ ├── bdn-powerpc.pack │ ├── bluessd.pack │ ├── bsv-libraries.pack │ ├── fast.pack │ ├── h264.pack │ ├── hasim.pack │ ├── leap-multifpga.pack │ ├── leap.pack │ ├── mit-6.375.pack │ ├── mit-6.s078.pack │ ├── ofdm.pack │ ├── openx86.pack │ ├── platform-acp.pack │ ├── platform-usrp.pack │ ├── smips.pack │ └── spatial-cnn.pack ├── include └── config.h.in ├── lib ├── Makefile.am ├── Makefile.in ├── README └── libawb │ ├── Makefile.am │ ├── Makefile.in │ ├── benchmark.cpp │ ├── benchmark.h │ ├── benchmark_runner.cpp │ ├── benchmark_runner.h │ ├── doxygen.config │ ├── inifile.cpp │ ├── inifile.h │ ├── model.cpp │ ├── model.h │ ├── model_builder.cpp │ ├── model_builder.h │ ├── modparam.cpp │ ├── modparam.h │ ├── module.cpp │ ├── module.h │ ├── uniondir.cpp │ ├── uniondir.h │ ├── util.cpp │ ├── util.h │ ├── workspace.cpp │ └── workspace.h ├── libperl ├── Asim │ ├── MANIFEST │ ├── Makefile.PL │ ├── README │ └── lib │ │ ├── Asim.pm │ │ ├── Asim.pm.in │ │ └── Asim │ │ ├── Base.pm │ │ ├── Batch.pm │ │ ├── Batch │ │ ├── Base.pm │ │ ├── Condor.pm │ │ ├── List.pm │ │ ├── Local.pm │ │ ├── Netbatch.pm │ │ ├── NetbatchFeeder.pm │ │ └── NetbatchRemote.pm │ │ ├── Benchmark.pm │ │ ├── Benchmark │ │ └── DB.pm │ │ ├── BuildTree.pm │ │ ├── BuildTree │ │ └── Configuration.pm │ │ ├── Bundle.pm │ │ ├── Edit.pm │ │ ├── Edit │ │ ├── Interactive.pm │ │ └── Noninteractive.pm │ │ ├── Fork.pm │ │ ├── GenCFG.pm │ │ ├── GenCFG │ │ └── Auto.pm │ │ ├── Inifile.pm │ │ ├── Lock.pm │ │ ├── Model.pm │ │ ├── Model │ │ ├── DB.pm │ │ ├── Template.pm │ │ └── Update.pm │ │ ├── Module.pm │ │ ├── Module │ │ ├── Attribute.pm │ │ ├── DB.pm │ │ ├── Param.pm │ │ ├── Source.pm │ │ ├── SourceList.pm │ │ └── Template.pm │ │ ├── Nightly.pm │ │ ├── Package.pm │ │ ├── Package │ │ ├── BitKeeper.pm │ │ ├── Branch.pm │ │ ├── Commit.pm │ │ ├── Copy.pm │ │ ├── Cvs.pm │ │ ├── DB.pm │ │ ├── Git.pm │ │ ├── Hg.pm │ │ ├── P4.pm │ │ ├── Stats.pm │ │ ├── Svn.pm │ │ ├── Template.pm │ │ └── Util.pm │ │ ├── Packfile.pm │ │ ├── PlotStats.pm │ │ ├── Rcfile.pm │ │ ├── Regression.pm │ │ ├── Repository.pm │ │ ├── Repository │ │ ├── BitKeeper.pm │ │ ├── Copy.pm │ │ ├── Cvs.pm │ │ ├── DB.pm │ │ ├── Git.pm │ │ ├── Hg.pm │ │ ├── P4.pm │ │ ├── Public.pm │ │ └── Svn.pm │ │ ├── Signal.pm │ │ ├── SshAgent.pm │ │ ├── Stats.pm │ │ ├── Stats │ │ ├── ToText.pm │ │ └── ToText │ │ │ └── LongNames.pm │ │ ├── UnionDir.pm │ │ ├── Util.pm │ │ ├── Workspace.pm │ │ ├── Workspace │ │ └── Template.pm │ │ └── Xaction.pm ├── AsimShell │ ├── MANIFEST │ ├── Makefile.PL │ ├── README │ └── lib │ │ ├── AsimShell.pm │ │ └── AsimShell │ │ ├── Commands.pm │ │ ├── Completion.pm │ │ └── Help.pm ├── Benchmarks │ ├── MANIFEST │ ├── Makefile.PL │ ├── README │ └── lib │ │ ├── Benchmarks.pm │ │ └── Benchmarks │ │ ├── CPU2000_data.pm │ │ └── CPU2006_data.pm ├── Makefile.am ├── Makefile.in ├── PinPoints │ ├── MANIFEST │ ├── Makefile.PL │ ├── README │ └── lib │ │ └── PinPoints.pm ├── PlotShell │ ├── MANIFEST │ ├── Makefile.PL │ ├── README │ └── lib │ │ ├── PlotShell.pm │ │ └── PlotShell │ │ ├── Commands.pm │ │ └── Help.pm └── README ├── m4 ├── libtool.m4 ├── ltoptions.m4 ├── ltsugar.m4 ├── ltversion.m4 └── lt~obsolete.m4 ├── modules ├── controller │ ├── classic │ │ ├── args.cpp │ │ ├── awb-notcl.awb │ │ ├── awb-notcl.cpp │ │ ├── awb-notcl.h │ │ ├── awb.awb │ │ ├── awb.cpp │ │ ├── awb.h │ │ ├── awb_no_wb.awb │ │ ├── awb_no_wb.cpp │ │ ├── awb_taratiTclBeamer.awb │ │ ├── awb_taratiTclBeamer.cpp │ │ ├── control-notcl.cpp │ │ ├── control-notcl.h │ │ ├── control.cpp │ │ ├── control.h │ │ ├── controller-notcl.awb │ │ ├── controller_classic.awb │ │ ├── controller_classic_alg.awb │ │ ├── controller_classic_alg.h │ │ ├── controller_no_wb.awb │ │ ├── main.cpp │ │ └── schedule.cpp │ ├── minimal │ │ ├── args_mini.cpp │ │ ├── args_mini.h │ │ ├── controller_mini.awb │ │ ├── controller_mini.h │ │ └── main_mini.cpp │ ├── null │ │ ├── control.h │ │ └── null_controller.awb │ └── workbench │ │ ├── no-tcl │ │ ├── wb-notcl.awb │ │ ├── wb-notcl.cpp │ │ └── wb-notcl.h │ │ └── simple │ │ ├── Makefile.template │ │ ├── makewb.pl │ │ ├── simpleWb.awb │ │ ├── simpleWb.h │ │ └── simpleWb.tcl ├── dral_api │ ├── classic_dral_api_nullptv.awb │ ├── classic_dral_api_ptv.awb │ ├── classic_dral_api_ptv_bk.awb │ ├── classic_dral_api_ptv_gold.awb │ └── x86_dral_api.awb ├── feeders │ └── inst │ │ └── interface │ │ └── null │ │ ├── instfeedernull.awb │ │ └── instfeedernull.h ├── isa │ └── utilities │ │ ├── bbreport │ │ ├── bbreport.awb │ │ ├── bbreport.cpp │ │ └── bbreport.h │ │ ├── dependency │ │ ├── dep_obj.awb │ │ ├── dep_obj.cpp │ │ ├── dep_obj.h │ │ ├── generic_dep_state.awb │ │ ├── generic_dep_state.cpp │ │ └── generic_dep_state.h │ │ ├── instprofile │ │ ├── instprofile.awb │ │ ├── instprofile.cpp │ │ ├── instprofile.h │ │ └── perinst_stats.h │ │ ├── utils.awb │ │ └── utils.h ├── model.awb ├── model │ ├── shared_library_model │ │ ├── SharedLib.awb │ │ └── SharedLib.template │ └── test_model │ │ ├── test_board │ │ ├── test_board.awb │ │ ├── test_board.cpp │ │ └── test_board.h │ │ ├── test_model.awb │ │ └── test_model.cpp ├── null_package.awb ├── power_model │ ├── null_power_model.awb │ └── null_power_model.h ├── system │ ├── ape_system │ │ ├── ape.awb │ │ ├── ape.cpp │ │ ├── ape.h │ │ ├── apeinst.awb │ │ ├── apeinst.cpp │ │ └── apeinst.h │ ├── basesystem_classic │ │ ├── basesystem_classic.awb │ │ ├── basesystem_classic.cpp │ │ └── basesystem_classic.h │ ├── multi_chip_common_system.awb │ ├── multi_chip_common_system.cpp │ ├── multi_chip_common_system.h │ ├── multi_chip_common_system_v2.awb │ ├── null_chip.awb │ ├── null_chip.cpp │ ├── null_chip.h │ ├── single_chip_clockserver_system.awb │ ├── single_chip_clockserver_system.cpp │ ├── single_chip_clockserver_system.h │ ├── single_chip_clockserver_system_v2.awb │ ├── single_chip_common_system.awb │ ├── single_chip_common_system.cpp │ ├── single_chip_common_system.h │ ├── single_chip_common_system_v2.awb │ └── system_minimal │ │ ├── null-iaddr.awb │ │ ├── null-iaddr.cpp │ │ ├── null-iaddr.h │ │ ├── system_mini.awb │ │ ├── system_mini.cpp │ │ └── system_mini.h ├── tarati │ ├── asimTarati │ │ ├── README │ │ ├── taratiGlobalState.awb │ │ ├── taratiGlobalState.cpp │ │ ├── taratiGlobalState.h │ │ ├── taratiStats.awb │ │ ├── taratiStats.cpp │ │ ├── taratiStats.h │ │ ├── taratiSystem.awb │ │ ├── taratiSystem.cpp │ │ ├── taratiSystem.h │ │ ├── taratiSystem_Null.awb │ │ ├── taratiSystem_Null.h │ │ ├── taratiTclBeamer.awb │ │ ├── taratiTclBeamer.cpp │ │ ├── taratiTclBeamer.h │ │ ├── taratiTimeScheduler.awb │ │ ├── taratiTimeScheduler.cpp │ │ └── taratiTimeScheduler.h │ ├── tarati │ │ ├── README │ │ ├── tarati.awb │ │ ├── taratiMethod.cpp │ │ ├── taratiMethod.h │ │ ├── taratiServer.cpp │ │ ├── taratiServer.h │ │ ├── taratiServer_Builtin.cpp │ │ ├── taratiServer_Builtin.h │ │ ├── taratiService.cpp │ │ ├── taratiService.h │ │ ├── taratiUtil.cpp │ │ ├── taratiUtil.h │ │ └── tarati_null.awb │ └── xmlrpc │ │ ├── Makefile.template │ │ ├── README │ │ ├── TclTalk.cpp │ │ ├── atalk.cpp │ │ ├── taratiClient.cpp │ │ ├── taratiClient.h │ │ ├── xmlrpc++ │ │ ├── COPYING │ │ ├── Makefile │ │ ├── README.html │ │ ├── XmlRpc.sln │ │ ├── XmlRpc.vcproj │ │ ├── src │ │ │ ├── Doxyfile │ │ │ ├── XmlRpc.h │ │ │ ├── XmlRpcClient.cpp │ │ │ ├── XmlRpcClient.h │ │ │ ├── XmlRpcDispatch.cpp │ │ │ ├── XmlRpcDispatch.h │ │ │ ├── XmlRpcException.h │ │ │ ├── XmlRpcServer.cpp │ │ │ ├── XmlRpcServer.h │ │ │ ├── XmlRpcServerConnection.cpp │ │ │ ├── XmlRpcServerConnection.h │ │ │ ├── XmlRpcServerMethod.cpp │ │ │ ├── XmlRpcServerMethod.h │ │ │ ├── XmlRpcSocket.cpp │ │ │ ├── XmlRpcSocket.h │ │ │ ├── XmlRpcSource.cpp │ │ │ ├── XmlRpcSource.h │ │ │ ├── XmlRpcUtil.cpp │ │ │ ├── XmlRpcUtil.h │ │ │ ├── XmlRpcValue.cpp │ │ │ ├── XmlRpcValue.h │ │ │ └── base64.h │ │ ├── test │ │ │ ├── FileClient.cpp │ │ │ ├── FileClient.dsp │ │ │ ├── FileClient.vcproj │ │ │ ├── HelloClient.cpp │ │ │ ├── HelloClient.dsp │ │ │ ├── HelloClient.vcproj │ │ │ ├── HelloServer.cpp │ │ │ ├── HelloServer.dsp │ │ │ ├── HelloServer.vcproj │ │ │ ├── Makefile │ │ │ ├── TestBase64Client.cpp │ │ │ ├── TestBase64Client.dsp │ │ │ ├── TestBase64Client.vcproj │ │ │ ├── TestBase64Server.cpp │ │ │ ├── TestBase64Server.dsp │ │ │ ├── TestBase64Server.vcproj │ │ │ ├── TestValues.cpp │ │ │ ├── TestValues.dsp │ │ │ ├── TestValues.vcproj │ │ │ ├── TestValuesWin32.cpp │ │ │ ├── TestXml.cpp │ │ │ ├── TestXml.dsp │ │ │ ├── TestXml.vcproj │ │ │ ├── Validator.cpp │ │ │ ├── Validator.dsp │ │ │ ├── Validator.vcproj │ │ │ ├── arrayOfStructsTest.xml │ │ │ ├── countTheEntities.xml │ │ │ ├── easyStructTest.xml │ │ │ ├── echo.xml │ │ │ └── echoStructTest.xml │ │ ├── xmlrpc.dsp │ │ └── xmlrpc.dsw │ │ ├── xmlrpc.awb │ │ └── xmlrpc_null.awb └── warmup │ ├── dante_do_warmup.cpp │ ├── dante_warmup.awb │ ├── do_warmup.cpp │ ├── null_warmup_manager.awb │ ├── null_warmup_manager.h │ ├── warmup_instrs.awb │ ├── warmup_instrs.cpp │ └── warmup_instrs.h ├── reconf_all ├── scripts └── install-rcfile ├── share ├── apm-edit.desktop ├── apm-edit.svg ├── awb.config.template.in ├── awb.desktop └── awb.svg └── tools ├── Makefile.am ├── Makefile.in ├── README ├── awb ├── Makefile.am ├── Makefile.in ├── amc │ ├── Makefile.am │ ├── Makefile.in │ ├── amc.cpp │ ├── amc.h │ └── doxygen.config ├── apm-edit │ ├── Makefile.am │ ├── Makefile.in │ ├── apm_edit.pm │ ├── apm_edit.qrc │ ├── apm_edit.ui │ ├── apm_edit.ui.patch │ ├── apm_edit_about.pm │ ├── apm_edit_about.ui │ ├── apm_edit_head.pl │ ├── apm_edit_main.pl │ ├── apm_edit_properties.pm │ ├── apm_edit_properties.ui │ ├── images │ │ ├── check.png │ │ ├── editcopy.png │ │ ├── editcut.png │ │ ├── editpaste.png │ │ ├── filenew.png │ │ ├── fileopen.png │ │ ├── filesave.png │ │ ├── module.png │ │ ├── module_current.png │ │ ├── module_default.png │ │ ├── module_missing.png │ │ ├── print.png │ │ ├── redo.png │ │ ├── searchfind.png │ │ ├── submodel.png │ │ ├── submodel_blue.png │ │ ├── submodel_red.png │ │ ├── submodel_yellow.png │ │ ├── undo.png │ │ └── whatsthis.png │ ├── runlog.pm │ └── runlog.ui ├── apm-find-replace │ ├── Makefile.am │ ├── Makefile.in │ ├── apm_find_replace.pm │ ├── apm_find_replace.ui │ ├── apm_find_replace_head.pl │ └── apm_find_replace_main.pl ├── awb-resolver │ ├── Makefile.am │ ├── Makefile.in │ ├── awb-resolver.cpp │ ├── awb-resolver.h │ └── doxygen.config ├── awb-wizard │ ├── Makefile.am │ ├── Makefile.in │ ├── awb_wizard.pm │ ├── awb_wizard.qrc │ ├── awb_wizard.ui │ ├── awb_wizard_about.pm │ ├── awb_wizard_about.ui │ ├── awb_wizard_head.pl │ ├── awb_wizard_main.pl │ ├── awb_wizard_write.pl │ └── images │ │ ├── filebuild.png │ │ ├── filenew.png │ │ ├── fileopen.png │ │ ├── filesave.png │ │ └── whatsthis.png └── awb │ ├── Makefile.am │ ├── Makefile.in │ ├── awb_about.pm │ ├── awb_about.ui │ ├── awb_dialog.pm │ ├── awb_dialog.ui │ ├── awb_head.pl │ ├── awb_main.pl │ ├── awb_runlog.pm │ ├── awb_runlog.ui │ └── awb_util.pm ├── awb_qt3 ├── Makefile.am ├── Makefile.in ├── amc │ ├── .gdbinit │ ├── Makefile.am │ ├── Makefile.in │ ├── amc.cpp │ ├── amc.h │ └── doxygen.config ├── apm-edit │ ├── Makefile.am │ ├── Makefile.in │ ├── apm-edit.pro │ ├── apm_edit.ui │ ├── apm_edit.ui.h │ ├── apm_edit.ui.patch │ ├── apm_edit_about.ui │ ├── apm_edit_head.pl │ ├── apm_edit_main.pl │ ├── apm_edit_pixmap.pl │ ├── apm_edit_properties.ui │ ├── apm_edit_properties.ui.h │ ├── colored_list_view_item.pm │ ├── fix-ui │ ├── images │ │ ├── check.png │ │ ├── editcopy.png │ │ ├── editcut.png │ │ ├── editpaste.png │ │ ├── filenew.png │ │ ├── fileopen.png │ │ ├── filesave.png │ │ ├── module.png │ │ ├── module_current.png │ │ ├── module_default.png │ │ ├── module_missing.png │ │ ├── print.png │ │ ├── redo.png │ │ ├── searchfind.png │ │ ├── submodel.png │ │ ├── submodel_blue.png │ │ ├── submodel_red.png │ │ ├── submodel_yellow.png │ │ ├── undo.png │ │ └── whatsthis.png │ ├── runlog.ui │ └── runlog.ui.h ├── apm-find-replace │ ├── Makefile.am │ ├── Makefile.in │ ├── apm_find_replace.ui │ ├── apm_find_replace.ui.h │ ├── apm_find_replace_head.pl │ └── apm_find_replace_main.pl ├── awb-resolver │ ├── Makefile.am │ ├── Makefile.in │ ├── awb-resolver.cpp │ ├── awb-resolver.h │ └── doxygen.config ├── awb-wizard │ ├── Makefile.am │ ├── Makefile.in │ ├── awb-wizard.db │ ├── awb-wizard.pro │ ├── awb_wizard.ui │ ├── awb_wizard.ui.h │ ├── awb_wizard_about.ui │ ├── awb_wizard_head.pl │ ├── awb_wizard_main.pl │ ├── awb_wizard_write.pl │ └── images │ │ ├── filebuild.png │ │ ├── filenew.png │ │ ├── fileopen.png │ │ ├── filesave.png │ │ └── whatsthis.png └── awb2 │ ├── Makefile.am │ ├── Makefile.in │ ├── awb.pro │ ├── awb_about.ui │ ├── awb_dialog.ui │ ├── awb_dialog.ui.h │ ├── awb_head.pl │ ├── awb_main.pl │ ├── awb_runlog.ui │ ├── awb_runlog.ui.h │ ├── awb_util.pm │ └── colored_list_view_item.pm ├── libploticus ├── adjust_page ├── adjust_yaxis ├── bar.script ├── box.script ├── line.script └── spacing_var └── scripts ├── Makefile.am ├── Makefile.in ├── README ├── apm-fixup ├── apm-link ├── asim-batch ├── asim-benchmark ├── asim-compare-stats ├── asim-run ├── asim-shell ├── asim.R ├── asim_filter ├── asimstarter.in ├── awb-batch ├── awb-benchmark ├── awb-pkg-config.in ├── awb-run ├── awb-shell ├── awbset ├── bm └── tracecache │ ├── multi-tlist.cfx │ ├── multi.cfx │ ├── multi.setup │ ├── multi_same.cfx │ ├── run-with-params.cfx │ ├── single-check-param.cfx │ ├── single-check-param.run │ ├── single-check-param.setup │ ├── single-check-stat-range.cfx │ ├── single-check-stat-range.run │ ├── single-check-stat-range.setup │ ├── single-with-params.cfx │ └── single.cfx ├── create-benchmark-file ├── cvt-config-to-apm ├── doxygen └── bsv.filter ├── fetch-trace ├── gen-spec95-config ├── grab.R ├── grab.pl ├── model-browse ├── model-coverage ├── netbatch-pre ├── param.R ├── plot-shell ├── regression.cleanup ├── regression.launcher ├── regression.verifier ├── stat-to-text ├── sum-simpoints ├── sum-unweighted ├── summarize-stats ├── tlist2bm.pl └── xcheck /README: -------------------------------------------------------------------------------- 1 | 2 | 3 | This is the core libraries and utilites for using the Asim modeling 4 | infrastructure. 5 | 6 | For installation information see the INSTALL file. 7 | 8 | For developers: 9 | 10 | To upgrade to a new version of the autoconf tools: 11 | 12 | # autoreconf -f -i 13 | 14 | To reconfigure the autoconfigure script use the following: 15 | 16 | # aclocal 17 | # autoheader 18 | # automake -a -c --foreign 19 | # autoconf 20 | # ./configure 21 | -------------------------------------------------------------------------------- /admin/packages/awb: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | [Global] 20 | Description=Architects Workbench 21 | CSN=CSN-awb-573 22 | Name=awb 23 | Tag=v14.08 24 | Prerelease=1 25 | Lock=asim-asimcore 26 | Buildorder=1 27 | -------------------------------------------------------------------------------- /base/README: -------------------------------------------------------------------------------- 1 | 2 | This directory contains the base files that can be used by any model. 3 | 4 | Rules for files included here: 5 | 6 | 1) Files here should not depend on any particular type module being in 7 | the model, some exceptions apply.... 8 | 9 | 2) All files here should get tested in the model in: 10 | asim-core/config/pm/sample/test.apm 11 | 12 | -------------------------------------------------------------------------------- /base/param.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief support for dynamic parameters 23 | */ 24 | 25 | #ifndef _PARAM_ 26 | #define _PARAM_ 1 27 | 28 | //generic C 29 | #include 30 | 31 | // generic C++ 32 | #include 33 | 34 | // ASIM core 35 | #include "asim/syntax.h" 36 | #include "asim/mesg.h" 37 | 38 | /// Set a dynamic parameter to a new value. 39 | bool /// @returns true if parameter was found 40 | SetParam ( 41 | char * name, ///< parameter name to set 42 | char * value); ///< value to set param to 43 | 44 | /// List the dynamic parameters that are available. 45 | void ListParams (void); 46 | 47 | #endif // _PARAM_ 48 | -------------------------------------------------------------------------------- /debian/README.Debian: -------------------------------------------------------------------------------- 1 | awb for Debian 2 | -------------- 3 | 4 | Packaged for debian 5 | To change version update number in control and rules 6 | 7 | -- Joel Emer Sat, 15 May 2010 18:57:54 -0400 8 | -------------------------------------------------------------------------------- /debian/awb-bin.dirs: -------------------------------------------------------------------------------- 1 | etc/asim 2 | etc/bash_completion.d 3 | usr/bin 4 | usr/lib 5 | usr/lib/perl 6 | usr/libexec 7 | usr/libexec/asim 8 | usr/sbin 9 | usr/share 10 | usr/share/benchmarks 11 | usr/share/man 12 | usr/share/man/man1 13 | usr/share/man/man3 14 | usr/share/perl 15 | -------------------------------------------------------------------------------- /debian/awb-bin.docs: -------------------------------------------------------------------------------- 1 | README 2 | INSTALL 3 | -------------------------------------------------------------------------------- /debian/awb-bin.examples: -------------------------------------------------------------------------------- 1 | etc/asimrc 2 | etc/asim.pack 3 | 4 | -------------------------------------------------------------------------------- /debian/awb-bin.mime: -------------------------------------------------------------------------------- 1 | application/x-apm; apm-edit %s; description="AWB model file editor"; test=test -n "$DISPLAY" 2 | -------------------------------------------------------------------------------- /debian/awb-bin.postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postinst script for awb 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `configure' 10 | # * `abort-upgrade' 11 | # * `abort-remove' `in-favour' 12 | # 13 | # * `abort-remove' 14 | # * `abort-deconfigure' `in-favour' 15 | # `removing' 16 | # 17 | # for details, see http://www.debian.org/doc/debian-policy/ or 18 | # the debian-policy package 19 | 20 | 21 | case "$1" in 22 | configure) 23 | ;; 24 | 25 | abort-upgrade|abort-remove|abort-deconfigure) 26 | ;; 27 | 28 | *) 29 | echo "postinst called with unknown argument \`$1'" >&2 30 | exit 1 31 | ;; 32 | esac 33 | 34 | # dh_installdeb will replace this with shell code automatically 35 | # generated by other debhelper scripts. 36 | 37 | #DEBHELPER# 38 | 39 | exit 0 40 | 41 | 42 | -------------------------------------------------------------------------------- /debian/awb-bin.postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postrm script for awb 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `remove' 10 | # * `purge' 11 | # * `upgrade' 12 | # * `failed-upgrade' 13 | # * `abort-install' 14 | # * `abort-install' 15 | # * `abort-upgrade' 16 | # * `disappear' 17 | # 18 | # for details, see http://www.debian.org/doc/debian-policy/ or 19 | # the debian-policy package 20 | 21 | 22 | case "$1" in 23 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 24 | ;; 25 | 26 | *) 27 | echo "postrm called with unknown argument \`$1'" >&2 28 | exit 1 29 | ;; 30 | esac 31 | 32 | # dh_installdeb will replace this with shell code automatically 33 | # generated by other debhelper scripts. 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | 39 | 40 | -------------------------------------------------------------------------------- /debian/awb-bin.preinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # preinst script for awb 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `install' 10 | # * `install' 11 | # * `upgrade' 12 | # * `abort-upgrade' 13 | # for details, see http://www.debian.org/doc/debian-policy/ or 14 | # the debian-policy package 15 | 16 | 17 | case "$1" in 18 | install|upgrade) 19 | ;; 20 | 21 | abort-upgrade) 22 | ;; 23 | 24 | *) 25 | echo "preinst called with unknown argument \`$1'" >&2 26 | exit 1 27 | ;; 28 | esac 29 | 30 | # dh_installdeb will replace this with shell code automatically 31 | # generated by other debhelper scripts. 32 | 33 | #DEBHELPER# 34 | 35 | exit 0 36 | 37 | 38 | -------------------------------------------------------------------------------- /debian/awb-bin.prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # prerm script for awb 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `remove' 10 | # * `upgrade' 11 | # * `failed-upgrade' 12 | # * `remove' `in-favour' 13 | # * `deconfigure' `in-favour' 14 | # `removing' 15 | # 16 | # for details, see http://www.debian.org/doc/debian-policy/ or 17 | # the debian-policy package 18 | 19 | 20 | case "$1" in 21 | remove|upgrade|deconfigure) 22 | ;; 23 | 24 | failed-upgrade) 25 | ;; 26 | 27 | *) 28 | echo "prerm called with unknown argument \`$1'" >&2 29 | exit 1 30 | ;; 31 | esac 32 | 33 | # dh_installdeb will replace this with shell code automatically 34 | # generated by other debhelper scripts. 35 | 36 | #DEBHELPER# 37 | 38 | exit 0 39 | 40 | 41 | -------------------------------------------------------------------------------- /debian/awb-bin.sharedmimeinfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /debian/awb-doc.docs: -------------------------------------------------------------------------------- 1 | #DOCS# 2 | 3 | -------------------------------------------------------------------------------- /debian/awb-doc.install: -------------------------------------------------------------------------------- 1 | #DOCS# 2 | 3 | -------------------------------------------------------------------------------- /debian/awb-version.dirs: -------------------------------------------------------------------------------- 1 | usr/share 2 | usr/share/asim 3 | usr/share/asim/packages/awb 4 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | awb (15.02~gitee680ee52630b2811d16bf4e9ae6902d6a299ca8+trusty) trusty; urgency=low 2 | 3 | * Move to version 15.02 4 | 5 | -- Kermin E Fleming Mon, 23 Feb 2015 18:50:30 -0500 6 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: awb 2 | Section: devel 3 | Priority: optional 4 | Maintainer: Joel Emer 5 | Build-Depends: debhelper (>= 7), gcc, g++, autotools-dev, libqt4-dev, libpopt-dev 6 | Standards-Version: 3.8.4 7 | 8 | Package: awb 9 | Architecture: all 10 | Depends: awb-15.02 11 | Recommends: awb-14.08 12 | Description: Dependency package for the Architect's Workbench 13 | Dependency package for the Architect's Workbench package (awb) 14 | Section: devel 15 | 16 | Package: awb-15.02 17 | Architecture: any 18 | Depends: awb-bin, ${misc:Depends} 19 | Description: Sharable package for the Architect's Workbench 20 | Sharable files making up the Architect's Workbench package 21 | Section: devel 22 | 23 | Package: awb-bin 24 | Architecture: any 25 | Depends: gcc, g++, ${perlqt:Depends}, libenum-perl, libqt4-dev, libpopt-dev, scons, cvs, subversion, git-core, libterm-readline-gnu-perl, libenum-perl, ${misc:Depends} 26 | Replaces: awb (<= 0.6.0) 27 | Breaks: awb (<= 0.6.0) 28 | Description: Executables for the Architect's Workbench 29 | Core executables for Architect's Workbench (awb) plug-n-play build system. 30 | Section: devel 31 | 32 | Package: awb-doc 33 | Architecture: all 34 | Description: Documentation for the Architect's Workbench 35 | Documenation for Architect's Workbench (awb) plug-n-play build system. 36 | Section: doc 37 | -------------------------------------------------------------------------------- /etc/repositories.d/README: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2001-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | Repository description (*.pack) files go here. 21 | -------------------------------------------------------------------------------- /etc/repositories.d/airblue.pack: -------------------------------------------------------------------------------- 1 | ###### Airblue 2 | 3 | [airblue] 4 | Description=Airblue Repository 5 | Method=git 6 | Access=https://asim.csail.mit.edu/git/airblue 7 | Module=undefined 8 | Tag=HEAD 9 | Target=airblue 10 | BrowseURL=https://asim.csail.mit.edu/gitweb/?p=airblue 11 | 12 | [airblue/HEAD] 13 | Description=Airblue Repository 14 | Access=https://asim.csail.mit.edu/git/airblue 15 | Tag=HEAD 16 | -------------------------------------------------------------------------------- /etc/repositories.d/bdn-powerpc.pack: -------------------------------------------------------------------------------- 1 | ###### OFDM trunk 2 | 3 | [bdn-powerpc] 4 | Description=BDN-based PowerPC 5 | Method=svn 6 | Access=https://asim.csail.mit.edu/svn/bdn-powerpc 7 | Module=undefined 8 | Tag=HEAD 9 | Target=bdn-powerpc 10 | Changes=changes 11 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=bdn-powerpc 12 | 13 | [bdn-powerpc/HEAD] 14 | Description=BDN-based PowerPC 15 | Access=https://asim.csail.mit.edu/svn/bdn-powerpc 16 | Tag=HEAD 17 | 18 | -------------------------------------------------------------------------------- /etc/repositories.d/bluessd.pack: -------------------------------------------------------------------------------- 1 | ###### bluessd Repository 2 | 3 | [bluessd] 4 | Description=Bluessd Repository 5 | Method=git 6 | Access=https://asim.csail.mit.edu/git/bluessd 7 | Module=undefined 8 | Tag=HEAD 9 | Target=bluessd 10 | BrowseURL=https://asim.csail.mit.edu/gitweb/?p=bluessd 11 | 12 | [bluessd/HEAD] 13 | Description=Bluessd Repository 14 | Access=https://asim.csail.mit.edu/git/bluessd 15 | Tag=HEAD 16 | 17 | ###### bluessd-2.0 18 | 19 | [bluessd-2.0] 20 | Description=Bluessd 2.0 Repository 21 | Method=git 22 | Access=https://asim.csail.mit.edu/git/bluessd-2.0 23 | Module=undefined 24 | Tag=HEAD 25 | Target=bluessd-2.0 26 | BrowseURL=https://asim.csail.mit.edu/gitweb/?p=bluessd-2.0 27 | 28 | [bluessd-2.0/HEAD] 29 | Description=Bluessd Repository 30 | Access=https://asim.csail.mit.edu/git/bluessd-2.0 31 | Tag=HEAD 32 | 33 | -------------------------------------------------------------------------------- /etc/repositories.d/bsv-libraries.pack: -------------------------------------------------------------------------------- 1 | ###### bsv-libraries 2 | 3 | [bsv-libraries] 4 | Description=General Bluespec Libraries 5 | Method=git 6 | Access=https://github.com/LEAP-Workloads/bsv-libraries 7 | Module=undefined 8 | Tag=HEAD 9 | Target=bsv-libraries 10 | BrowseURL=https://github.com/LEAP-Workloads/bsv-libraries 11 | 12 | [bsv-libraries/HEAD] 13 | Description=General Bluespec Libraries 14 | Access=https://github.com/LEAP-Workloads/bsv-libraries 15 | Tag=HEAD 16 | -------------------------------------------------------------------------------- /etc/repositories.d/fast.pack: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Asim packages 3 | # 4 | ############################################################################## 5 | 6 | 7 | ###### Fast trunk 8 | 9 | [fast] 10 | Description=UT Fast Simulator 11 | Method=svn 12 | Access=svn+ssh://hulk.ece.utexas.edu/UTFAST/hasim-fast 13 | Module=undef 14 | Tag=HEAD 15 | Target=fast 16 | Changes=changes 17 | 18 | [hasim-intel/HEAD] 19 | Description=UT Fast Simulator 20 | Method=svn 21 | Access=svn+ssh://hulk.ece.utexas.edu/UTFAST/hasim-fast 22 | Module=undef 23 | Tag=HEAD 24 | Target=fast 25 | Changes=changes 26 | -------------------------------------------------------------------------------- /etc/repositories.d/h264.pack: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Asim packages 3 | # 4 | ############################################################################## 5 | 6 | 7 | ###### H264 trunk 8 | 9 | [h264] 10 | Description=H264 Decoder 11 | Method=git 12 | Access=https://github.com/LEAP-Workloads/h264 13 | Module=undefined 14 | Tag=HEAD 15 | Target=h264 16 | BrowseURL=https://github.com/LEAP-Workloads/h264 17 | 18 | [h264/HEAD] 19 | Description=H264 Decoder HEAD 20 | Access=https://github.com/LEAP-Workloads/h264 21 | Tag=HEAD 22 | -------------------------------------------------------------------------------- /etc/repositories.d/hasim.pack: -------------------------------------------------------------------------------- 1 | ###### Hasim trunk 2 | 3 | [hasim] 4 | Description=Hardware Asim Model 5 | Method=git 6 | Access=https://github.com/HAsim-Modeling/hasim 7 | Module=undefined 8 | Tag=HEAD 9 | Target=hasim 10 | BrowseURL=https://github.com/HAsim-Modeling/hasim 11 | 12 | [hasim/HEAD] 13 | Description=Hardware Asim Model 14 | Access=https://github.com/HAsim-Modeling/hasim 15 | Tag=HEAD 16 | 17 | ###### Hasim-models trunk 18 | 19 | [hasim-models] 20 | Description=Basic hasim timing models 21 | Method=git 22 | Access=https://github.com/HAsim-Modeling/hasim-models 23 | Module=undef 24 | Tag=HEAD 25 | Target=hasim-models 26 | BrowseURL=https://github.com/HAsim-Modeling/hasim-models 27 | 28 | [hasim-models/HEAD] 29 | Description=Basic hasim timing models 30 | Access=https://github.com/HAsim-Modeling/hasim-models 31 | Tag=HEAD 32 | 33 | ###### Hasim-alpha trunk 34 | 35 | [hasim-alpha] 36 | Description=Hardware Asim Model for ALPHA 37 | Method=git 38 | Access=https://github.com/HAsim-Modeling/hasim-alpha 39 | Module=undefined 40 | Tag=HEAD 41 | Target=hasim-alpha 42 | BrowseURL=https://github.com/HAsim-Modeling/hasim-alpha 43 | 44 | [hasim-alpha/HEAD] 45 | Description=Hardware Asim Model for ALPHA 46 | Access=https://github.com/HAsim-Modeling/hasim-alpha 47 | Tag=HEAD 48 | 49 | ###### Hasim-mips trunk 50 | 51 | [hasim-mips] 52 | Description=Hardware Asim Model for MIPS 53 | Method=git 54 | Access=https://github.com/HAsim-Modeling/hasim-mips 55 | Module=undefined 56 | Tag=HEAD 57 | Target=hasim-mips 58 | BrowseURL=https://github.com/HAsim-Modeling/hasim-mips 59 | 60 | [hasim-mips/HEAD] 61 | Description=Hardware Asim Model for MIPS 62 | Access=https://github.com/HAsim-Modeling/hasim-mips 63 | Tag=HEAD 64 | 65 | ###### M5 trunk 66 | 67 | [m5] 68 | Description=M5 model 69 | Method=git 70 | Access=https://github.com/HAsim-Modeling/m5 71 | Module=undefined 72 | Tag=HEAD 73 | Target=m5 74 | BrowseURL=https://github.com/HAsim-Modeling/m5 75 | 76 | [m5/HEAD] 77 | Description=M5 model 78 | Access=https://github.com/HAsim-Modeling/m5 79 | Tag=HEAD 80 | -------------------------------------------------------------------------------- /etc/repositories.d/leap-multifpga.pack: -------------------------------------------------------------------------------- 1 | [leap-multifpga] 2 | Description=Leap environment for multifpga development 3 | Method=git 4 | Access=https://github.com/LEAP-Core/leap-multifpga 5 | Module=undefined 6 | Tag=HEAD 7 | Target=leap-multifpga 8 | BrowseURL=https://github.com/LEAP-Core/leap-multifpga 9 | 10 | [leap-multifpga/HEAD] 11 | Description=Leap environment for multifpga development HEAD 12 | Access=https://github.com/LEAP-Core/leap-multifpga 13 | Tag=HEAD 14 | 15 | [leap-multifpga/v14.08] 16 | Description=Leap environment for multifpga development v14.08 17 | Access=https://github.com/LEAP-Core/leap-multifpga 18 | Tag=v14.08 19 | 20 | [leap-multifpga/v15.02] 21 | Description=Leap environment for multifpga development v15.02 22 | Access=https://github.com/LEAP-Core/leap-multifpga 23 | Tag=v15.02 24 | -------------------------------------------------------------------------------- /etc/repositories.d/mit-6.375.pack: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Asim packages 3 | # 4 | ############################################################################## 5 | 6 | 7 | ###### 6.375 class trunk 8 | 9 | [mit-6.375] 10 | Description=MIT 6.375 Advanced Digital Design class 11 | Method=svn 12 | Access=https://asim.csail.mit.edu/svn/mit-6.375 13 | Module=undef 14 | Tag=HEAD 15 | Target=mit-6.375 16 | Changes=changes 17 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.367 18 | 19 | [mit-6.375/HEAD] 20 | Description=MIT 6.375 Advanced Digital Design class 21 | Access=https://asim.csail.mit.edu/svn/mit-6.375 22 | Tag=HEAD 23 | -------------------------------------------------------------------------------- /etc/repositories.d/mit-6.s078.pack: -------------------------------------------------------------------------------- 1 | 2 | [mit-6.s078/HEAD] 3 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078 4 | Target=mit-6.s078 5 | Method=svn 6 | Module=undefined 7 | Changes=changes 8 | Description=mit-6.s078 package 9 | Tag=HEAD 10 | Access=https://asim.csail.mit.edu/svn/mit-6.s078 11 | 12 | [mit-6.s078] 13 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078 14 | Target=mit-6.s078 15 | Method=svn 16 | Module=undefined 17 | Changes=changes 18 | Description=mit-6.s078 package 19 | Tag=HEAD 20 | Access=https://asim.csail.mit.edu/svn/mit-6.s078 21 | 22 | 23 | [mit-6.s078-staff] 24 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078-staff 25 | Target=mit-6.s078-staff 26 | Method=svn 27 | Module=undefined 28 | Changes=changes 29 | Description=mit-6.s078-staff package 30 | Tag=HEAD 31 | Access=https://asim.csail.mit.edu/svn/mit-6.s078-staff 32 | 33 | [mit-6.s078-staff/HEAD] 34 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078-staff 35 | Target=mit-6.s078-staff 36 | Method=svn 37 | Module=undefined 38 | Changes=changes 39 | Description=mit-6.s078-staff package 40 | Tag=HEAD 41 | Access=https://asim.csail.mit.edu/svn/mit-6.s078-staff 42 | 43 | 44 | [mit-6.s078-student] 45 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078-student 46 | Target=mit-6.s078-student 47 | Method=svn 48 | Module=undefined 49 | Changes=changes 50 | Description=mit-6.s078-student package 51 | Tag=HEAD 52 | Access=https://asim.csail.mit.edu/svn/mit-6.s078-student 53 | 54 | [mit-6.s078-student/HEAD] 55 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=mit-6.s078-student 56 | Target=mit-6.s078-student 57 | Method=svn 58 | Module=undefined 59 | Changes=changes 60 | Description=mit-6.s078-student package 61 | Tag=HEAD 62 | Access=https://asim.csail.mit.edu/svn/mit-6.s078-student 63 | -------------------------------------------------------------------------------- /etc/repositories.d/ofdm.pack: -------------------------------------------------------------------------------- 1 | 2 | # A empty file to wipe out the old contents of ofdm.pack 3 | 4 | # This file can be removed from the repository when we are sure 5 | # that nobody has the old ofdm.pack file around any more 6 | -------------------------------------------------------------------------------- /etc/repositories.d/openx86.pack: -------------------------------------------------------------------------------- 1 | ###### Openx86 trunk 2 | 3 | [openx86] 4 | Description=Open x86 based cpu performance model 5 | Method=git 6 | Access=https://github.com/Asim-Modeling/openx86 7 | Module=undefined 8 | Tag=HEAD 9 | Target=openx86 10 | BrowseURL=https://github.com/Asim-Modeling/openx86 11 | 12 | [openx86/HEAD] 13 | Description=Open x86 based cpu performance model 14 | Access=https://github.com/Asim-Modeling/openx86 15 | Tag=HEAD 16 | -------------------------------------------------------------------------------- /etc/repositories.d/platform-acp.pack: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Asim packages 3 | # 4 | ############################################################################## 5 | 6 | 7 | ###### Platform-ACP trunk 8 | 9 | [leap-platforms-acp] 10 | Description=Leap Platform modules for ACP board 11 | Method=git 12 | Access=https://github.com/LEAP-Core/leap-platforms-acp 13 | Module=undef 14 | Tag=HEAD 15 | Target=leap-platforms-acp 16 | BrowseURL=https://github.com/LEAP-Core/leap-platforms-acp 17 | 18 | [leap-platforms-acp/HEAD] 19 | Description=Leap Platform modules for ACP board (HEAD) 20 | Access=https://github.com/LEAP-Core/leap-platforms-acp 21 | Tag=HEAD 22 | -------------------------------------------------------------------------------- /etc/repositories.d/platform-usrp.pack: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | # Asim packages 3 | # 4 | ############################################################################## 5 | 6 | 7 | ###### Platform-USRP trunk 8 | 9 | [leap-platforms-usrp] 10 | Description=Leap Platform modules for USRP board 11 | Method=git 12 | Access=https://github.com/LEAP-Core/leap-platforms-usrp 13 | Module=undef 14 | Tag=HEAD 15 | Target=leap-platforms-usrp 16 | BrowseURL=https://github.com/LEAP-Core/leap-platforms-usrp 17 | 18 | [leap-platforms-usrp/HEAD] 19 | Description=Leap Platform modules for USRP board (HEAD) 20 | Access=https://github.com/LEAP-Core/leap-platforms-usrp 21 | Tag=HEAD 22 | -------------------------------------------------------------------------------- /etc/repositories.d/smips.pack: -------------------------------------------------------------------------------- 1 | 2 | [smips] 3 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=smips 4 | Target=smips 5 | Method=svn 6 | Module=undefined 7 | Changes=changes 8 | Description=smips package 9 | Tag=HEAD 10 | Access=https://asim.csail.mit.edu/svn/smips 11 | 12 | [smips/HEAD] 13 | BrowseURL=https://asim.csail.mit.edu/websvn/listing.php?repname=smips 14 | Target=smips 15 | Method=svn 16 | Module=undefined 17 | Changes=changes 18 | Description=smips package 19 | Tag=HEAD 20 | Access=https://asim.csail.mit.edu/svn/smips 21 | 22 | -------------------------------------------------------------------------------- /etc/repositories.d/spatial-cnn.pack: -------------------------------------------------------------------------------- 1 | ###### spatial-cnn 2 | 3 | [spatial-cnn] 4 | Description=Spatial-cnn Repository 5 | Method=git 6 | Access=https://asim.csail.mit.edu/git/spatial-cnn 7 | Module=undefined 8 | Tag=HEAD 9 | Target=spatial-cnn 10 | BrowseURL=https://asim.csail.mit.edu/gitweb/?p=spatial-cnn 11 | 12 | [spatial-cnn/HEAD] 13 | Description=Spatial-cnn Repository 14 | Access=https://asim.csail.mit.edu/git/spatial-cnn 15 | Tag=HEAD 16 | -------------------------------------------------------------------------------- /lib/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | DIST_SUBDIRS= @NO_GUI@ libawb 21 | SUBDIRS=@NO_GUI@ libawb 22 | -------------------------------------------------------------------------------- /lib/README: -------------------------------------------------------------------------------- 1 | The structure of the library directories is such 2 | 3 | lib/libname/src - source (.cpp) files 4 | 5 | lib/libname/include/asim - header files 6 | 7 | 8 | When you include the header files in any file, make sure it's of this form: 9 | 10 | #include "asim/header.h" 11 | 12 | and then have the following switch in the compile line: 13 | 14 | -Ilib/libname/include 15 | 16 | 17 | The makefiles expect to look for header files in an asim directory, and if 18 | you decide to not follow the convention, life will become more difficult for 19 | you, your library, and me. Thank you. 20 | 21 | 22 | 23 | Eric 24 | -------------------------------------------------------------------------------- /libperl/Asim/MANIFEST: -------------------------------------------------------------------------------- 1 | Makefile.PL 2 | MANIFEST 3 | README 4 | lib/Asim.pm.in 5 | lib/Asim/Batch/Condor.pm 6 | lib/Asim/BuildTree/Configuration.pm 7 | lib/Asim/GenCFG/Auto.pm 8 | lib/Asim/Package/Copy.pm 9 | lib/Asim/Package/Git.pm 10 | lib/Asim/Package/Hg.pm 11 | lib/Asim/Package/P4.pm 12 | lib/Asim/Repository/BitKeeper.pm 13 | lib/Asim/Repository/Copy.pm 14 | lib/Asim/Repository/Cvs.pm 15 | lib/Asim/Repository/Git.pm 16 | lib/Asim/Repository/Hg.pm 17 | lib/Asim/Repository/P4.pm 18 | lib/Asim/Repository/Public.pm 19 | lib/Asim/Repository/Svn.pm 20 | lib/Asim/Stats/ToText.pm 21 | lib/Asim/Stats/ToText/LongNames.pm 22 | lib/Asim/Benchmark/DB.pm 23 | lib/Asim/Model/DB.pm 24 | lib/Asim/Model/Template.pm 25 | lib/Asim/Model/Update.pm 26 | lib/Asim/Module/Attribute.pm 27 | lib/Asim/Module/Template.pm 28 | lib/Asim/Module/DB.pm 29 | lib/Asim/Module/Param.pm 30 | lib/Asim/Module/SourceList.pm 31 | lib/Asim/Package/Branch.pm 32 | lib/Asim/Package/BitKeeper.pm 33 | lib/Asim/Package/Commit.pm 34 | lib/Asim/Package/Cvs.pm 35 | lib/Asim/Package/DB.pm 36 | lib/Asim/Package/Stats.pm 37 | lib/Asim/Package/Svn.pm 38 | lib/Asim/Package/Template.pm 39 | lib/Asim/Package/Util.pm 40 | lib/Asim/Repository/DB.pm 41 | lib/Asim/Workspace/Template.pm 42 | lib/Asim/Base.pm 43 | lib/Asim/Batch.pm 44 | lib/Asim/Batch/Base.pm 45 | lib/Asim/Batch/Local.pm 46 | lib/Asim/Batch/Netbatch.pm 47 | lib/Asim/Batch/NetbatchRemote.pm 48 | lib/Asim/Benchmark.pm 49 | lib/Asim/Bundle.pm 50 | lib/Asim/BuildTree.pm 51 | lib/Asim/Edit.pm 52 | lib/Asim/Edit/Interactive.pm 53 | lib/Asim/Edit/Noninteractive.pm 54 | lib/Asim/Fork.pm 55 | lib/Asim/GenCFG.pm 56 | lib/Asim/Inifile.pm 57 | lib/Asim/Lock.pm 58 | lib/Asim/Model.pm 59 | lib/Asim/Module.pm 60 | lib/Asim/Nightly.pm 61 | lib/Asim/Package.pm 62 | lib/Asim/Packfile.pm 63 | lib/Asim/PlotStats.pm 64 | lib/Asim/Rcfile.pm 65 | lib/Asim/Regression.pm 66 | lib/Asim/Repository.pm 67 | lib/Asim/Signal.pm 68 | lib/Asim/SshAgent.pm 69 | lib/Asim/Stats.pm 70 | lib/Asim/UnionDir.pm 71 | lib/Asim/Util.pm 72 | lib/Asim/Workspace.pm 73 | lib/Asim/Xaction.pm 74 | lib/Asim.pm 75 | -------------------------------------------------------------------------------- /libperl/Asim/Makefile.PL: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | require 5.6.0; 21 | use ExtUtils::MakeMaker; 22 | 23 | WriteMakefile( 24 | 'NAME' => 'Asim', 25 | 'VERSION_FROM' => 'lib/Asim.pm', 26 | # 'PREREQ_PM' => { 'Digest::MD5' => 2.00, }, 27 | # 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 28 | ); 29 | -------------------------------------------------------------------------------- /libperl/Asim/README: -------------------------------------------------------------------------------- 1 | This diretory contains an Asim Perl module. Normally 2 | the Makefile used to create this directory will be 3 | created automatically by ../Makefile, and the perl 4 | module itself will in installed in ${prefix}/lib/perl5, 5 | where ${prefix} is as specified at ./configure time. 6 | 7 | See ../README for instructions on installing the 8 | modules in a different location. 9 | 10 | To install just one of the perl modules in a 11 | different place you can use the standard 12 | perl module build procedure: 13 | 14 | % perl Makefile.PL PREFIX= 15 | % make 16 | % make install 17 | 18 | 19 | NOTE: 20 | 21 | When adding a module to this perl library remember 22 | to add it to ./MANIFEST as well, or it won't get 23 | installed. 24 | -------------------------------------------------------------------------------- /libperl/Asim/lib/Asim/Model/Template.pm: -------------------------------------------------------------------------------- 1 | # 2 | # INTEL CONFIDENTIAL 3 | # Copyright 2003-2006 Intel Corporation All Rights Reserved. 4 | # 5 | # The source code contained or described herein and all documents related to the source code 6 | # ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the 7 | # Material remains with Intel Corporation or its suppliers and licensors. The Material may 8 | # contain trade secrets and proprietary and confidential information of Intel Corporation and 9 | # its suppliers and licensors, and is protected by worldwide copyright and trade secret laws 10 | # and treaty provisions. No part of the Material may be used, copied, reproduced, modified, 11 | # published, uploaded, posted, transmitted, distributed, or disclosed in any way without 12 | # Intels prior express written permission. 13 | # 14 | # No license under any patent, copyright, trade secret or other intellectual property right is 15 | # granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, 16 | # by implication, inducement, estoppel or otherwise. Any license under such intellectual property 17 | # rights must be express and approved by Intel in writing. 18 | # 19 | 20 | -------------------------------------------------------------------------------- /libperl/Asim/lib/Asim/Module/Template.pm: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | # 21 | # Placeholder for templates for module files 22 | # 23 | -------------------------------------------------------------------------------- /libperl/Asim/lib/Asim/Signal.pm: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | 21 | package Asim; 22 | 23 | # 24 | # Globally available utility functions 25 | # 26 | sub enable_signal { 27 | $SIG{'INT'} = \&accept_signal; 28 | } 29 | 30 | sub disable_signal { 31 | $SIGN{'INT'} = 'IGNORE'; 32 | } 33 | 34 | 35 | @cleanup_handlers = (); 36 | 37 | sub push_signal_handler { 38 | my $handler = shift; 39 | 40 | push(@cleanup_handlers, $handler); 41 | } 42 | 43 | sub pop_signal_handler { 44 | pop(@cleanup_handlers); 45 | } 46 | 47 | 48 | sub accept_signal { 49 | my $signame = shift; 50 | 51 | print "\n"; 52 | print "Aborting due to ^C...\n"; 53 | 54 | foreach my $i (@cleanup_handlers) { 55 | eval $i; 56 | } 57 | 58 | Asim::Xaction::abort(); 59 | 60 | $| = 0; 61 | 62 | exit 1; 63 | } 64 | 65 | 66 | sub reject_signal { 67 | my $signame = shift; 68 | 69 | print "Sorry no signal allowed now\n"; 70 | } 71 | 72 | 73 | # $SIG{'__DIE__'} = \&accept_signal; 74 | 75 | 1; 76 | -------------------------------------------------------------------------------- /libperl/AsimShell/MANIFEST: -------------------------------------------------------------------------------- 1 | lib/AsimShell/Completion.pm 2 | lib/AsimShell/Commands.pm 3 | lib/AsimShell/Help.pm 4 | lib/AsimShell.pm 5 | -------------------------------------------------------------------------------- /libperl/AsimShell/Makefile.PL: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | require 5.6.0; 21 | use ExtUtils::MakeMaker; 22 | 23 | WriteMakefile( 24 | 'NAME' => 'Asim', 25 | 'VERSION_FROM' => 'lib/AsimShell.pm', 26 | ); 27 | -------------------------------------------------------------------------------- /libperl/AsimShell/README: -------------------------------------------------------------------------------- 1 | This diretory contains an Asim Perl module. Normally 2 | the Makefile used to create this directory will be 3 | created automatically by ../Makefile, and the perl 4 | module itself will in installed in ${prefix}/lib/perl5, 5 | where ${prefix} is as specified at ./configure time. 6 | 7 | See ../README for instructions on installing the 8 | modules in a different location. 9 | 10 | To install just one of the perl modules in a 11 | different place you can use the standard 12 | perl module build procedure: 13 | 14 | % perl Makefile.PL PREFIX= 15 | % make 16 | % make install 17 | 18 | 19 | NOTE: 20 | 21 | When adding a module to this perl library remember 22 | to add it to ./MANIFEST as well, or it won't get 23 | installed. 24 | 25 | -------------------------------------------------------------------------------- /libperl/Benchmarks/MANIFEST: -------------------------------------------------------------------------------- 1 | Makefile.PL 2 | MANIFEST 3 | README 4 | lib/Benchmarks.pm 5 | lib/Benchmarks/CPU2000_data.pm 6 | lib/Benchmarks/CPU2006_data.pm 7 | -------------------------------------------------------------------------------- /libperl/Benchmarks/Makefile.PL: -------------------------------------------------------------------------------- 1 | require 5.6.0; 2 | use ExtUtils::MakeMaker; 3 | 4 | WriteMakefile( 5 | 'NAME' => 'Benchmarks', 6 | 'VERSION_FROM' => 'lib/Benchmarks.pm', 7 | ); 8 | -------------------------------------------------------------------------------- /libperl/Benchmarks/README: -------------------------------------------------------------------------------- 1 | This diretory contains an Asim Perl module. Normally 2 | the Makefile used to create this directory will be 3 | created automatically by ../Makefile, and the perl 4 | module itself will in installed in ${prefix}/lib/perl5, 5 | where ${prefix} is as specified at ./configure time. 6 | 7 | See ../README for instructions on installing the 8 | modules in a different location. 9 | 10 | To install just one of the perl modules in a 11 | different place you can use the standard 12 | perl module build procedure: 13 | 14 | % perl Makefile.PL PREFIX= 15 | % make 16 | % make install 17 | 18 | 19 | 20 | NOTE: 21 | 22 | When adding a module to this perl library remember 23 | to add it to ./MANIFEST as well, or it won't get 24 | installed. 25 | -------------------------------------------------------------------------------- /libperl/Benchmarks/lib/Benchmarks.pm: -------------------------------------------------------------------------------- 1 | # ***************************************************************** 2 | # * * 3 | # Copyright (C) 2003-2008 Intel Corporation 4 | # 5 | # This program is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU General Public License 7 | # as published by the Free Software Foundation; either version 2 8 | # of the License, or (at your option) any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; if not, write to the Free Software 17 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 | # 19 | 20 | 21 | package Benchmarks; 22 | use warnings; 23 | use strict; 24 | 25 | # 26 | # Default data values 27 | # 28 | our $VERSION=0.1; 29 | 30 | 1; 31 | -------------------------------------------------------------------------------- /libperl/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | SUBDIRS=Asim AsimShell Benchmarks PlotShell PinPoints 21 | 22 | # do not let "make clean" descend into subdirectories, 23 | # because we will have to reconfigure to get back the Makefiles 24 | # generated by Makefile.PL 25 | clean: 26 | echo "nothing to do for make clean in libperl" 27 | -------------------------------------------------------------------------------- /libperl/PinPoints/MANIFEST: -------------------------------------------------------------------------------- 1 | Makefile.PL 2 | MANIFEST 3 | README 4 | lib/PinPoints.pm 5 | -------------------------------------------------------------------------------- /libperl/PinPoints/Makefile.PL: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | require 5.6.0; 21 | use ExtUtils::MakeMaker; 22 | 23 | WriteMakefile( 24 | 'NAME' => 'PinPoints', 25 | 'VERSION_FROM' => 'lib/PinPoints.pm', 26 | ); 27 | -------------------------------------------------------------------------------- /libperl/PinPoints/README: -------------------------------------------------------------------------------- 1 | This diretory contains an Asim Perl module. Normally 2 | the Makefile used to create this directory will be 3 | created automatically by ../Makefile, and the perl 4 | module itself will in installed in ${prefix}/lib/perl5, 5 | where ${prefix} is as specified at ./configure time. 6 | 7 | See ../README for instructions on installing the 8 | modules in a different location. 9 | 10 | To install just one of the perl modules in a 11 | different place you can use the standard 12 | perl module build procedure: 13 | 14 | % perl Makefile.PL PREFIX= 15 | % make 16 | % make install 17 | 18 | 19 | 20 | NOTE: 21 | 22 | When adding a module to this perl library remember 23 | to add it to ./MANIFEST as well, or it won't get 24 | installed. 25 | -------------------------------------------------------------------------------- /libperl/PlotShell/MANIFEST: -------------------------------------------------------------------------------- 1 | Makefile.PL 2 | MANIFEST 3 | README 4 | lib/PlotShell/Commands.pm 5 | lib/PlotShell/Help.pm 6 | lib/PlotShell.pm 7 | -------------------------------------------------------------------------------- /libperl/PlotShell/Makefile.PL: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | require 5.6.0; 21 | use ExtUtils::MakeMaker; 22 | 23 | WriteMakefile( 24 | 'NAME' => 'PlotShell', 25 | 'VERSION_FROM' => 'lib/PlotShell.pm', 26 | ); 27 | -------------------------------------------------------------------------------- /libperl/PlotShell/README: -------------------------------------------------------------------------------- 1 | This diretory contains an Asim Perl module. Normally 2 | the Makefile used to create this directory will be 3 | created automatically by ../Makefile, and the perl 4 | module itself will in installed in ${prefix}/lib/perl5, 5 | where ${prefix} is as specified at ./configure time. 6 | 7 | See ../README for instructions on installing the 8 | modules in a different location. 9 | 10 | To install just one of the perl modules in a 11 | different place you can use the standard 12 | perl module build procedure: 13 | 14 | % perl Makefile.PL PREFIX= 15 | % make 16 | % make install 17 | 18 | 19 | NOTE: 20 | 21 | When adding a module to this perl library remember 22 | to add it to ./MANIFEST as well, or it won't get 23 | installed. 24 | 25 | -------------------------------------------------------------------------------- /libperl/README: -------------------------------------------------------------------------------- 1 | This diretory contains several subdirectoris containing 2 | Asim Perl modules. To build those modules and 3 | install them in the ${prefix} specified at 4 | ./configure time, type: 5 | 6 | % make 7 | % make install 8 | 9 | To install in a different location you can do the 10 | following: 11 | 12 | % make clean 13 | % make prefix= 14 | % make 15 | % make install 16 | 17 | 18 | For instructions on building and installing an 19 | individual module see the README in the module 20 | subirectory. 21 | -------------------------------------------------------------------------------- /m4/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3337 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.2]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3337]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.2' 20 | macro_revision='1.3337' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /modules/controller/classic/awb-notcl.awb: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 2 7 | * of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * Awb module specification 21 | ********************************************************************/ 22 | 23 | %AWB_START 24 | 25 | %name AWB without TCL 26 | %desc AWB without TCL 27 | %provides awb_stub 28 | 29 | %public awb-notcl.h 30 | %private awb-notcl.cpp 31 | 32 | %attributes model notcl 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/controller/classic/awb.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name AWB Native TCL 26 | %desc AWB with built-in native TCL 27 | %provides awb_stub 28 | 29 | %public awb.h 30 | %private awb.cpp 31 | 32 | %attributes model 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/controller/classic/awb_no_wb.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name AWB no Workbench 26 | %desc AWB no Workbench 27 | %provides awb_stub 28 | 29 | %public awb.h 30 | %private awb_no_wb.cpp 31 | 32 | %attributes model 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/controller/classic/awb_taratiTclBeamer.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name AWB TclBeamer 26 | %desc AWB TclBeamer - remote TCL via Tarati 27 | %provides awb_stub 28 | 29 | %public awb.h 30 | %private awb_taratiTclBeamer.cpp 31 | 32 | %attributes model 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/controller/classic/controller-notcl.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Asim controller without TCL 26 | %desc Asim controller without TCL 27 | %provides controller 28 | %requires workbench 29 | %requires awb_stub 30 | 31 | %public control-notcl.h 32 | %private main.cpp args.h args.cpp 33 | %private control-notcl.cpp schedule.h schedule.cpp 34 | 35 | %attributes model notcl 36 | %param %dynamic STOP_THREAD 0 "Stop simulation when first thread finishes" 37 | %AWB_END 38 | -------------------------------------------------------------------------------- /modules/controller/classic/controller_classic.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | * for Asim classic controller base classes & common reusable code 22 | * 23 | * Copyright (c) 2006 Intel Corporation, all rights reserved 24 | ******************************************************************** 25 | 26 | %AWB_START 27 | 28 | %name Asim classic controller base 29 | %desc Asim classic controller base classes 30 | %provides controller 31 | %requires workbench 32 | %requires awb_stub 33 | %requires controller_alg 34 | 35 | %public control.h 36 | %private main.cpp args.cpp control.cpp schedule.cpp 37 | 38 | %attributes model 39 | %param %dynamic STOP_THREAD 0 "Stop simulation when first thread finishes" 40 | %AWB_END 41 | -------------------------------------------------------------------------------- /modules/controller/classic/controller_classic_alg.awb: -------------------------------------------------------------------------------- 1 | ******************************************************************** 2 | * Awb module specification, for Asim "classic" controller 3 | * 4 | * Copyright (c) 1994-2006 Intel Corporation, all rights reserved 5 | ******************************************************************** 6 | 7 | %AWB_START 8 | 9 | %name Asim classic controller 10 | %desc Asim classic controller algorithm 11 | %provides controller_alg 12 | 13 | %public controller_classic_alg.h 14 | 15 | %attributes model 16 | %AWB_END 17 | ******************************************************************** 18 | * Awb module specification, for Asim "classic" controller 19 | * 20 | * Copyright (c) 1994-2006 Intel Corporation, all rights reserved 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Asim classic controller 26 | %desc Asim classic controller algorithm 27 | %provides controller_alg 28 | 29 | %public controller_classic_alg.h 30 | 31 | %attributes model 32 | %AWB_END 33 | ******************************************************************** 34 | * Awb module specification, for Asim "classic" controller 35 | * 36 | * Copyright (c) 1994-2006 Intel Corporation, all rights reserved 37 | ******************************************************************** 38 | 39 | %AWB_START 40 | 41 | %name Asim classic controller 42 | %desc Asim classic controller algorithm 43 | %provides controller_alg 44 | 45 | %public controller_classic_alg.h 46 | 47 | %attributes model 48 | %AWB_END 49 | -------------------------------------------------------------------------------- /modules/controller/classic/controller_classic_alg.h: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 1999-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Carl Beckmann 22 | * @brief 23 | */ 24 | 25 | #ifndef __CONTROL_CLASSIC_ALG_H__ 26 | #define __CONTROL_CLASSIC_ALG_H__ 27 | 28 | // ASIM modules 29 | #include "asim/provides/controller.h" 30 | 31 | 32 | 33 | // 34 | // The single controller instance 35 | // The "Asim classic controller" uses as its implementation the controller 36 | // base class directly, so there is nothing here to override 37 | // 38 | typedef CONTROLLER_CLASS ACTUAL_CONTROLLER_CLASS; 39 | extern ACTUAL_CONTROLLER_CLASS theController; 40 | 41 | 42 | #endif /* __CONTROL_CLASSIC_ALG_H__ */ 43 | -------------------------------------------------------------------------------- /modules/controller/classic/controller_no_wb.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Asim controller without a workbench 26 | %desc Asim controller without a workbench 27 | %provides controller 28 | %requires basesystem 29 | %requires awb_stub 30 | 31 | %public control.h 32 | %private main.cpp args.h args.cpp 33 | %private control.cpp schedule.h schedule.cpp 34 | 35 | %attributes model 36 | 37 | %AWB_END 38 | -------------------------------------------------------------------------------- /modules/controller/minimal/args_mini.h: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | /** 19 | * @file 20 | * @author David Goodwin 21 | * @brief Main ASIM initialiaztion and driver - interface between 22 | * ASIM's controller, performance model, and visualizer. 23 | */ 24 | 25 | #ifndef _ARGS_ 26 | #define _ARGS_ 27 | 28 | // ASIM core 29 | #include "asim/syntax.h" 30 | 31 | extern void PartitionArgs (INT32 argc, char **argv); 32 | extern void Usage (char *exec, FILE *file); 33 | extern bool ParseEvents (INT32 argc, char **argv); 34 | 35 | // Arguments partitioned into awb's, system's and feeder's 36 | 37 | extern UINT32 origArgc, awbArgc, sysArgc, fdArgc; 38 | extern char **origArgv, **awbArgv, **sysArgv, **fdArgv; 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /modules/controller/minimal/controller_mini.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # *******************************************************************/ 24 | 25 | #/* 26 | # %AWB_START 27 | # 28 | # %name Asim minimal controller 29 | # %desc Asim minimal controller 30 | # %provides controller 31 | # 32 | # %public controller_mini.h 33 | # %private main_mini.cpp args_mini.h args_mini.cpp 34 | # 35 | # %attributes model 36 | # 37 | # %AWB_END 38 | # */ 39 | -------------------------------------------------------------------------------- /modules/controller/minimal/controller_mini.h: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author David Goodwin 22 | * @brief 23 | */ 24 | 25 | #ifndef _CONTROLER_MINI_ 26 | #define _CONTROLLER_MINI_ 27 | 28 | 29 | // ASIM core 30 | #include "asim/syntax.h" 31 | 32 | // ASIM modules 33 | #include "asim/provides/system.h" 34 | 35 | // ASIM local module 36 | 37 | 38 | /*******************************************************************/ 39 | 40 | /* 41 | * Print command-line usage information for feeder and system. 42 | */ 43 | 44 | extern void CMD_Usage (FILE *file); 45 | 46 | 47 | /******************************************************************** 48 | * 49 | * Global system object. 50 | * 51 | ********************************************************************/ 52 | 53 | extern ASIM_SYSTEM asimSystem; 54 | 55 | 56 | #endif /* _CMD_ */ 57 | -------------------------------------------------------------------------------- /modules/controller/null/null_controller.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Asim Null controller 26 | %desc Asim Null controller 27 | %provides controller 28 | 29 | %public control.h 30 | %private control.cpp schedule.h schedule.cpp 31 | 32 | %attributes model 33 | %param %dynamic STOP_THREAD 0 "Stop simulation when first thread finishes" 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/controller/workbench/no-tcl/wb-notcl.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | %AWB_START 20 | 21 | %name workbench without TCL 22 | %desc workbench without TCL 23 | %provides workbench 24 | 25 | %public wb-notcl.h 26 | %private wb-notcl.cpp 27 | 28 | %attributes notcl 29 | 30 | %AWB_END 31 | -------------------------------------------------------------------------------- /modules/controller/workbench/simple/simpleWb.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Simple Workbench 26 | %desc Simple workbench 27 | %provides workbench 28 | 29 | %public simpleWb.h 30 | 31 | --- this module has its own Makefile and is compiled into a library --- 32 | %makefile Makefile.template 33 | %target simpleWb.a 34 | 35 | %AWB_END 36 | -------------------------------------------------------------------------------- /modules/controller/workbench/simple/simpleWb.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief support for built-in TCL workbench 23 | */ 24 | 25 | #ifndef _SIMPLE_WORKBENCH_ 26 | #define _SIMPLE_WORKBENCH_ 1 27 | 28 | /// create a copy of the built-in TCL workbench 29 | char *AWB_WbInit (void); 30 | 31 | #endif // _SIMPLE_WORKBENCH_ 32 | -------------------------------------------------------------------------------- /modules/dral_api/classic_dral_api_nullptv.awb: -------------------------------------------------------------------------------- 1 | ******************************************************************** 2 | * Awb module specification, for Asim DRAL API 3 | * 4 | * Copyright (c) 1999-2006 Intel Corporation, all rights reserved 5 | ******************************************************************** 6 | 7 | %AWB_START 8 | 9 | %name Classic DRAL API without PTV support 10 | %desc Classic DRAL API using NULL PTV library in simcore 11 | 12 | %provides dral_api 13 | 14 | /* this much come before its dependencies */ 15 | %library lib/libdral/libdral.a 16 | 17 | %library lib/libnullptlib/libnullptlib.a 18 | 19 | 20 | %AWB_END 21 | -------------------------------------------------------------------------------- /modules/dral_api/classic_dral_api_ptv.awb: -------------------------------------------------------------------------------- 1 | ******************************************************************** 2 | * Awb module specification, for Asim DRAL API with PTV support 3 | * 4 | * Copyright (c) 1999-2006 Intel Corporation, all rights reserved 5 | ******************************************************************** 6 | 7 | %AWB_START 8 | 9 | %name Classic DRAL API with PTV support 10 | %desc Classic DRAL API using PTV library in x86libs 11 | 12 | %provides dral_api 13 | 14 | /* this much come before its dependencies */ 15 | %library lib/libdral/libdral.a 16 | 17 | %library lib/willy/libarchlib.a 18 | %library lib/willy/libarisim.a 19 | %library lib/willy/libsupport.a 20 | %library lib/willy/libptlib.a 21 | %library lib/willy/libwmtperfchecker.a 22 | 23 | %param %dynamic pt "" "Pipetrace filename" 24 | %param %dynamic pt_dump "" "Pipetrace filename dump on fail" 25 | %param %dynamic pipetrace_dump_max 20000 "Pipetrace dump max size" 26 | %param %dynamic stats "" "PT Stats filename" 27 | %param %dynamic pt_ascii 0 "Output pipetrace in ascii" 28 | %param %dynamic nthread 4 "number of threads per core" 29 | %param %dynamic ncore 16 "number of cores" 30 | %param %dynamic nproc 1 "number of processors" 31 | %param %dynamic perfchecker 0 "Run perfchecker" 32 | %param %dynamic WILLY_STYLE_STATS 0 "Create Willy Style Stats File" 33 | %param %dynamic instrs_retired 0 "current number of instrs retired (hack)" 34 | 35 | %AWB_END 36 | -------------------------------------------------------------------------------- /modules/dral_api/classic_dral_api_ptv_bk.awb: -------------------------------------------------------------------------------- 1 | ******************************************************************** 2 | * Awb module specification, for Asim DRAL API with PTV support 3 | * 4 | * Copyright (c) 1999-2006 Intel Corporation, all rights reserved 5 | ******************************************************************** 6 | 7 | %AWB_START 8 | 9 | %name Classic DRAL API with PTV support (using coho-bk) 10 | %desc Classic DRAL API using PTV library in coho-bk 11 | 12 | %provides dral_api 13 | 14 | /* this much come before its dependencies */ 15 | %library lib/libdral/libdral.a 16 | 17 | %library export/lib/libarchlib-coho.a 18 | %library export/lib/libarisim.a 19 | %library export/lib/libsupport-coho.a 20 | %library export/lib/libptlib.a 21 | %library export/lib/libcohoperfchecker.a 22 | 23 | %param %dynamic pt "" "Pipetrace filename" 24 | %param %dynamic pt_dump "" "Pipetrace filename dump on fail" 25 | %param %dynamic pipetrace_dump_max 20000 "Pipetrace dump max size" 26 | %param %dynamic stats "" "PT Stats filename" 27 | %param %dynamic pt_ascii 0 "Output pipetrace in ascii" 28 | %param %dynamic nthread 4 "number of threads per core" 29 | %param %dynamic ncore 16 "number of cores" 30 | %param %dynamic nproc 1 "number of processors" 31 | %param %dynamic perfchecker 0 "Run perfchecker" 32 | %param %dynamic WILLY_STYLE_STATS 0 "Create Willy Style Stats File" 33 | %param %dynamic instrs_retired 0 "current number of instrs retired (hack)" 34 | 35 | %AWB_END 36 | -------------------------------------------------------------------------------- /modules/dral_api/x86_dral_api.awb: -------------------------------------------------------------------------------- 1 | ******************************************************************** 2 | * Awb module specification, for Asim DRAL API 3 | * 4 | * Copyright (c) 1999-2006 Intel Corporation, all rights reserved 5 | ******************************************************************** 6 | 7 | %AWB_START 8 | 9 | %name X86 DRAL API 10 | %desc X86 DRAL API 11 | 12 | %provides dral_api 13 | 14 | %library lib/libdral/libdral.a 15 | 16 | 17 | %AWB_END 18 | -------------------------------------------------------------------------------- /modules/feeders/inst/interface/null/instfeedernull.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /****************************************************************** 20 | *Awb module specification 21 | ******************************************************************/ 22 | 23 | %AWB_START 24 | 25 | %name InstFeeder_NullInterface 26 | %desc Null interface class for instruction feeders 27 | %provides instfeeder_interface 28 | %public instfeedernull.h 29 | 30 | %AWB_END 31 | -------------------------------------------------------------------------------- /modules/feeders/inst/interface/null/instfeedernull.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief NULL Instruction feeder interface definition. 23 | */ 24 | 25 | #ifndef _INSTFEEDERNULL_ 26 | #define _INSTFEEDERNULL_ 27 | 28 | //---------------------------------------------------------------- 29 | // Define minimal set of what others expect to get defined 30 | //---------------------------------------------------------------- 31 | 32 | typedef int IFEEDER_STREAM_HANDLE; 33 | typedef int IFEEDER_BASE_CLASS; 34 | typedef int *IFEEDER_BASE; 35 | 36 | #endif /* _INSTFEEDERNULL_ */ 37 | -------------------------------------------------------------------------------- /modules/isa/utilities/bbreport/bbreport.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # *******************************************************************/ 24 | 25 | /* 26 | * %AWB_START 27 | * 28 | * %name Basic Block reporting code 29 | * %desc Basic Block reporting code 30 | * %provides util_bbreport 31 | * 32 | * %public bbreport.h 33 | * %private bbreport.cpp 34 | * 35 | * %param %dynamic ENABLE_BB_REPORT 0 "enable/disable basic block report" 36 | * %param %dynamic BBREPORT_SIZE 10 "basic block report printout size" 37 | * 38 | * %AWB_END 39 | */ 40 | -------------------------------------------------------------------------------- /modules/isa/utilities/dependency/dep_obj.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * 21 | * Awb module specification 22 | * 23 | *******************************************************************/ 24 | 25 | /* 26 | * %AWB_START 27 | * 28 | * %name Generic Dependency Code Objects 29 | * %desc Generic Dependency Code Objects 30 | * %provides dependency_objects 31 | * 32 | * %public dep_obj.h 33 | * %private dep_obj.cpp 34 | * 35 | * %AWB_END 36 | */ 37 | -------------------------------------------------------------------------------- /modules/isa/utilities/dependency/generic_dep_state.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * 21 | * Awb module specification 22 | * 23 | *******************************************************************/ 24 | 25 | /* 26 | * %AWB_START 27 | * 28 | * %name Generic Dependency State 29 | * %desc Generic Dependency State 30 | * %provides generic_dependency_state 31 | * 32 | * %public generic_dep_state.h 33 | * %private generic_dep_state.cpp 34 | * 35 | * %AWB_END 36 | */ 37 | -------------------------------------------------------------------------------- /modules/isa/utilities/instprofile/instprofile.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * 21 | * Awb module specification for per instruction stats 22 | * AUTHOR: Srilatha Manne 23 | * 24 | *******************************************************************/ 25 | 26 | /* 27 | * %AWB_START 28 | * 29 | * %name Per instruction profile 30 | * %desc Code for collecting per instruction stats 31 | * %attributes tang_inorder 32 | * %provides inst_stats 33 | * 34 | * %public instprofile.h 35 | * %private perinst_stats.h instprofile.cpp 36 | * %param %dynamic ENABLE_INST_PROFILE 0 "0:no profile, 1:by inst type, 2:by static inst" 37 | * %param LOG2_ENTRIES_PER_PAGE 10 "Number is bundles stored per page" 38 | * %param MAX_NUM_PAGES 781 "Max number of inst pages for stats collection" 39 | * %param %dynamic MAX_NUM_INSTS 100000 "Maximum number of static instructions" 40 | * 41 | * %AWB_END 42 | */ 43 | -------------------------------------------------------------------------------- /modules/isa/utilities/utils.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # *******************************************************************/ 24 | 25 | #/* 26 | # %AWB_START 27 | # 28 | # %name IPF utils 29 | # %desc IPF utilities modules 30 | # %provides utils 31 | # %public utils.h 32 | # 33 | # %requires dependency_base 34 | # 35 | # %AWB_END 36 | # */ 37 | -------------------------------------------------------------------------------- /modules/isa/utilities/utils.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * utils.h - Utilities files 3 | * 4 | * Copyright (C) 2002-2006 Intel Corporation 5 | * 6 | * This program is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU General Public License 8 | * as published by the Free Software Foundation; either version 2 9 | * of the License, or (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 | */ 20 | 21 | /** 22 | * @file utils.h 23 | * @author Santi Galan & Isaac Hernandez 24 | * @brief Utilities files 25 | */ 26 | 27 | #ifndef _UTILS_ 28 | #define _UTILS_ 29 | 30 | #include "asim/provides/dependency_base.h" 31 | 32 | #endif //_UTILS_ 33 | -------------------------------------------------------------------------------- /modules/model.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Default Model Foundation 26 | %desc Default foundation module for ASIM models 27 | %provides model 28 | 29 | %requires controller 30 | %requires system 31 | 32 | %attributes model 33 | 34 | %makefile Makefile.template Makefile.config 35 | 36 | %AWB_END 37 | -------------------------------------------------------------------------------- /modules/model/shared_library_model/SharedLib.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # * Foundation for making a shared library 24 | # * 25 | # *******************************************************************/ 26 | 27 | #/* 28 | # %AWB_START 29 | # 30 | # %name Shared Library Foundation 31 | # %desc Foundation to make a shared library instead of an executable 32 | # %provides model 33 | # %requires system controller 34 | # 35 | # %makefile SharedLib.template 36 | # 37 | # %AWB_END 38 | # */ 39 | -------------------------------------------------------------------------------- /modules/model/test_model/test_board/test_board.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2005-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * 21 | * Awb module specification 22 | * 23 | *******************************************************************/ 24 | 25 | /* 26 | * %AWB_START 27 | * 28 | * %name clockserver test board 29 | * %desc clockserver test board 30 | * %attributes test 31 | * 32 | * %provides board 33 | * %requires hardware_context 34 | * 35 | * %public test_board.h 36 | * %private test_board.cpp 37 | * 38 | * %export NUM_CHIPS 1 "Number of chips" 39 | * %export TOTAL_NUM_CPUS 1 "Number of cpus" 40 | * %export NUM_HWCS_PER_CPU 1 "Number of hwc per cpu" 41 | * 42 | * %param %dynamic NUM_DOMAINS 2 "Number of domains" 43 | * %param %dynamic NUM_THREADS 100 "Number of threads" 44 | * 45 | * %AWB_END 46 | */ 47 | -------------------------------------------------------------------------------- /modules/model/test_model/test_board/test_board.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * 4 | * @author Ramon Matas Navarro 5 | * 6 | *Copyright (C) 2005-2006 Intel Corporation 7 | * 8 | *This program is free software; you can redistribute it and/or 9 | *modify it under the terms of the GNU General Public License 10 | *as published by the Free Software Foundation; either version 2 11 | *of the License, or (at your option) any later version. 12 | * 13 | *This program is distributed in the hope that it will be useful, 14 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | *GNU General Public License for more details. 17 | * 18 | *You should have received a copy of the GNU General Public License 19 | *along with this program; if not, write to the Free Software 20 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #ifndef _BOARD_CLASS_ 24 | #define _BOARD_CLASS_ 25 | 26 | // ASIM core 27 | #include "asim/syntax.h" 28 | #include "asim/module.h" 29 | #include "asim/port.h" 30 | 31 | // ASIM messages 32 | 33 | /** 34 | * Class ASIM_BOARD_CLASS 35 | * 36 | * 37 | */ 38 | 39 | typedef class ASIM_BOARD_CLASS * ASIM_BOARD; 40 | 41 | class ASIM_BOARD_CLASS : public ASIM_MODULE_CLASS 42 | { 43 | 44 | public: 45 | 46 | // Constructor 47 | ASIM_BOARD_CLASS(ASIM_MODULE parent, const char * const name); 48 | 49 | // Destructor 50 | ~ASIM_BOARD_CLASS(); 51 | 52 | // Required by ASIM 53 | bool InitModule(); 54 | 55 | // Do a cycle of work... 56 | void Clock (UINT64 cycle); 57 | 58 | // Additional ASIM_BOARD public methods 59 | void DumpStats(STATE_OUT state_out, UINT64 statCycles, UINT64 * committed_insn); 60 | 61 | }; 62 | 63 | #endif /* _BOARD_CLASS_ */ 64 | -------------------------------------------------------------------------------- /modules/model/test_model/test_model.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # * Test model for testing facilities in base/ 24 | # * 25 | # *******************************************************************/ 26 | 27 | #/* 28 | # %AWB_START 29 | # 30 | # %name Test Model 31 | # %desc Model to test funcationality and independence of core 32 | # %provides model 33 | # %requires iaddr 34 | # 35 | # %private test_model.cpp 36 | # 37 | # %AWB_END 38 | # */ 39 | -------------------------------------------------------------------------------- /modules/null_package.awb: -------------------------------------------------------------------------------- 1 | #/******************************************************************** 2 | # * 3 | # * Awb module specification 4 | # * 5 | # *******************************************************************/ 6 | 7 | #/* 8 | # %AWB_START 9 | # 10 | # %name Null Package 11 | # %desc Null Package 12 | # %provides packages 13 | # %private null.pack 14 | # 15 | # %AWB_END 16 | # */ 17 | -------------------------------------------------------------------------------- /modules/power_model/null_power_model.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2005-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Null Power Model 26 | %desc Null Power Model 27 | %provides power_model 28 | %attributes power 29 | %public null_power_model.h 30 | 31 | %export %param PROJECT_NAME "nhm" "Project name for power macro enable" 32 | %export %dynamic SYSINT_VOLTAGE 0 "Default Sysint Voltage in mVolts" 33 | %export %dynamic CACHE_VOLTAGE 0 "Default Cache Voltage in mVolts" 34 | %export %dynamic IO_VOLTAGE 0 "Default IO Voltage in mVolts" 35 | %export %dynamic ANALOG_VOLTAGE 0 "Default Analog Voltage in mVolts" 36 | 37 | %AWB_END 38 | -------------------------------------------------------------------------------- /modules/system/ape_system/apeinst.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /******************************************************************** 20 | * 21 | * Awb module specification 22 | * 23 | *******************************************************************/ 24 | 25 | /* 26 | * %AWB_START 27 | * 28 | * %name APE Instruction Class 29 | * %desc APE Instruction Class 30 | * %provides cpu_inst 31 | * %public apeinst.h 32 | * %AWB_END 33 | */ 34 | -------------------------------------------------------------------------------- /modules/system/ape_system/apeinst.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /* 20 | * ***************************************************************** 21 | * * * 22 | 23 | /** 24 | * @file 25 | * @author Artur Klauser 26 | * 27 | * @brief A standalone CPU_INST for APE 28 | */ 29 | 30 | // ASIM public modules 31 | #include "asim/provides/cpu_inst.h" 32 | 33 | ASIM_MM_DEFINE(CPU_INST_CLASS, MAX_CPU_INST); 34 | 35 | ASIM_MM_DEFINE(CPU_BLOCKADDR_CLASS, MAX_BLOCKADDR); 36 | UINT64 CPU_BLOCKADDR_CLASS::uniqueBlockId; 37 | -------------------------------------------------------------------------------- /modules/system/ape_system/apeinst.h: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | /** 19 | * @file 20 | * @author 21 | * 22 | * @brief A standalone CPU_INST for APE 23 | * 24 | * A minimal set of declaration for APE for a standalone system, 25 | * not requiring any other complicated SYSTEM / CPU infrastructure. 26 | */ 27 | 28 | #ifndef _APEINST_ 29 | #define _APEINST_ 30 | 31 | // Maximum number of CPU_INST objects 32 | const UINT32 MAX_CPU_INST = 2048; 33 | 34 | #endif /* _APEINST_ */ 35 | -------------------------------------------------------------------------------- /modules/system/basesystem_classic/basesystem_classic.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ******************************************************************** 20 | * Awb module specification 21 | ******************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Basesystem classic 26 | %desc Basesystem - for classic controller 27 | %provides basesystem 28 | %requires default_adf 29 | 30 | %public basesystem_classic.h 31 | %private basesystem_classic.cpp 32 | 33 | %param %dynamic ADF_DEFAULT "$built-in$" "default ADF file to include into DRAL events file" 34 | 35 | %AWB_END 36 | -------------------------------------------------------------------------------- /modules/system/multi_chip_common_system_v2.awb: -------------------------------------------------------------------------------- 1 | ****************************************************************** 2 | Awb module specification 3 | ****************************************************************** 4 | 5 | 6 | %AWB_START 7 | 8 | %name Multi-Chip System Version 2 9 | %desc Multi-Chip System with DRAL API as a separate module 10 | %attributes multi 11 | %provides system 12 | %requires dral_api packages basesystem context_scheduler isa board warmup_manager power_model 13 | %public multi_chip_common_system.h 14 | %private multi_chip_common_system.cpp 15 | %library lib/libasim/libasim.a 16 | 17 | %export MAX_TOTAL_NUM_CPUS 128 "Maximum number of CPUS allowed" 18 | %export MAX_TOTAL_NUM_HWCS 128 "Maximum number of hardware contexts allowed" 19 | 20 | %export MAX_PTHREADS 1 "Maximum number of simulator threads" 21 | %export %dynamic LIMIT_PTHREADS 0 "Dynamic maximum simulator threads (0 == use MAX_PTHREADS)" 22 | 23 | %export PTHREAD_PER_BOARD 0 "Are board models run in parallel?" 24 | %export PTHREAD_PER_SOCKET 0 "Are socket models run in parallel?" 25 | %export PTHREAD_PER_CORE 0 "Are core models run in parallel?" 26 | %export PTHREAD_PER_UNIT 0 "Are unit models run in parallel?" 27 | %export PTHREAD_PER_MODULE 0 "Are all modules run in parallel?" 28 | 29 | %export %dynamic THREADED_CLOCKING 1 "Enables the threaded clocking" 30 | %export %dynamic RANDOM_CLOCKING_SEED 0 "Seed to clock modules in random order (0 == Fixed order)" 31 | %export %dynamic DUMP_CLOCKING_PROFILE 0 "Enables the Clock routine profiling" 32 | 33 | %param %dynamic SIMULATED_REGION_WEIGHT 10000 "The weight of the benchmark section from 1-10000" 34 | %param %dynamic SIMULATED_REGION_INSTRS_REPRESENTED 0 "Total instructions per CPU in benchmark represented by this region" 35 | 36 | %AWB_END 37 | -------------------------------------------------------------------------------- /modules/system/null_chip.awb: -------------------------------------------------------------------------------- 1 | Awb module specification 2 | 3 | %AWB_START 4 | 5 | %name Null chip 6 | %desc Null chip 7 | %attributes chip 8 | 9 | 10 | %provides chip 11 | %requires cpu 12 | 13 | %public null_chip.h 14 | %private null_chip.cpp 15 | 16 | %export TOTAL_NUM_CPUS 1 "Number of CPUs" 17 | 18 | %AWB_END 19 | 20 | -------------------------------------------------------------------------------- /modules/system/null_chip.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * @brief Chip 4 | * 5 | * @author Sailashri Parthasarathy (based on Mark Charney's original implementation) 6 | * 7 | * Copyright (c) 2003 Intel Corporation, all rights reserved. 8 | * THIS PROGRAM IS AN UNPUBLISHED WORK FULLY PROTECTED BY COPYRIGHT LAWS AND 9 | * IS CONSIDERED A TRADE SECRET BELONGING TO THE INTEL CORPORATION. 10 | * 11 | *****************************************************************************/ 12 | 13 | // generic 14 | #include 15 | #include 16 | #include 17 | 18 | // ASIM core 19 | #include "asim/trace.h" 20 | #include "asim/trackmem.h" 21 | #include "asim/cmd.h" 22 | //#include "asim/ioformat.h" 23 | 24 | // ASIM public modules 25 | #include "asim/provides/instfeeder_interface.h" 26 | #include "asim/provides/chip.h" 27 | 28 | 29 | ASIM_CHIP_CLASS::ASIM_CHIP_CLASS( 30 | ASIM_MODULE parent, // CONS 31 | const char* const name) 32 | : ASIM_MODULE_CLASS(parent, name) 33 | { 34 | NewClockDomain("CORE_CLOCK_DOMAIN", (float) 4); 35 | 36 | myCpu = new ASIM_CPU_CLASS*[TOTAL_NUM_CPUS]; 37 | for(int i = 0; i < TOTAL_NUM_CPUS; i++) 38 | { 39 | myCpu[i] = new ASIM_CPU_CLASS(this, "CPU",i); 40 | } 41 | } 42 | 43 | ASIM_CHIP_CLASS::~ASIM_CHIP_CLASS() 44 | { 45 | for(int i = 0; i < TOTAL_NUM_CPUS; i++) 46 | { 47 | delete myCpu[i]; 48 | } 49 | delete[] myCpu; 50 | } 51 | 52 | 53 | void 54 | ASIM_CHIP_CLASS::Clock( 55 | const UINT64 cycle) 56 | { 57 | for(int i = 0; i < TOTAL_NUM_CPUS; i++) 58 | { 59 | myCpu[i]->Clock(cycle); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /modules/system/null_chip.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * @brief test chip 4 | * 5 | * @author Mark Charney 6 | * 7 | * Copyright (c) 2003 Intel Corporation, all rights reserved. 8 | * THIS PROGRAM IS AN UNPUBLISHED WORK FULLY PROTECTED BY COPYRIGHT LAWS AND 9 | * IS CONSIDERED A TRADE SECRET BELONGING TO THE INTEL CORPORATION. 10 | * 11 | *****************************************************************************/ 12 | 13 | // Container for Common System functions 14 | /** 15 | * @file 16 | * @author Sailashri Parthasarathy (based on Chris Weaver's original implementation) 17 | * 18 | * @brief The chip for the null pipeline model 19 | */ 20 | 21 | #ifndef _CHIP_H_ 22 | #define _CHIP_H_ 23 | 24 | // generic 25 | //#include 26 | 27 | // ASIM core 28 | #include "asim/syntax.h" 29 | #include "asim/mesg.h" 30 | #include "asim/state.h" 31 | #include "asim/config.h" 32 | #include "asim/stateout.h" 33 | 34 | // ASIM public modules 35 | #include "asim/provides/cpu.h" 36 | 37 | 38 | typedef class ASIM_CHIP_CLASS *ASIM_CHIP; 39 | 40 | class ASIM_CHIP_CLASS : public ASIM_MODULE_CLASS 41 | { 42 | protected: 43 | ASIM_CPU_CLASS** myCpu; 44 | 45 | public: 46 | 47 | ASIM_CHIP_CLASS(ASIM_MODULE parent, //CONS 48 | const char* const name 49 | ); 50 | 51 | virtual ~ASIM_CHIP_CLASS(); 52 | bool InitModule() { return true; } 53 | 54 | void DumpStats(STATE_OUT state_out, 55 | const UINT64 stat_cycles, 56 | const UINT64* committed_insts) { }; 57 | 58 | void Clock(const UINT64 cycle); 59 | 60 | // should return the priority for this CPU in a CMP sytem. just return 0 in UP. 61 | UINT32 GetHWCPriority(UINT32 cpu_num) { return 0; }; 62 | }; 63 | 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /modules/system/single_chip_clockserver_system_v2.awb: -------------------------------------------------------------------------------- 1 | ****************************************************************** 2 | Awb module specification 3 | ****************************************************************** 4 | 5 | 6 | %AWB_START 7 | 8 | %name Single Chip Clockserver System Version 2 9 | %desc Single Chip System using a Clockserver with DRAL API as a seperate module 10 | %attributes single_chip 11 | %provides system 12 | %requires dral_api packages basesystem context_scheduler isa chip warmup_manager power_model 13 | %public single_chip_clockserver_system.h 14 | %private single_chip_clockserver_system.cpp 15 | %library lib/libasim/libasim.a 16 | 17 | %export MAX_TOTAL_NUM_CPUS 128 "Maximum number of CPUS allowed" 18 | %export MAX_TOTAL_NUM_HWCS 128 "Maximum number of hardware contexts allowed" 19 | 20 | %export MAX_PTHREADS 1 "Maximum number of simulator threads" 21 | %export %dynamic LIMIT_PTHREADS 0 "Dynamic maximum simulator threads (0 == use MAX_PTHREADS)" 22 | 23 | %export PTHREAD_PER_BOARD 0 "Are board models run in parallel?" 24 | %export PTHREAD_PER_SOCKET 0 "Are socket models run in parallel?" 25 | %export PTHREAD_PER_CORE 0 "Are core models run in parallel?" 26 | %export PTHREAD_PER_UNIT 0 "Are unit models run in parallel?" 27 | %export PTHREAD_PER_MODULE 0 "Are all modules run in parallel?" 28 | 29 | %export %dynamic THREADED_CLOCKING 1 "Enables the threaded clocking" 30 | %export %dynamic RANDOM_CLOCKING_SEED 0 "Seed to clock modules in random order (0 == Fixed order)" 31 | %export %dynamic DUMP_CLOCKING_PROFILE 0 "Enables the Clock routine profiling" 32 | 33 | %param %dynamic SIMULATED_REGION_WEIGHT 10000 "The weight of the benchmark section from 1-10000" 34 | %param %dynamic SIMULATED_REGION_INSTRS_REPRESENTED 0 "Total instructions per CPU in benchmark represented by this region" 35 | 36 | %AWB_END 37 | -------------------------------------------------------------------------------- /modules/system/system_minimal/null-iaddr.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ************************* AWB module specification ************************* 20 | 21 | %AWB_START 22 | 23 | %name Null iaddr 24 | %desc Null iaddr Stub for Silly Dependence 25 | 26 | %provides iaddr 27 | %public null-iaddr.h 28 | %private null-iaddr.cpp 29 | 30 | %AWB_END 31 | -------------------------------------------------------------------------------- /modules/system/system_minimal/null-iaddr.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ***************************************************************** 3 | * * * 4 | *Copyright (C) 2002-2006 Intel Corporation 5 | * 6 | *This program is free software; you can redistribute it and/or 7 | *modify it under the terms of the GNU General Public License 8 | *as published by the Free Software Foundation; either version 2 9 | *of the License, or (at your option) any later version. 10 | * 11 | *This program is distributed in the hope that it will be useful, 12 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | *GNU General Public License for more details. 15 | * 16 | *You should have received a copy of the GNU General Public License 17 | *along with this program; if not, write to the Free Software 18 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 | */ 20 | 21 | /** 22 | * @file 23 | * @author Artur Klauser 24 | * 25 | * @brief This file contains information about instruction addresses. 26 | */ 27 | 28 | // generic 29 | #include 30 | 31 | // ASIM core 32 | #include "asim/ioformat.h" 33 | 34 | // ASIM local module 35 | #include "null-iaddr.h" 36 | 37 | namespace iof = IoFormat; 38 | using namespace iof; 39 | using namespace std; 40 | 41 | // output operator 42 | ostream & 43 | operator << (ostream & os, const IADDR_CLASS & ia) 44 | { 45 | os << "0x0"; 46 | 47 | return os; 48 | } 49 | -------------------------------------------------------------------------------- /modules/system/system_minimal/system_mini.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2002-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | #/******************************************************************** 20 | # * 21 | # * Awb module specification 22 | # * 23 | # *******************************************************************/ 24 | 25 | #/* 26 | # %AWB_START 27 | # 28 | # %name Minimal system 29 | # %desc Minimal possible system 30 | # %provides system 31 | # %requires iaddr 32 | # 33 | # %public system_mini.h 34 | # %private system_mini.cpp 35 | # 36 | # %AWB_END 37 | # */ 38 | 39 | %export MAX_PTHREADS 1 "Maximum number of simulator threads" 40 | %export %dynamic LIMIT_PTHREADS 0 "Dynamic maximum simulator threads (0 == use MAX_PTHREADS)" 41 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/README: -------------------------------------------------------------------------------- 1 | ============================================================================== 2 | ASIM TARATI 3 | ============================================================================== 4 | 5 | The code in this directory implements the linkage between an ASIM system 6 | and the Tarati (ASIM external interface) server. 7 | 8 | For more information on Tarati, see the tarati directory. 9 | 10 | What is it 11 | ---------- 12 | 13 | The ASIM Tarati linkage implements helpers for interfacing an ASIM system 14 | to a Tarati server, e.g. registration of ASIM's Tarati Services. It also 15 | contains the code for the Services themselves. 16 | ASIM Tarati implements the following abstractions: 17 | 18 | System: 19 | The ASIM System - Tarati Server interface class with a small, well 20 | defined interface: 21 | // constructor 22 | AsimTaratiSystem (ASIM_SYSTEM system); 23 | // check for work 24 | void Work(void); 25 | The AsimTaratiSystem class registers/unregisters all ASIM Tarati 26 | Services on startup/shutdown and allows the Tarati Server to get control 27 | during normal operation if there is some work for it to be done. 28 | 29 | Services and Methods: 30 | All ASIM Tarati Services (subclassed from Service) and their 31 | associated Methods (subclassed from Method) are implemented here. 32 | This is the code that provides assess to ASIM's functionality via the 33 | Tarati interface. 34 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiGlobalState.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name ASIM Tarati Global State 26 | %desc ASIM Tarati Global State service 27 | %provides tarati_global_state 28 | 29 | %public taratiGlobalState.h 30 | %private taratiGlobalState.cpp 31 | 32 | %AWB_END 33 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiStats.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name ASIM Tarati Stats 26 | %desc ASIM Tarati Stats service 27 | %provides tarati_stats 28 | 29 | %public taratiStats.h 30 | %private taratiStats.cpp 31 | 32 | %AWB_END 33 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiSystem.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name ASIM Tarati System 26 | %desc ASIM Tarati System: server and services 27 | %provides tarati_system 28 | %requires tarati 29 | %requires tarati_tcl_beamer 30 | %requires tarati_global_state 31 | %requires tarati_stats 32 | %requires tarati_time_scheduler 33 | 34 | %public taratiSystem.h 35 | %private taratiSystem.cpp 36 | 37 | %AWB_END 38 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiSystem_Null.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name NULL ASIM Tarati System 26 | %desc NULL ASIM Tarati System: server and services 27 | %provides tarati_system 28 | 29 | %public taratiSystem_Null.h 30 | 31 | %AWB_END 32 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiSystem_Null.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief NULL implementation of ASIM Tarati System 23 | */ 24 | 25 | #ifndef _TARATI_SYSTEM_ 26 | #define _TARATI_SYSTEM_ 27 | 28 | // ASIM public modules 29 | #include "asim/provides/system.h" 30 | 31 | namespace AsimTarati { 32 | 33 | //---------------------------------------------------------------------------- 34 | // Tarati - ASIM System interaction - NULL implementation 35 | //---------------------------------------------------------------------------- 36 | class System 37 | { 38 | public: 39 | // methods 40 | System(ASIM_SYSTEM system) { /* nada */ }; 41 | ~System() { /* nada */ }; 42 | void Work(void) const { /* nada */ } 43 | int GetPort(void) const { return -1; } 44 | }; 45 | 46 | } // namespace AsimTarati 47 | 48 | #endif /* _TARATI_SYSTEM_ */ 49 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiTclBeamer.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name ASIM Tarati TCL Beamer 26 | %desc ASIM Tarati TCL Beamer service (remote TCL) 27 | %provides tarati_tcl_beamer 28 | 29 | %public taratiTclBeamer.h 30 | %private taratiTclBeamer.cpp 31 | 32 | %AWB_END 33 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiTimeScheduler.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name ASIM Tarati Time Scheduler 26 | %desc ASIM Tarati Time Scheduler service 27 | %provides tarati_time_scheduler 28 | 29 | %public taratiTimeScheduler.h 30 | %private taratiTimeScheduler.cpp 31 | 32 | %AWB_END 33 | -------------------------------------------------------------------------------- /modules/tarati/asimTarati/taratiTimeScheduler.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief ASIM Tarati Service: Time Scheduler 23 | */ 24 | 25 | // generic 26 | 27 | // ASIM local modules 28 | #include "taratiTimeScheduler.h" 29 | 30 | namespace AsimTarati { 31 | 32 | //---------------------------------------------------------------------------- 33 | // Tarati Services 34 | //---------------------------------------------------------------------------- 35 | TimeScheduler::TimeScheduler( 36 | Server * server) 37 | : Service(server, "TimeScheduler", "0.1") 38 | { 39 | method.hello = new Hello(this); 40 | } 41 | 42 | TimeScheduler::~TimeScheduler() 43 | { 44 | delete method.hello; 45 | } 46 | 47 | //---------------------------------------------------------------------------- 48 | // Methods 49 | //---------------------------------------------------------------------------- 50 | //----- Hello ----- 51 | void 52 | TimeScheduler::Hello::execute( 53 | XmlRpcValue & params, 54 | XmlRpcValue & result) 55 | { 56 | result = "Hello from TimeScheduler"; 57 | } 58 | 59 | } // namespace AsimTarati 60 | -------------------------------------------------------------------------------- /modules/tarati/tarati/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/modules/tarati/tarati/README -------------------------------------------------------------------------------- /modules/tarati/tarati/tarati.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Tarati 26 | %desc Tarati External Component Interface 27 | %provides tarati 28 | %requires xmlrpc 29 | 30 | -------------------------------------------------------------------------- 31 | %public taratiServer.h 32 | %private taratiServer.cpp 33 | %private taratiServer_Builtin.h taratiServer_Builtin.cpp 34 | %public taratiService.h 35 | %private taratiService.cpp 36 | %public taratiMethod.h 37 | %private taratiMethod.cpp 38 | %private taratiUtil.h taratiUtil.cpp 39 | -------------------------------------------------------------------------- 40 | 41 | %param %dynamic TARATI_SERVER_PORT 11088 "port number of Tarati server" 42 | 43 | %AWB_END 44 | -------------------------------------------------------------------------------- /modules/tarati/tarati/taratiMethod.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief Implementation of Tarati Method (externally callable) 23 | */ 24 | 25 | // generic 26 | 27 | // ASIM local module 28 | #include "taratiMethod.h" 29 | #include "taratiService.h" 30 | 31 | namespace Tarati { 32 | 33 | /** 34 | * Constructor for Tarati Service Mehthod base class 35 | */ 36 | Method::Method( 37 | Service * service, 38 | const string & name) 39 | : XmlRpcServerMethod ("undefined-method-name") 40 | { 41 | this->name = name; 42 | this->service = service; 43 | service->MethodRegister(this); 44 | } 45 | 46 | } // namespace Tarati 47 | -------------------------------------------------------------------------------- /modules/tarati/tarati/taratiUtil.cpp: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief Utility functions for Tarati. 23 | */ 24 | 25 | // generic 26 | 27 | // ASIM local module 28 | #include "taratiUtil.h" 29 | 30 | namespace Tarati { 31 | 32 | TaratiXmlRpcErrorHandler taratiXmlRpcErrorHandler; 33 | 34 | void 35 | TaratiXmlRpcErrorHandler::error( 36 | const char* msg) 37 | { 38 | std::cerr << "XmlRpc::Error " << std::endl; 39 | std::cerr << " " << msg << std::endl; 40 | } 41 | 42 | } // namespace Tarati 43 | -------------------------------------------------------------------------------- /modules/tarati/tarati/taratiUtil.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief Utility functions for Tarati. 23 | */ 24 | 25 | #ifndef _TARATI_UTIL_ 26 | #define _TARATI_UTIL_ 1 27 | 28 | // generic 29 | #include 30 | 31 | // XML-RPC low level transport library 32 | #include 33 | 34 | using namespace XmlRpc; 35 | 36 | namespace Tarati { 37 | 38 | // a simple error implementation 39 | #define TARATI_ERROR(a) \ 40 | std::cerr << "Tarati::Error " << __FILE__ << ":" << __LINE__ << std::endl; \ 41 | std::cerr << " " << a << std::endl; \ 42 | exit(1); 43 | 44 | /** 45 | * Error handler replacement for XmlRpc errors. 46 | */ 47 | class TaratiXmlRpcErrorHandler : public XmlRpcErrorHandler 48 | { 49 | public: 50 | void error(const char* msg); 51 | }; 52 | 53 | extern TaratiXmlRpcErrorHandler taratiXmlRpcErrorHandler; 54 | 55 | } // namespace Tarati 56 | 57 | #endif // _TARATI_UTIL_ 58 | -------------------------------------------------------------------------------- /modules/tarati/tarati/tarati_null.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Tarati-NULL 26 | %desc Tarati NULL stub 27 | %provides tarati 28 | 29 | %AWB_END 30 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/README: -------------------------------------------------------------------------------- 1 | (r2r): Mar 3 2003 2 | 3 | The directory xmlrpc++ is a copy of xmlrpc++-0.7 from 4 | http://sourceforge.net/projects/xmlrpcpp 5 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | # makefile written for gnu make 21 | CXX = g++ 22 | SRC = ./src 23 | CPPFLAGS = -I$(SRC) 24 | DEBUG = -g 25 | OPTIMIZE = -O2 26 | GCCWARN = -Wall -Wstrict-prototypes 27 | CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES) 28 | 29 | LIB = ./libXmlRpc.a 30 | 31 | # Add your system-dependent network libs here. These are 32 | # only used to build the tests (your application will need them too). 33 | # Linux: none 34 | # Solaris: -lsocket -lnsl 35 | #SYSTEMLIBS = -lsocket -lnsl 36 | SYSTEMLIBS = 37 | LDLIBS = $(LIB) $(SYSTEMLIBS) 38 | 39 | OBJ = $(SRC)/XmlRpcClient.o $(SRC)/XmlRpcDispatch.o \ 40 | $(SRC)/XmlRpcServer.o $(SRC)/XmlRpcServerConnection.o \ 41 | $(SRC)/XmlRpcServerMethod.o $(SRC)/XmlRpcSocket.o $(SRC)/XmlRpcSource.o \ 42 | $(SRC)/XmlRpcUtil.o $(SRC)/XmlRpcValue.o 43 | 44 | all: $(LIB) tests 45 | 46 | $(LIB): $(OBJ) 47 | $(AR) $(ARFLAGS) $(LIB) $(OBJ) 48 | 49 | 50 | tests: $(LIB) 51 | cd test && $(MAKE) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" SYSTEMLIBS="$(SYSTEMLIBS)" 52 | 53 | doc doxygen: 54 | cd src && doxygen Doxyfile 55 | 56 | clean: 57 | rm -f $(SRC)/*.o 58 | rm -f $(SRC)/*~ 59 | rm -f $(LIB) 60 | cd test && $(MAKE) clean 61 | 62 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/README.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/modules/tarati/xmlrpc/xmlrpc++/README.html -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/src/XmlRpcException.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _XMLRPCEXCEPTION_H_ 3 | #define _XMLRPCEXCEPTION_H_ 4 | // 5 | // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley 6 | // 7 | #if defined(_MSC_VER) 8 | # pragma warning(disable:4786) // identifier was truncated in debug info 9 | #endif 10 | 11 | #ifndef MAKEDEPEND 12 | # include 13 | #endif 14 | 15 | 16 | namespace XmlRpc { 17 | 18 | //! A class representing an error. 19 | //! If server methods throw this exception, a fault response is returned 20 | //! to the client. 21 | class XmlRpcException { 22 | public: 23 | //! Constructor 24 | //! @param message A descriptive error message 25 | //! @param code An integer error code 26 | XmlRpcException(const std::string& message, int code=-1) : 27 | _message(message), _code(code) {} 28 | 29 | //! Return the error message. 30 | const std::string& getMessage() const { return _message; } 31 | 32 | //! Return the error code. 33 | int getCode() const { return _code; } 34 | 35 | private: 36 | std::string _message; 37 | int _code; 38 | }; 39 | 40 | } 41 | 42 | #endif // _XMLRPCEXCEPTION_H_ 43 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/src/XmlRpcServerMethod.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "XmlRpcServerMethod.h" 3 | #include "XmlRpcServer.h" 4 | 5 | namespace XmlRpc { 6 | 7 | 8 | XmlRpcServerMethod::XmlRpcServerMethod(std::string const& name, XmlRpcServer* server) 9 | { 10 | _name = name; 11 | _server = server; 12 | if (_server) _server->addMethod(this); 13 | } 14 | 15 | XmlRpcServerMethod::~XmlRpcServerMethod() 16 | { 17 | if (_server) _server->removeMethod(this); 18 | } 19 | 20 | 21 | } // namespace XmlRpc 22 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/src/XmlRpcServerMethod.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _XMLRPCSERVERMETHOD_H_ 3 | #define _XMLRPCSERVERMETHOD_H_ 4 | // 5 | // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley 6 | // 7 | #if defined(_MSC_VER) 8 | # pragma warning(disable:4786) // identifier was truncated in debug info 9 | #endif 10 | 11 | #ifndef MAKEDEPEND 12 | # include 13 | #endif 14 | 15 | namespace XmlRpc { 16 | 17 | // Representation of a parameter or result value 18 | class XmlRpcValue; 19 | 20 | // The XmlRpcServer processes client requests to call RPCs 21 | class XmlRpcServer; 22 | 23 | //! Abstract class representing a single RPC method 24 | class XmlRpcServerMethod { 25 | public: 26 | //! Constructor 27 | XmlRpcServerMethod(std::string const& name, XmlRpcServer* server = 0); 28 | //! Destructor 29 | virtual ~XmlRpcServerMethod(); 30 | 31 | //! Returns the name of the method 32 | std::string& name() { return _name; } 33 | 34 | //! Execute the method. Subclasses must provide a definition for this method. 35 | virtual void execute(XmlRpcValue& params, XmlRpcValue& result) = 0; 36 | 37 | //! Returns a help string for the method. 38 | //! Subclasses should define this method if introspection is being used. 39 | virtual std::string help() { return std::string(); } 40 | 41 | protected: 42 | std::string _name; 43 | XmlRpcServer* _server; 44 | }; 45 | } // namespace XmlRpc 46 | 47 | #endif // _XMLRPCSERVERMETHOD_H_ 48 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/src/XmlRpcSource.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "XmlRpcSource.h" 3 | #include "XmlRpcSocket.h" 4 | #include "XmlRpcUtil.h" 5 | 6 | namespace XmlRpc { 7 | 8 | 9 | XmlRpcSource::XmlRpcSource(int fd /*= -1*/, bool deleteOnClose /*= false*/) 10 | : _fd(fd), _deleteOnClose(deleteOnClose), _keepOpen(false) 11 | { 12 | } 13 | 14 | XmlRpcSource::~XmlRpcSource() 15 | { 16 | } 17 | 18 | 19 | void 20 | XmlRpcSource::close() 21 | { 22 | if (_fd != -1) { 23 | XmlRpcUtil::log(2,"XmlRpcSource::close: closing socket %d.", _fd); 24 | XmlRpcSocket::close(_fd); 25 | XmlRpcUtil::log(2,"XmlRpcSource::close: done closing socket %d.", _fd); 26 | _fd = -1; 27 | } 28 | if (_deleteOnClose) { 29 | XmlRpcUtil::log(2,"XmlRpcSource::close: deleting this"); 30 | _deleteOnClose = false; 31 | delete this; 32 | } 33 | } 34 | 35 | } // namespace XmlRpc 36 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/src/base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/modules/tarati/xmlrpc/xmlrpc++/src/base64.h -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/test/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | # makefile written for gnu make 21 | CXX = /usr/local/gcc-3.1/bin/g++ 22 | SRC = ../src 23 | CPPFLAGS = -I$(SRC) 24 | DEBUG = -g 25 | #OPTIMIZE = -O2 26 | GCCWARN = -Wall -Wstrict-prototypes 27 | CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES) 28 | 29 | LIB = ../libXmlRpc.a 30 | 31 | # Add your system-dependent network libs here 32 | # Solaris: -lsocket -lnsl 33 | SYSTEMLIBS = 34 | 35 | LDLIBS = $(SYSTEMLIBS) $(LIB) 36 | 37 | TESTS = HelloClient HelloServer TestBase64Client TestBase64Server TestValues TestXml Validator 38 | 39 | all: $(TESTS) 40 | 41 | $(TESTS): $(LIB) 42 | 43 | clean: 44 | rm -f *.o 45 | rm -f $(TESTS) 46 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/test/countTheEntities.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | validator1.countTheEntities 4 | 5 | 6 | &''<&"'>ehv<>iu'<<qo>"z"f 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/test/easyStructTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | validator1.easyStructTest 4 | 5 | 6 | 7 | 8 | curly 9 | 10 | -78 11 | 12 | 13 | 14 | larry 15 | 16 | 23 17 | 18 | 19 | 20 | moe 21 | 22 | 38 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc++/test/echo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | echo 4 | 5 | Hello Chris 6 | 123 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /modules/tarati/xmlrpc/xmlrpc_null.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name XML-RPC-NULL 26 | %desc XML-RPC NULL stub 27 | %provides xmlrpc 28 | 29 | %AWB_END 30 | -------------------------------------------------------------------------------- /modules/warmup/dante_warmup.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Warm-up Manager for Dante 26 | %desc Warm-up Manager for Dante core models 27 | %provides warmup_manager 28 | %public warmup_instrs.h 29 | %private warmup_instrs.cpp dante_do_warmup.cpp 30 | 31 | %param %dynamic ENABLE_WARMUP 1 "Use warm-up data supplied by feeder" 32 | %param %dynamic NUM_WARMUP_INSTR 0 "Number of instructions to warm up" 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /modules/warmup/null_warmup_manager.awb: -------------------------------------------------------------------------------- 1 | %AWB_START 2 | 3 | %name Null Warm-up Manager 4 | %desc Warm-up Manager -- Null implementation for models not using warmup 5 | %provides warmup_manager 6 | %public null_warmup_manager.h 7 | 8 | %const ENABLE_WARMUP 0 "Use warm-up data supplied by feeder" 9 | 10 | %AWB_END 11 | -------------------------------------------------------------------------------- /modules/warmup/warmup_instrs.awb: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (C) 2004-2006 Intel Corporation 3 | * 4 | *This program is free software; you can redistribute it and/or 5 | *modify it under the terms of the GNU General Public License 6 | *as published by the Free Software Foundation; either version 2 7 | *of the License, or (at your option) any later version. 8 | * 9 | *This program is distributed in the hope that it will be useful, 10 | *but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | *GNU General Public License for more details. 13 | * 14 | *You should have received a copy of the GNU General Public License 15 | *along with this program; if not, write to the Free Software 16 | *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | ****************************************************************** 20 | Awb module specification 21 | ****************************************************************** 22 | 23 | %AWB_START 24 | 25 | %name Warm-up Manager -- Instruction Based 26 | %desc Warm-up Manager -- Instruction Based 27 | %provides warmup_manager 28 | %attributes warmup 29 | %public warmup_instrs.h 30 | %private warmup_instrs.cpp do_warmup.cpp 31 | 32 | %param %dynamic ENABLE_WARMUP 1 "Use warm-up data supplied by feeder" 33 | 34 | %AWB_END 35 | -------------------------------------------------------------------------------- /reconf_all: -------------------------------------------------------------------------------- 1 | : 2 | rm -rf autom4te.cache config.sub depcomp ltmain.sh configure missing aclocal.m4 install-sh config.guess 3 | aclocal 4 | autoheader 5 | automake -c -a --foreign 6 | autoconf 7 | ./configure --enable-maintainer-mode 8 | -------------------------------------------------------------------------------- /share/apm-edit.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Architect's Workbench Model/Design Editor 3 | Comment=Edit awb-based models/designs 4 | MimeType=application/x-apm; 5 | TryExec=apm-edit 6 | Exec=apm-edit 7 | Icon=apm-edit 8 | Terminal=false 9 | Type=Application 10 | StartupNotify=true 11 | Categories=Development;Qt 12 | 13 | -------------------------------------------------------------------------------- /share/awb.config.template.in: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | [Global] 20 | VERSION=1.4 21 | Class=Asim::Workspace 22 | # Display splash (1) or not (0) 23 | SPLASH=1 24 | 25 | [Vars] 26 | private=src 27 | shared=@prefix@/share/asim 28 | components={@package@} 29 | 30 | [Paths] 31 | # Directory containing ASIM source tree 32 | ASIMDIR=$(shared)/@package@/@release@ 33 | 34 | # Directory containing actual benchmarks 35 | BENCHMARKDIR=@prefix@/share/benchmarks 36 | 37 | # Directory to do model builds in 38 | #BUILDDIR=build 39 | 40 | # Path where we search for ASIM files 41 | SEARCHPATH=$(private)/$(components):$(shared)/@package@/@release@:$(shared)awb/@release@ 42 | 43 | [Package] 44 | # Configure flags for all packages in this workspace 45 | CONFIGFLAGS= 46 | 47 | # Make flags for all packages in this workspace 48 | MAKEFLAGS= 49 | 50 | [Build] 51 | # Make flags for all model builds 52 | MAKEFLAGS= 53 | 54 | # Compiler (GEM | GNU) 55 | COMPILER=GNU 56 | 57 | # Do parallel make (1) or not (0) 58 | PARALLEL=1 59 | 60 | # DEBUG or OPTIMIZE 61 | BUILDTYPE=OPTIMIZE 62 | 63 | # Build models with (1) or without (0) support for events 64 | EVENTS=0 65 | -------------------------------------------------------------------------------- /share/awb.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Architect's Workbench 3 | Comment=Explore, configure, build and run awb-based models/designs 4 | TryExec=awb 5 | Exec=awb 6 | Icon=awb 7 | Terminal=false 8 | Type=Application 9 | StartupNotify=true 10 | Categories=Development;Qt 11 | -------------------------------------------------------------------------------- /tools/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2002-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | if QT4_BUILD 21 | AWB_DIR = awb 22 | else 23 | AWB_DIR = awb_qt3 24 | endif 25 | SUBDIRS=scripts $(AWB_DIR) 26 | -------------------------------------------------------------------------------- /tools/awb/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2002-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | SUBDIRS= @NO_GUI@ @NO_PERLGUI@ awb awb-resolver amc apm-edit apm-find-replace awb-wizard 21 | -------------------------------------------------------------------------------- /tools/awb/amc/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2002-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | tool_PROGRAMS = amc 21 | amc_SOURCES = amc.cpp 22 | AM_CPPFLAGS = -I$(top_srcdir)/lib 23 | if X86_64_LIBTOOL_HACK 24 | amc_LDADD = $(top_builddir)/lib/libawb/.libs/libawb.a -lpopt 25 | else 26 | amc_LDADD = $(top_builddir)/lib/libawb/libawb.la -lpopt 27 | endif 28 | 29 | EXTRA_DIST = doxygen.config 30 | #----------------------------------------------------------------------------- 31 | # Generate documentation with Doxygen 32 | #----------------------------------------------------------------------------- 33 | .PHONY: dox 34 | dox: doxygen.config 35 | doxygen doxygen.config 36 | @echo "Doxygen output is at `pwd`/dox/html/index.html" 37 | 38 | clean-local: 39 | @rm -rf dox 40 | 41 | # maybe explicitly link this, avoiding use of broken libtool: 42 | if X86_64_LIBTOOL_HACK 43 | amc: $(amc_OBJECTS) 44 | $(CXXLD) -o amc $(ARCHFLAGS) $(amc_OBJECTS) $(amc_LDADD) 45 | endif 46 | -------------------------------------------------------------------------------- /tools/awb/apm-edit/apm_edit.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/check.png 4 | images/editcopy.png 5 | images/editcut.png 6 | images/editpaste.png 7 | images/filenew.png 8 | images/fileopen.png 9 | images/filesave.png 10 | images/module_current.png 11 | images/module_default.png 12 | images/module_missing.png 13 | images/module.png 14 | images/print.png 15 | images/redo.png 16 | images/searchfind.png 17 | images/submodel_blue.png 18 | images/submodel.png 19 | images/submodel_red.png 20 | images/submodel_yellow.png 21 | images/undo.png 22 | images/whatsthis.png 23 | 24 | 25 | -------------------------------------------------------------------------------- /tools/awb/apm-edit/apm_edit_about.pm: -------------------------------------------------------------------------------- 1 | package apm_edit_about; 2 | 3 | use strict; 4 | use warnings; 5 | 6 | use QtCore4; 7 | use QtGui4; 8 | use QtCore4::isa qw(Qt::Dialog); 9 | 10 | sub NEW 11 | { 12 | my ( $class, $parent ) = @_; 13 | $class->SUPER::NEW($parent); 14 | this->{ui} = Ui_Apm_edit_about->setupUi(this); 15 | return this(); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /tools/awb/apm-edit/apm_edit_about.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | apm_edit_about 7 | 8 | 9 | 10 | 0 11 | 0 12 | 245 13 | 144 14 | 15 | 16 | 17 | about 18 | 19 | 20 | 21 | 22 | 10 23 | 10 24 | 221 25 | 90 26 | 27 | 28 | 29 | APM Edit 30 | 31 | 32 | Qt::AlignCenter 33 | 34 | 35 | false 36 | 37 | 38 | 39 | 40 | 41 | 100 42 | 110 43 | 51 44 | 31 45 | 46 | 47 | 48 | Ok 49 | 50 | 51 | 52 | 53 | qPixmapFromMimeSource 54 | 55 | 56 | PushButton6 57 | clicked() 58 | apm_edit_about 59 | close() 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /tools/awb/apm-edit/apm_edit_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | # add this to the command line to debug: -MQt::debug=calls,gc,ambiguous,verbose 5 | 6 | 7 | ################################################################################## 8 | # 9 | # Copyright (C) 2002-2012 Intel Corporation 10 | # 11 | # This program is free software; you can redistribute it and/or 12 | # modify it under the terms of the GNU General Public License 13 | # as published by the Free Software Foundation; either version 2 14 | # of the License, or (at your option) any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software 23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24 | # 25 | # 26 | ################################################################################## 27 | 28 | # Author: Joel Emer 29 | # Date: October 2002 30 | # Purpose: 31 | # A GUI interface to find, build and run models 32 | # 33 | # Author: Mohit Gambhir 34 | # Date: August 2012 35 | # Modification: 36 | # Port to PerQt4 37 | -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/check.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/editcopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/editcopy.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/editcut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/editcut.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/editpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/editpaste.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/filenew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/filenew.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/fileopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/fileopen.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/filesave.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/module.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/module_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/module_current.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/module_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/module_default.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/module_missing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/module_missing.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/print.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/redo.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/searchfind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/searchfind.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/submodel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/submodel.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/submodel_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/submodel_blue.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/submodel_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/submodel_red.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/submodel_yellow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/submodel_yellow.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/undo.png -------------------------------------------------------------------------------- /tools/awb/apm-edit/images/whatsthis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/apm-edit/images/whatsthis.png -------------------------------------------------------------------------------- /tools/awb/apm-find-replace/Makefile.am: -------------------------------------------------------------------------------- 1 | tool_PROGRAMS= apm-find-replace 2 | 3 | apm_find_replace_SOURCES = apm_find_replace_head.pl \ 4 | apm_find_replace.ui \ 5 | apm_find_replace.pm \ 6 | apm_find_replace_main.pl 7 | 8 | apm-find-replace$(EXEEXT): apm_find_replace_head.pl apm_find_replace.ui.pm apm_find_replace.pm apm_find_replace_main.pl 9 | cat apm_find_replace_head.pl apm_find_replace.ui.pm apm_find_replace.pm apm_find_replace_main.pl >$@ 10 | chmod +x $@ 11 | 12 | apm_find_replace.ui.pm: apm_find_replace.ui 13 | 14 | %.ui.pm: %.ui 15 | puic4 -o $@ $< 16 | 17 | 18 | # 19 | # Convert perl documentation to man page and install 20 | # 21 | 22 | PERLRUN = perl 23 | MAN1EXT = 1 24 | MANPERM = 644 25 | MAN1DIR=$(mandir)/man1 26 | POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" 27 | POD2MAN = $(POD2MAN_EXE) --section=$(MAN1EXT) --perm_rw=$(MANPERM) 28 | 29 | install-data-hook: 30 | $(mkinstalldirs) $(DESTDIR)$(MAN1DIR) 31 | $(POD2MAN) apm-find-replace $(DESTDIR)$(MAN1DIR)/apm-find-replace.$(MAN1EXT) 32 | 33 | 34 | 35 | CLEANFILES = *.ui.pm 36 | 37 | -------------------------------------------------------------------------------- /tools/awb/apm-find-replace/apm_find_replace_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (c) 2012 Intel Corporation, all rights reserved. 7 | # THIS PROGRAM IS AN UNPUBLISHED WORK FULLY PROTECTED BY COPYRIGHT LAWS AND 8 | # IS CONSIDERED A TRADE SECRET BELONGING TO THE INTEL CORPORATION. 9 | # 10 | ################################################################################## 11 | 12 | # Author: Joel Emer 13 | # Date: May 2007 14 | # Purpose: 15 | # A GUI interface to find and replace modules 16 | # 17 | # Author: Mohit Gambhir 18 | # Date: May 2012 19 | # Purpose: 20 | # Port to PerlQt4 21 | # 22 | # 23 | # Turn on warnings 24 | # 25 | $^W = 1; 26 | 27 | -------------------------------------------------------------------------------- /tools/awb/awb-resolver/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | bin_PROGRAMS = awb-resolver 21 | awb_resolver_SOURCES = awb-resolver.cpp 22 | AM_CPPFLAGS = -I$(top_srcdir)/lib 23 | 24 | if X86_64_LIBTOOL_HACK 25 | awb_resolver_LDADD = -lgcc_s -lpopt $(top_builddir)/lib/libawb/.libs/libawb.a 26 | else 27 | awb_resolver_LDADD = $(top_builddir)/lib/libawb/libawb.la -lpopt 28 | endif 29 | 30 | EXTRA_DIST = doxygen.config 31 | #----------------------------------------------------------------------------- 32 | # Generate documentation with Doxygen 33 | #----------------------------------------------------------------------------- 34 | .PHONY: dox 35 | dox: doxygen.config 36 | doxygen doxygen.config 37 | @echo "Doxygen output is at `pwd`/dox/html/index.html" 38 | 39 | clean-local: 40 | @rm -rf dox 41 | 42 | # maybe explicitly link this, avoiding use of broken libtool: 43 | if X86_64_LIBTOOL_HACK 44 | awb-resolver: $(awb_resolver_OBJECTS) 45 | $(CXXLD) -o awb-resolver $(ARCHFLAGS) $(awb_resolver_OBJECTS) $(awb_resolver_LDADD) 46 | endif 47 | -------------------------------------------------------------------------------- /tools/awb/awb-resolver/awb-resolver.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 2 7 | * of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief AWB Resolver - filename resolution and queries of union dirs 23 | */ 24 | 25 | #ifndef _AWB_RESOLVER_ 26 | #define _AWB_RESOLVER_ 1 27 | 28 | // local 29 | #include "libawb/workspace.h" 30 | 31 | using namespace std; 32 | 33 | class AWB_RESOLVER { 34 | private: 35 | Workspace * workspace; 36 | UnionDir * sourceTree; 37 | 38 | /// command line flags are these command types 39 | enum command_types { 40 | CMD_HELP = 1, 41 | CMD_USAGE, 42 | CMD_CONFIG, 43 | CMD_GLOB, 44 | CMD_PREFIX, 45 | CMD_SUFFIX 46 | }; 47 | 48 | public: 49 | // constructors / destructors 50 | AWB_RESOLVER(); 51 | ~AWB_RESOLVER(); 52 | 53 | void ProcessCommandLine (int argc, char ** argv); 54 | 55 | private: 56 | void PrintHelp (const poptContext & optContext); 57 | void PrintSearchPath (ostream & out, const string & prefix); 58 | }; 59 | 60 | #endif // _AWB_RESOLVER_ 61 | -------------------------------------------------------------------------------- /tools/awb/awb-wizard/awb_wizard.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/filebuild.png 4 | images/filenew.png 5 | images/fileopen.png 6 | images/filesave.png 7 | images/whatsthis.png 8 | 9 | 10 | -------------------------------------------------------------------------------- /tools/awb/awb-wizard/awb_wizard_about.pm: -------------------------------------------------------------------------------- 1 | package awb_wizard_about; 2 | 3 | use strict; 4 | use warnings; 5 | 6 | use QtCore4; 7 | use QtGui4; 8 | use QtCore4::isa qw(Qt::Dialog); 9 | 10 | sub NEW 11 | { 12 | my ( $class, $parent ) = @_; 13 | $class->SUPER::NEW($parent); 14 | this->{ui} = Ui_Awb_about->setupUi(this); 15 | return this(); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /tools/awb/awb-wizard/awb_wizard_about.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | awb_about 4 | 5 | 6 | 7 | 0 8 | 0 9 | 313 10 | 224 11 | 12 | 13 | 14 | About AWB 15 | 16 | 17 | 18 | 19 | 50 20 | 10 21 | 210 22 | 160 23 | 24 | 25 | 26 | Awb - The Architects Workbench The Asim Team Intel Corporation Copyright 2012 Version 3.0 August 2012 27 | 28 | 29 | Qt::PlainText 30 | 31 | 32 | Qt::AlignCenter 33 | 34 | 35 | true 36 | 37 | 38 | 39 | 40 | 41 | 130 42 | 170 43 | 50 44 | 30 45 | 46 | 47 | 48 | OK 49 | 50 | 51 | 52 | 53 | qPixmapFromMimeSource 54 | 55 | 56 | 57 | button_ok 58 | clicked() 59 | awb_about 60 | accept() 61 | 62 | 63 | 20 64 | 20 65 | 66 | 67 | 20 68 | 20 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /tools/awb/awb-wizard/awb_wizard_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (C) 2002-20012 Intel Corporation 7 | # 8 | # This program is free software; you can redistribute it and/or 9 | # modify it under the terms of the GNU General Public License 10 | # as published by the Free Software Foundation; either version 2 11 | # of the License, or (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 | # 22 | # 23 | ################################################################################## 24 | 25 | # Author: Joel Emer 26 | # Date: November 2002 27 | # Purpose: 28 | # A GUI interface to create a new module 29 | # 30 | # Author: Mohit Gambhir 31 | # Date: September 2012 32 | # Modification: 33 | # Port to PerQt4 34 | # 35 | # Turn on warnings 36 | # 37 | $^W = 1; 38 | 39 | -------------------------------------------------------------------------------- /tools/awb/awb-wizard/images/filebuild.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/awb-wizard/images/filebuild.png -------------------------------------------------------------------------------- /tools/awb/awb-wizard/images/filenew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/awb-wizard/images/filenew.png -------------------------------------------------------------------------------- /tools/awb/awb-wizard/images/fileopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/awb-wizard/images/fileopen.png -------------------------------------------------------------------------------- /tools/awb/awb-wizard/images/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/awb-wizard/images/filesave.png -------------------------------------------------------------------------------- /tools/awb/awb-wizard/images/whatsthis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb/awb-wizard/images/whatsthis.png -------------------------------------------------------------------------------- /tools/awb/awb/awb_about.pm: -------------------------------------------------------------------------------- 1 | package awb_about; 2 | 3 | use strict; 4 | use warnings; 5 | 6 | use QtCore4; 7 | use QtGui4; 8 | use QtCore4::isa qw(Qt::Dialog); 9 | 10 | sub NEW 11 | { 12 | my ( $class, $parent ) = @_; 13 | $class->SUPER::NEW($parent); 14 | this->{ui} = Ui_Awb_about->setupUi(this); 15 | return this(); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /tools/awb/awb/awb_about.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | awb_about 4 | 5 | 6 | 7 | 0 8 | 0 9 | 313 10 | 224 11 | 12 | 13 | 14 | About AWB 15 | 16 | 17 | 18 | 19 | 50 20 | 10 21 | 210 22 | 160 23 | 24 | 25 | 26 | Awb - The Architects Workbench The Asim Team Intel Corporation Copyright 20 Version 3.0 August 2012 27 | 28 | 29 | Qt::PlainText 30 | 31 | 32 | Qt::AlignCenter 33 | 34 | 35 | true 36 | 37 | 38 | 39 | 40 | 41 | 130 42 | 170 43 | 50 44 | 30 45 | 46 | 47 | 48 | OK 49 | 50 | 51 | 52 | 53 | qPixmapFromMimeSource 54 | 55 | 56 | 57 | button_ok 58 | clicked() 59 | awb_about 60 | accept() 61 | 62 | 63 | 20 64 | 20 65 | 66 | 67 | 20 68 | 20 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /tools/awb/awb/awb_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (C) 2002-2012 Intel Corporation 7 | # 8 | # This program is free software; you can redistribute it and/or 9 | # modify it under the terms of the GNU General Public License 10 | # as published by the Free Software Foundation; either version 2 11 | # of the License, or (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 | # 22 | # 23 | ################################################################################## 24 | 25 | # Author: Joel Emer 26 | # Date: October 2002 27 | # Purpose: 28 | # A GUI interface to find, build and run models 29 | # 30 | # Author: Mohit Gambhir 31 | # Date: July 2012 32 | # Modification: 33 | # Port to PerlQt4 34 | 35 | # 36 | # Turn on warnings 37 | # 38 | $^W = 1; 39 | 40 | 41 | -------------------------------------------------------------------------------- /tools/awb_qt3/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2002-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | SUBDIRS=amc awb-resolver @NO_GUI@ @NO_PERLGUI@ awb2 apm-edit apm-find-replace awb-wizard 21 | 22 | # create soft links from old tool names 23 | install-data-hook: 24 | @(cd $(DESTDIR)$(tooldir); $(LN_S) -f awb2 awb) 25 | 26 | -------------------------------------------------------------------------------- /tools/awb_qt3/amc/.gdbinit: -------------------------------------------------------------------------------- 1 | file ./amc 2 | set args --benchmark config/bm/Traces/GTrace/Test/test-gtrace.cfg --model config/pm/ipf/tang_inorder/tang_inorder.apm --builddir foo --buildopt "OPT=0 DEBUG=1 PAR=1 -j2 CC=gcc3 CXX=g++3" --rundir bar --runopt "-c 100" nuke configure 3 | -------------------------------------------------------------------------------- /tools/awb_qt3/amc/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2002-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | tool_PROGRAMS = amc 21 | amc_SOURCES = amc.cpp 22 | AM_CPPFLAGS = -I$(top_srcdir)/lib 23 | if X86_64_LIBTOOL_HACK 24 | amc_LDADD = $(top_builddir)/lib/libawb/.libs/libawb.a -lpopt 25 | else 26 | amc_LDADD = $(top_builddir)/lib/libawb/libawb.la -lpopt 27 | endif 28 | 29 | EXTRA_DIST = doxygen.config 30 | #----------------------------------------------------------------------------- 31 | # Generate documentation with Doxygen 32 | #----------------------------------------------------------------------------- 33 | .PHONY: dox 34 | dox: doxygen.config 35 | doxygen doxygen.config 36 | @echo "Doxygen output is at `pwd`/dox/html/index.html" 37 | 38 | clean-local: 39 | @rm -rf dox 40 | 41 | # maybe explicitly link this, avoiding use of broken libtool: 42 | if X86_64_LIBTOOL_HACK 43 | amc: $(amc_OBJECTS) 44 | $(CXXLD) -o amc $(ARCHFLAGS) $(amc_OBJECTS) $(amc_LDADD) 45 | endif 46 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/apm-edit.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | LANGUAGE = C++ 3 | 4 | CONFIG += qt warn_on release 5 | 6 | FORMS = apm_edit_about.ui \ 7 | apm_edit.ui \ 8 | runlog.ui \ 9 | apm_edit_properties.ui 10 | 11 | IMAGES = images/editcopy.png \ 12 | images/editcut.png \ 13 | images/editpaste.png \ 14 | images/filenew.png \ 15 | images/fileopen.png \ 16 | images/filesave.png \ 17 | images/module.png \ 18 | images/module_default.png \ 19 | images/module_missing.png \ 20 | images/print.png \ 21 | images/redo.png \ 22 | images/searchfind.png \ 23 | images/undo.png \ 24 | images/whatsthis.png 25 | 26 | unix { 27 | UI_DIR = .ui 28 | MOC_DIR = .moc 29 | OBJECTS_DIR = .obj 30 | } 31 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/apm_edit_about.ui: -------------------------------------------------------------------------------- 1 | 2 | apm_edit_about 3 | 4 | 5 | apm_edit_about 6 | 7 | 8 | 9 | 0 10 | 0 11 | 245 12 | 144 13 | 14 | 15 | 16 | about 17 | 18 | 19 | 20 | TextLabel1 21 | 22 | 23 | 24 | 10 25 | 10 26 | 221 27 | 90 28 | 29 | 30 | 31 | APM Edit 32 | 33 | 34 | AlignCenter 35 | 36 | 37 | 38 | 39 | PushButton6 40 | 41 | 42 | 43 | 100 44 | 110 45 | 51 46 | 31 47 | 48 | 49 | 50 | Ok 51 | 52 | 53 | 54 | 55 | 56 | PushButton6 57 | clicked() 58 | apm_edit_about 59 | close() 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/apm_edit_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | # add this to the command line to debug: -MQt::debug=calls,gc,ambiguous,verbose 5 | 6 | 7 | ################################################################################## 8 | # 9 | # Copyright (C) 2002-2006 Intel Corporation 10 | # 11 | # This program is free software; you can redistribute it and/or 12 | # modify it under the terms of the GNU General Public License 13 | # as published by the Free Software Foundation; either version 2 14 | # of the License, or (at your option) any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software 23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24 | # 25 | # 26 | ################################################################################## 27 | 28 | # Author: Joel Emer 29 | # Date: October 2002 30 | # Purpose: 31 | # A GUI interface to find, build and run models 32 | # 33 | 34 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/apm_edit_pixmap.pl: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | 21 | package apm_edit; 22 | 23 | sub apm_edit_load_pixmap 24 | { 25 | my $pix = Qt::Pixmap(); 26 | my $m = Qt::MimeSourceFactory::defaultFactory()->data(shift); 27 | 28 | if($m) 29 | { 30 | 31 | Qt::ImageDrag::decode($m, $pix); 32 | } 33 | 34 | return $pix; 35 | } 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/colored_list_view_item.pm: -------------------------------------------------------------------------------- 1 | use strict; 2 | 3 | package ColoredListViewItem; 4 | use Qt; 5 | use Qt::isa qw(Qt::ListViewItem); 6 | use Qt::attributes qw(backgroundColor); 7 | 8 | sub NEW 9 | { 10 | my $self = shift; 11 | my $parent = shift; 12 | my $label1 = shift; 13 | my $label2 = shift; 14 | $self->SUPER::NEW($parent, $label1, $label2); 15 | backgroundColor = Qt::Color(@_); 16 | } 17 | 18 | sub paintCell 19 | { 20 | my $painter = shift; 21 | my $cg = shift; 22 | my $column = shift; 23 | my $width = shift; 24 | my $align = shift; 25 | 26 | my $grp = Qt::ColorGroup($cg); 27 | 28 | $painter->save(); 29 | 30 | $grp->setColor(Qt::ColorGroup::Base(), backgroundColor); 31 | 32 | # 33 | # NOTE: This is in an eval block since a perlqt bug 34 | # sometimes causes a SEGV on these operations 35 | # 36 | eval { 37 | SUPER->paintCell($painter, $grp, $column, $width, $align); 38 | }; 39 | 40 | $painter->restore(); 41 | } 42 | 43 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-edit/fix-ui: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Later versions of qt3 designer create output that is not compatible 5 | # with perlqt's puic. This script attempts to revert the changes that 6 | # make the ui file compatible once again. 7 | # 8 | 9 | # Fixes for apm_edit 10 | 11 | # Patch actiongroup and iconsets 12 | patch $@ 9 | chmod +x $@ 10 | 11 | apm_find_replace.ui.pm: apm_find_replace.ui apm_find_replace.ui.h 12 | 13 | %.ui.pm: %.ui 14 | puic -o $@ $< 15 | 16 | 17 | # 18 | # Convert perl documentation to man page and install 19 | # 20 | 21 | PERLRUN = perl 22 | MAN1EXT = 1 23 | MANPERM = 644 24 | MAN1DIR=$(mandir)/man1 25 | POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" 26 | POD2MAN = $(POD2MAN_EXE) --section=$(MAN1EXT) --perm_rw=$(MANPERM) 27 | 28 | install-data-hook: 29 | $(mkinstalldirs) $(DESTDIR)$(MAN1DIR) 30 | $(POD2MAN) apm-find-replace $(DESTDIR)$(MAN1DIR)/apm-find-replace.$(MAN1EXT) 31 | 32 | 33 | 34 | CLEANFILES = *.ui.pm 35 | 36 | -------------------------------------------------------------------------------- /tools/awb_qt3/apm-find-replace/apm_find_replace_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (c) 2007 Intel Corporation, all rights reserved. 7 | # THIS PROGRAM IS AN UNPUBLISHED WORK FULLY PROTECTED BY COPYRIGHT LAWS AND 8 | # IS CONSIDERED A TRADE SECRET BELONGING TO THE INTEL CORPORATION. 9 | # 10 | ################################################################################## 11 | 12 | # Author: Joel Emer 13 | # Date: May 2007 14 | # Purpose: 15 | # A GUI interface to find and replace modules 16 | # 17 | 18 | # 19 | # Turn on warnings 20 | # 21 | $^W = 1; 22 | 23 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-resolver/Makefile.am: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2003-2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | bin_PROGRAMS = awb-resolver 21 | awb_resolver_SOURCES = awb-resolver.cpp 22 | AM_CPPFLAGS = -I$(top_srcdir)/lib 23 | 24 | if X86_64_LIBTOOL_HACK 25 | awb_resolver_LDADD = -lgcc_s -lpopt $(top_builddir)/lib/libawb/.libs/libawb.a 26 | else 27 | awb_resolver_LDADD = $(top_builddir)/lib/libawb/libawb.la -lpopt 28 | endif 29 | 30 | EXTRA_DIST = doxygen.config 31 | #----------------------------------------------------------------------------- 32 | # Generate documentation with Doxygen 33 | #----------------------------------------------------------------------------- 34 | .PHONY: dox 35 | dox: doxygen.config 36 | doxygen doxygen.config 37 | @echo "Doxygen output is at `pwd`/dox/html/index.html" 38 | 39 | clean-local: 40 | @rm -rf dox 41 | 42 | # maybe explicitly link this, avoiding use of broken libtool: 43 | if X86_64_LIBTOOL_HACK 44 | awb-resolver: $(awb_resolver_OBJECTS) 45 | $(CXXLD) -o awb-resolver $(ARCHFLAGS) $(awb_resolver_OBJECTS) $(awb_resolver_LDADD) 46 | endif 47 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-resolver/awb-resolver.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * Copyright (C) 2003-2006 Intel Corporation 3 | * 4 | * This program is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU General Public License 6 | * as published by the Free Software Foundation; either version 2 7 | * of the License, or (at your option) any later version. 8 | * 9 | * This program is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with this program; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | */ 18 | 19 | /** 20 | * @file 21 | * @author Artur Klauser 22 | * @brief AWB Resolver - filename resolution and queries of union dirs 23 | */ 24 | 25 | #ifndef _AWB_RESOLVER_ 26 | #define _AWB_RESOLVER_ 1 27 | 28 | // local 29 | #include "libawb/workspace.h" 30 | 31 | using namespace std; 32 | 33 | class AWB_RESOLVER { 34 | private: 35 | Workspace * workspace; 36 | UnionDir * sourceTree; 37 | 38 | /// command line flags are these command types 39 | enum command_types { 40 | CMD_HELP = 1, 41 | CMD_USAGE, 42 | CMD_CONFIG, 43 | CMD_GLOB, 44 | CMD_PREFIX, 45 | CMD_SUFFIX 46 | }; 47 | 48 | public: 49 | // constructors / destructors 50 | AWB_RESOLVER(); 51 | ~AWB_RESOLVER(); 52 | 53 | void ProcessCommandLine (int argc, char ** argv); 54 | 55 | private: 56 | void PrintHelp (const poptContext & optContext); 57 | void PrintSearchPath (ostream & out, const string & prefix); 58 | }; 59 | 60 | #endif // _AWB_RESOLVER_ 61 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/awb-wizard.db: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/awb-wizard.pro: -------------------------------------------------------------------------------- 1 | unix { 2 | UI_DIR = .ui 3 | MOC_DIR = .moc 4 | OBJECTS_DIR = .obj 5 | } 6 | FORMS = awb_wizard.ui awb_wizard_about.ui 7 | IMAGES = images/filenew.png images/filesave.png images/whatsthis.png images/filebuild.png images/fileopen.png 8 | TEMPLATE =app 9 | CONFIG += qt warn_on release 10 | DBFILE = awb-wizard.db 11 | LANGUAGE = C++ 12 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/awb_wizard_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (C) 2002-2006 Intel Corporation 7 | # 8 | # This program is free software; you can redistribute it and/or 9 | # modify it under the terms of the GNU General Public License 10 | # as published by the Free Software Foundation; either version 2 11 | # of the License, or (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 | # 22 | # 23 | ################################################################################## 24 | 25 | # Author: Joel Emer 26 | # Date: November 2002 27 | # Purpose: 28 | # A GUI interface to create a new module 29 | # 30 | 31 | # 32 | # Turn on warnings 33 | # 34 | $^W = 1; 35 | 36 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/images/filebuild.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb_qt3/awb-wizard/images/filebuild.png -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/images/filenew.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb_qt3/awb-wizard/images/filenew.png -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/images/fileopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb_qt3/awb-wizard/images/fileopen.png -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/images/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb_qt3/awb-wizard/images/filesave.png -------------------------------------------------------------------------------- /tools/awb_qt3/awb-wizard/images/whatsthis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AWB-Tools/awb/88a5fd46eff4589014e6a53a5e8ba988a68193e3/tools/awb_qt3/awb-wizard/images/whatsthis.png -------------------------------------------------------------------------------- /tools/awb_qt3/awb2/awb.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | LANGUAGE = C++ 3 | 4 | CONFIG += qt warn_on release 5 | 6 | FORMS = awb_about.ui \ 7 | awb_runlog.ui \ 8 | awb_dialog.ui 9 | 10 | unix { 11 | UI_DIR = .ui 12 | MOC_DIR = .moc 13 | OBJECTS_DIR = .obj 14 | } 15 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb2/awb_head.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # -*- perl -*- 3 | 4 | ################################################################################## 5 | # 6 | # Copyright (C) 2002-2006 Intel Corporation 7 | # 8 | # This program is free software; you can redistribute it and/or 9 | # modify it under the terms of the GNU General Public License 10 | # as published by the Free Software Foundation; either version 2 11 | # of the License, or (at your option) any later version. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program; if not, write to the Free Software 20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 | # 22 | # 23 | ################################################################################## 24 | 25 | # Author: Joel Emer 26 | # Date: October 2002 27 | # Purpose: 28 | # A GUI interface to find, build and run models 29 | # 30 | 31 | # 32 | # Turn on warnings 33 | # 34 | $^W = 1; 35 | 36 | 37 | -------------------------------------------------------------------------------- /tools/awb_qt3/awb2/colored_list_view_item.pm: -------------------------------------------------------------------------------- 1 | use strict; 2 | 3 | package ColoredListViewItem; 4 | use Qt; 5 | use Qt::isa qw(Qt::ListViewItem); 6 | use Qt::attributes qw(backgroundColor); 7 | 8 | sub NEW 9 | { 10 | my $self = shift; 11 | my $parent = shift; 12 | my $label1 = shift; 13 | my $label2 = shift; 14 | $self->SUPER::NEW($parent, $label1, $label2); 15 | backgroundColor = Qt::Color(@_); 16 | } 17 | 18 | sub paintCell 19 | { 20 | my $painter = shift; 21 | my $cg = shift; 22 | my $column = shift; 23 | my $width = shift; 24 | my $align = shift; 25 | 26 | my $grp = Qt::ColorGroup($cg); 27 | 28 | $painter->save(); 29 | 30 | $grp->setColor(Qt::ColorGroup::Base(), backgroundColor); 31 | SUPER->paintCell($painter, $grp, $column, $width, $align); 32 | $painter->restore(); 33 | } 34 | 35 | 1; 36 | -------------------------------------------------------------------------------- /tools/libploticus/adjust_page: -------------------------------------------------------------------------------- 1 | #set pageymax = $arith(@label_adjust+@pageymax) 2 | // 3 | // Adjust ymin and ymax based on vertical stubs. 4 | // 5 | #set ymax = $arith(@ymax+@label_adjust) 6 | #set ymin = $arith(@ymin+@label_adjust) 7 | 8 | // 9 | // Adjust pageymax for title and x/y labels 10 | // 11 | #if @title != "" 12 | #set pageymax = $arith(@pageymax+0.3) 13 | #endif 14 | 15 | #if @xlabel != "" 16 | #set pageymax = $arith(@pageymax+0.3) 17 | #set xlabeladj = $arith(@ymin-0.2) 18 | #endif 19 | 20 | #if @ylabel != "" 21 | #set pagexmax = $arith(@pagexmax+0.3) 22 | #set ylabeladj = $arith(@xmin-0.2) 23 | #endif 24 | 25 | #proc print 26 | label: pagexmax @pagexmax, pageymax @pageymax 27 | #endproc 28 | 29 | // Define page 30 | #proc page 31 | pagesize: @pagexmax @pageymax 32 | #endproc 33 | 34 | #proc print 35 | label: xmin: @xmin, ymin: @ymin, xmax: @xmax, ymax, @ymax 36 | #endproc 37 | -------------------------------------------------------------------------------- /tools/libploticus/spacing_var: -------------------------------------------------------------------------------- 1 | // 2 | // Set some globals 3 | // 4 | #set CHARINCH = 6 5 | 6 | // Set defaults 7 | #set VERT_MULT = 0.10 8 | #set stubsize = 8 9 | 10 | #if @DEVICE = "x11" 11 | #set VERT_MULT = 0.15 12 | #elseif @DEVICE = "eps" 13 | #set VERT_MULT = 0.07 14 | #elseif @DEVICE = "ps" 15 | #set VERT_MULT = 0.07 16 | #elseif @DEVICE = "bwps" 17 | #set VERT_MULT = 0.07 18 | #elseif @DEVICE = "png" 19 | #set VERT_MULT = 0.08 20 | #elseif @DEVICE = "gif" 21 | #set VERT_MULT = 0.08 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /tools/scripts/README: -------------------------------------------------------------------------------- 1 | 2 | Most of the Asim scripts are executed using 'asimstarter' as a trampoline 3 | to allow a user to use an updated version of their scripts instead of the 4 | globally installed version. Thus adding a script is a little more complicated 5 | than usual. To add an asim script, e.g., 'new-asim-util', here one must do 6 | the following: 7 | 8 | 1) Create the script 'new-asim-util' here 9 | 2) Do a 'cvs add new-asim-util' 10 | 3) Add a new tool line to 'asimstarter.in' 11 | 4) Add 'new-asim-util' to the tool_SCRIPTS line in Makefile.AM 12 | 5) Do an autoconf of the package, see ../../README for instructions 13 | 6) Do an 'awb-shell update package awb' 14 | 15 | As a user that can install asim, e.g., root or ASIM1 here in Hudson: 16 | 17 | 1) Use awb-shell to check out and build awb package. 18 | 2) cd src/awb; make install 19 | 20 | 21 | -------------------------------------------------------------------------------- /tools/scripts/asim-batch: -------------------------------------------------------------------------------- 1 | awb-batch -------------------------------------------------------------------------------- /tools/scripts/asim-benchmark: -------------------------------------------------------------------------------- 1 | awb-benchmark -------------------------------------------------------------------------------- /tools/scripts/asim-run: -------------------------------------------------------------------------------- 1 | awb-run -------------------------------------------------------------------------------- /tools/scripts/asim-shell: -------------------------------------------------------------------------------- 1 | awb-shell -------------------------------------------------------------------------------- /tools/scripts/bm/tracecache/multi_same.cfx: -------------------------------------------------------------------------------- 1 | #!/usr/intel/bin/perl 2 | # 3 | # Generic benchmark configuration script, 4 | # where the same trace is used by multiple threads. 5 | # Used in a .benchmarks file as follows: 6 | # /path/to/this/script.cfx/number_of_threads/path/to/trace/files.cfg 7 | # 8 | use Asim::GenCFG::Auto; 9 | 10 | # extract the number of threads and benchmark path from the arg string 11 | my $num_threads = Asim::GenCFG::Auto::ShiftPath(); 12 | 13 | # The default setup script already contains one -t arg. 14 | # We'll pass the other N-1 trace arguments as extra feeder flags. 15 | my $feed_flags = ''; 16 | for (my $i=1; $i<$num_threads; $i++) { 17 | $feed_flags .= ' -t @BENCHMARKNAME@'; 18 | } 19 | 20 | Asim::GenCFG::Auto::Generate( feedflags => $feed_flags ); 21 | -------------------------------------------------------------------------------- /tools/scripts/bm/tracecache/single-check-param.run: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright (C) 2006 Intel Corporation 5 | # 6 | # This program is free software; you can redistribute it and/or 7 | # modify it under the terms of the GNU General Public License 8 | # as published by the Free Software Foundation; either version 2 9 | # of the License, or (at your option) any later version. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program; if not, write to the Free Software 18 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 | # 20 | # 21 | 22 | # 23 | # run a model, then check its stats file 24 | # to make sure the given parameter had the given value. 25 | # 26 | # This is a template "run" script, used by single-check-param.cfx. 27 | # 28 | # Carl Beckmann 8/4/2006 29 | # 30 | PATH=/p/asim/i386_linux24/bin:$PATH 31 | TRACENAME=@tracename@ 32 | 33 | # run the model, after printing the exact commands used: 34 | echo $model $genFlags --feeder -t $TRACENAME $feedFlags --system $sysFlags 35 | $model $genFlags --feeder -t $TRACENAME $feedFlags --system $sysFlags 36 | 37 | # we need the asim environment before using grab.pl: 38 | source /p/asim/scripts/setup/setup-asim.sh 39 | 40 | # extract the parameter from the stats file, and fail if its value differs from expected: 41 | value=`grab.pl -filename @tracename@.stats -parameters @paramname@ | grep unknown_benchmark | sed -e 's/unknown_benchmark[ \t]*//' -e 's/[ \t]*$//'` 42 | case $value in @paramvalue@) exit 0;; esac 43 | echo "TEST FAILED: expected @paramname@ = @paramvalue@ but got $value" 44 | exit 1 45 | -------------------------------------------------------------------------------- /tools/scripts/bm/tracecache/single.cfx: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006 Intel Corporation 3 | # 4 | # This program is free software; you can redistribute it and/or 5 | # modify it under the terms of the GNU General Public License 6 | # as published by the Free Software Foundation; either version 2 7 | # of the License, or (at your option) any later version. 8 | # 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program; if not, write to the Free Software 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 | # 18 | # 19 | 20 | #!/usr/intel/bin/perl 21 | use Asim::GenCFG::Auto; 22 | # use default setup and run scripts: 23 | Asim::GenCFG::Auto::Generate(); 24 | --------------------------------------------------------------------------------