Commit b3b35ed3 authored by rmrf's avatar rmrf
Browse files

Update clang download link in README.md

parent 3a5c7a5b
...@@ -5,7 +5,7 @@ It parses RTL constructs and some TLM 2.0 constructs. ...@@ -5,7 +5,7 @@ It parses RTL constructs and some TLM 2.0 constructs.
This is the maintained repository of an older version available on [github](https://github.com/anikau31/systemc-clang). This is the maintained repository of an older version available on [github](https://github.com/anikau31/systemc-clang).
## Requirements ## Requirements
* [llvm/clang](http://clang.llvm.org/download.html) (version 7.0.0) * [llvm/clang](https://releases.llvm.org/download.html)(version 7.0.0)
* [SystemC](http://systemc.org) version 2.3.3. Please see [SystemC Installation notes](https://github.com/anikau31/systemc-clang/blob/master/doc/systemc-install.mkd) * [SystemC](http://systemc.org) version 2.3.3. Please see [SystemC Installation notes](https://github.com/anikau31/systemc-clang/blob/master/doc/systemc-install.mkd)
* c++14 is required. We are using some features that necessitate c++14. Down-porting it is also possible, but not supported. * c++14 is required. We are using some features that necessitate c++14. Down-porting it is also possible, but not supported.
......
...@@ -28,6 +28,7 @@ add_library (libsystemc-clang ...@@ -28,6 +28,7 @@ add_library (libsystemc-clang
FindNetlist.cpp FindNetlist.cpp
FindArgument.cpp FindArgument.cpp
FindTemplateParameters.cpp FindTemplateParameters.cpp
FindModuleInstance.cpp
# Automata.cpp # Automata.cpp
# SuspensionAutomata.cpp # SuspensionAutomata.cpp
# SCuitable/GlobalSuspensionAutomata.cpp # SCuitable/GlobalSuspensionAutomata.cpp
......
...@@ -32,8 +32,15 @@ bool SystemCConsumer::fire() { ...@@ -32,8 +32,15 @@ bool SystemCConsumer::fire() {
// md->setTemplateParameters( scmod.getTemplateParameters() ); // md->setTemplateParameters( scmod.getTemplateParameters() );
// os_ << "SIZE: " << scmod.getTemplateParameters().size() << "\n"; // os_ << "SIZE: " << scmod.getTemplateParameters().size() << "\n";
_systemcModel->addModuleDecl(md); _systemcModel->addModuleDecl(md);
//
// TODO: find any instances in the module declarations
os_ << "=> Processing module: " << mit->first << "\n";
md->getModuleClassDecl()->dump();
FindModuleInstance module_instance{md->getModuleClassDecl(), os_};
} }
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
// Find the sc_main // Find the sc_main
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
...@@ -42,6 +49,10 @@ bool SystemCConsumer::fire() { ...@@ -42,6 +49,10 @@ bool SystemCConsumer::fire() {
if (scmain.isSCMainFound()) { if (scmain.isSCMainFound()) {
FunctionDecl *fnDecl{scmain.getSCMainFunctionDecl()}; FunctionDecl *fnDecl{scmain.getSCMainFunctionDecl()};
// TODO: find any instances in sc_main.
//fnDecl->dump();
FindSimTime scstart{fnDecl, os_}; FindSimTime scstart{fnDecl, os_};
_systemcModel->addSimulationTime(scstart.returnSimTime()); _systemcModel->addSimulationTime(scstart.returnSimTime());
} else { } else {
......
...@@ -51,6 +51,7 @@ using namespace clang::tooling; ...@@ -51,6 +51,7 @@ using namespace clang::tooling;
#include "SuspensionAutomata.h" #include "SuspensionAutomata.h"
#include "Utility.h" #include "Utility.h"
#include "FindTemplateParameters.h" #include "FindTemplateParameters.h"
#include "FindModuleInstance.h"
using namespace clang; using namespace clang;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment