Skip to content

Commit

Permalink
Merge pull request chipsalliance#1828 from alainmarcel/alainmarcel-pa…
Browse files Browse the repository at this point in the history
…tch-1

elab and binding
  • Loading branch information
alaindargelas authored Sep 12, 2021
2 parents eba317b + c8f8412 commit 3f3b65a
Show file tree
Hide file tree
Showing 77 changed files with 9,104 additions and 6,460 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
url = https:/google/flatbuffers.git
[submodule "third_party/UHDM"]
path = third_party/UHDM
url = https:/alainmarcel/UHDM.git
url = https:/chipsalliance/UHDM.git
[submodule "third_party/googletest"]
path = third_party/googletest
url = https:/google/googletest.git
[submodule "third_party/antlr4"]
path = third_party/antlr4
url = https:/alainmarcel/antlr4.git
4 changes: 3 additions & 1 deletion src/API/Surelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

#include "CommandLine/CommandLineParser.h"
#include "Design/Design.h"
#include "include/sv_vpi_user.h"

// UHDM
#include <uhdm/sv_vpi_user.h>

namespace SURELOG {
struct scompiler;
Expand Down
3 changes: 2 additions & 1 deletion src/Common/PortNetHolder.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

#include <vector>

#include "headers/uhdm_forward_decl.h"
// UHDM
#include <uhdm/uhdm_forward_decl.h>

#ifndef PORTNETHOLDER_H
#define PORTNETHOLDER_H
Expand Down
4 changes: 3 additions & 1 deletion src/Design/ClockingBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
#include "Design/FileContent.h"
#include "Design/Signal.h"
#include "SourceCompile/SymbolTable.h"
#include "headers/uhdm_forward_decl.h"

// UHDM
#include <uhdm/uhdm_forward_decl.h>

namespace SURELOG {

Expand Down
4 changes: 3 additions & 1 deletion src/Design/DummyType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

#include "Design/FileContent.h"
#include "SourceCompile/SymbolTable.h"
#include "uhdm.h"

// UHDM
#include <uhdm/uhdm.h>

namespace SURELOG {
DummyType::DummyType(const FileContent* fC, NodeId nameId, NodeId structId)
Expand Down
4 changes: 3 additions & 1 deletion src/Design/ModuleDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
#include "Design/ModPort.h"
#include "Design/Signal.h"
#include "Design/ValuedComponentI.h"
#include "headers/containers.h" // uhdm

// UHDM
#include <uhdm/containers.h>

namespace UHDM {
class udp_defn;
Expand Down
8 changes: 5 additions & 3 deletions src/Design/ModuleInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
#include <string>

#include "Design/FileContent.h"
#include "ElaboratorListener.h"
#include "Library/Library.h"
#include "SourceCompile/SymbolTable.h"
#include "clone_tree.h"
#include "uhdm.h"

// UHDM
#include <uhdm/ElaboratorListener.h>
#include <uhdm/clone_tree.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
4 changes: 3 additions & 1 deletion src/Design/Netlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include "Design/FileContent.h"
#include "Design/ModPort.h"
#include "SourceCompile/SymbolTable.h"
#include "headers/uhdm_forward_decl.h"

// UHDM
#include <uhdm/uhdm_forward_decl.h>

namespace SURELOG {

Expand Down
4 changes: 3 additions & 1 deletion src/Design/SimpleType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

#include "Design/FileContent.h"
#include "SourceCompile/SymbolTable.h"
#include "uhdm.h"

// UHDM
#include <uhdm/uhdm.h>

using namespace SURELOG;

Expand Down
4 changes: 3 additions & 1 deletion src/Design/Struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

#include "Design/FileContent.h"
#include "SourceCompile/SymbolTable.h"
#include "uhdm.h"

// UHDM
#include <uhdm/uhdm.h>

using namespace SURELOG;

Expand Down
4 changes: 2 additions & 2 deletions src/DesignCompile/Builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include "Testbench/FunctionMethod.h"

// UHDM
#include "headers/Serializer.h"
#include "headers/class_defn.h"
#include <uhdm/Serializer.h>
#include <uhdm/class_defn.h>

namespace SURELOG {
static VObjectType convert(std::string_view type) {
Expand Down
10 changes: 6 additions & 4 deletions src/DesignCompile/CompileAssertion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "Design/Struct.h"
#include "Design/Union.h"
#include "DesignCompile/CompileHelper.h"
#include "ElaboratorListener.h"
#include "Expression/ExprBuilder.h"
#include "Expression/Value.h"
#include "SourceCompile/CompilationUnit.h"
Expand All @@ -42,9 +41,12 @@
#include "UhdmWriter.h"
#include "Utils/FileUtils.h"
#include "Utils/StringUtils.h"
#include "clone_tree.h"
#include "expr.h"
#include "uhdm.h"

// UHDM
#include <uhdm/ElaboratorListener.h>
#include <uhdm/clone_tree.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>

namespace SURELOG {

Expand Down
4 changes: 3 additions & 1 deletion src/DesignCompile/CompileClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
#include "SourceCompile/SymbolTable.h"
#include "SourceCompile/VObjectTypes.h"
#include "Testbench/ClassDefinition.h"
#include "headers/uhdm.h"

// UHDM
#include <uhdm/uhdm.h>

using namespace SURELOG;

Expand Down
10 changes: 5 additions & 5 deletions src/DesignCompile/CompileDesign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

#include <stdint.h>

#include <thread>
#include <vector>

#include "CommandLine/CommandLineParser.h"
#include "Design/FileContent.h"
#include "DesignCompile/Builtin.h"
Expand All @@ -54,17 +57,14 @@
#include "SourceCompile/PreprocessFile.h"
#include "SourceCompile/SymbolTable.h"
#include "Testbench/ClassDefinition.h"
#include "vpi_visitor.h"

#ifdef USETBB
#include <tbb/task.h>
#include <tbb/task_group.h>

#include "tbb/task_scheduler_init.h"
#include <tbb/task_scheduler_init.h>
#endif

#include <thread>
#include <vector>
#include <uhdm/vpi_visitor.h>

using namespace SURELOG;

Expand Down
6 changes: 4 additions & 2 deletions src/DesignCompile/CompileDesign.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@

#include <mutex>

#include "Serializer.h"
#include "SourceCompile/Compiler.h"
#include "include/sv_vpi_user.h"

// UHDM
#include <uhdm/Serializer.h>
#include <uhdm/sv_vpi_user.h>

namespace SURELOG {

Expand Down
14 changes: 8 additions & 6 deletions src/DesignCompile/CompileExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "DesignCompile/CompileDesign.h"
#include "DesignCompile/CompileHelper.h"
#include "DesignCompile/UhdmWriter.h"
#include "ElaboratorListener.h"
#include "ErrorReporting/ErrorContainer.h"
#include "Expression/ExprBuilder.h"
#include "Expression/Value.h"
Expand All @@ -52,11 +51,14 @@
#include "Utils/FileUtils.h"
#include "Utils/NumUtils.h"
#include "Utils/StringUtils.h"
#include "clone_tree.h"
#include "expr.h"
#include "headers/ExprEval.h"
#include "uhdm.h"
#include "vpi_visitor.h"

// UHDM
#include <uhdm/ElaboratorListener.h>
#include <uhdm/ExprEval.h>
#include <uhdm/clone_tree.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>
#include <uhdm/vpi_visitor.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
12 changes: 7 additions & 5 deletions src/DesignCompile/CompileHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,22 @@
#include "Design/Union.h"
#include "DesignCompile/CompileDesign.h"
#include "DesignCompile/UhdmWriter.h"
#include "ElaboratorListener.h"
#include "Expression/ExprBuilder.h"
#include "Expression/Value.h"
#include "Serializer.h"
#include "SourceCompile/CompilationUnit.h"
#include "SourceCompile/CompileSourceFile.h"
#include "SourceCompile/Compiler.h"
#include "SourceCompile/ParseFile.h"
#include "SourceCompile/PreprocessFile.h"
#include "Testbench/ClassDefinition.h"
#include "Testbench/Property.h"
#include "clone_tree.h"
#include "expr.h"
#include "uhdm.h"

// UHDM
#include <uhdm/ElaboratorListener.h>
#include <uhdm/Serializer.h>
#include <uhdm/clone_tree.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
4 changes: 3 additions & 1 deletion src/DesignCompile/CompileHelper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
#include "Testbench/ClassDefinition.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "vpi_visitor.h"

// UHDM
#include <uhdm/vpi_visitor.h>

using namespace UHDM;

Expand Down
6 changes: 3 additions & 3 deletions src/DesignCompile/CompileStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
#include "Utils/StringUtils.h"

// UHDM
#include "ElaboratorListener.h"
#include "expr.h"
#include "uhdm.h"
#include <uhdm/ElaboratorListener.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
8 changes: 4 additions & 4 deletions src/DesignCompile/CompileType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
#include "Utils/StringUtils.h"

// UHDM
#include "ElaboratorListener.h"
#include "clone_tree.h"
#include "expr.h"
#include "uhdm.h"
#include <uhdm/ElaboratorListener.h>
#include <uhdm/clone_tree.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
8 changes: 5 additions & 3 deletions src/DesignCompile/DesignElaboration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "DesignCompile/CompileDesign.h"
#include "DesignCompile/CompileModule.h"
#include "DesignCompile/NetlistElaboration.h"
#include "ElaboratorListener.h"
#include "ErrorReporting/Error.h"
#include "ErrorReporting/ErrorContainer.h"
#include "ErrorReporting/ErrorDefinition.h"
Expand All @@ -53,8 +52,11 @@
#include "Testbench/ClassDefinition.h"
#include "Testbench/Property.h"
#include "Utils/StringUtils.h"
#include "clone_tree.h"
#include "vpi_visitor.h"

// UHDM
#include <uhdm/ElaboratorListener.h>
#include <uhdm/clone_tree.h>
#include <uhdm/vpi_visitor.h>

using namespace SURELOG;

Expand Down
8 changes: 4 additions & 4 deletions src/DesignCompile/ElaborationStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
#include "Utils/StringUtils.h"

// UHDM
#include "headers/ElaboratorListener.h"
#include "headers/Serializer.h"
#include "headers/clone_tree.h"
#include "headers/uhdm.h"
#include <uhdm/ElaboratorListener.h>
#include <uhdm/Serializer.h>
#include <uhdm/clone_tree.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
4 changes: 3 additions & 1 deletion src/DesignCompile/ElaborationStep.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#include "DesignCompile/CompileDesign.h"
#include "DesignCompile/CompileHelper.h"
#include "ErrorReporting/ErrorDefinition.h"
#include "headers/uhdm_forward_decl.h"

// UHDM
#include <uhdm/uhdm_forward_decl.h>

namespace SURELOG {

Expand Down
8 changes: 4 additions & 4 deletions src/DesignCompile/EvalFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
#include "Utils/StringUtils.h"

// UHDM
#include "ElaboratorListener.h"
#include "clone_tree.h"
#include "expr.h"
#include "uhdm.h"
#include <uhdm/ElaboratorListener.h>
#include <uhdm/clone_tree.h>
#include <uhdm/expr.h>
#include <uhdm/uhdm.h>

using namespace SURELOG;
using namespace UHDM;
Expand Down
Loading

0 comments on commit 3f3b65a

Please sign in to comment.