forked from WhiteWLf-dev/utopia-eda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexander Kamkin <[email protected]>
- Loading branch information
Showing
21 changed files
with
578 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,16 @@ | |
#include <memory> | ||
#include <unordered_map> | ||
|
||
using namespace eda::gate::model; | ||
|
||
namespace eda::gate::debugger { | ||
|
||
/** | ||
* \brief Implements a logic equivalence checker (LEC). | ||
* \author <a href="mailto:[email protected]">Alexander Kamkin</a> | ||
*/ | ||
class Checker final { | ||
using Gate = eda::gate::model::Gate; | ||
using GNet = eda::gate::model::GNet; | ||
|
||
public: | ||
using GateBinding = std::unordered_map<Gate::Link, Gate::Link>; | ||
using SubnetBinding = std::unordered_map<GNet::SubnetId, GNet::SubnetId>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,15 @@ | |
#include <cstdint> | ||
#include <unordered_map> | ||
|
||
using namespace eda::gate::model; | ||
|
||
namespace eda::gate::debugger { | ||
|
||
/** | ||
* \brief Logic formula representing a gate-level net. | ||
* \author <a href="mailto:[email protected]">Alexander Kamkin</a> | ||
*/ | ||
class Context final { | ||
using Gate = eda::gate::model::Gate; | ||
|
||
public: | ||
// MiniSAT-related types. | ||
using Var = Minisat::Var; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,16 @@ | |
#include <string> | ||
#include <vector> | ||
|
||
using namespace eda::gate::model; | ||
|
||
namespace eda::gate::debugger { | ||
|
||
/** | ||
* \brief Implements a Tseitin encoder of a gate-level netlist. | ||
* \author <a href="mailto:[email protected]">Alexander Kamkin</a> | ||
*/ | ||
class Encoder final { | ||
using Gate = eda::gate::model::Gate; | ||
using GNet = eda::gate::model::GNet; | ||
|
||
public: | ||
void encode(const GNet &net, uint16_t version); | ||
void encode(const Gate &gate, uint16_t version); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
#include "gate/debugger/context.h" | ||
#include "gate/model/gnet.h" | ||
|
||
using namespace eda::gate::model; | ||
|
||
namespace eda::gate::debugger { | ||
|
||
/** | ||
* \brief Implements a symbolic executor of gate-level nets. | ||
* \author <a href="mailto:[email protected]">Alexander Kamkin</a> | ||
*/ | ||
class SymbolicExecutor final { | ||
using GNet = eda::gate::model::GNet; | ||
|
||
public: | ||
SymbolicExecutor(): _cycle(1 /* should be positive */) {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.