diff options
Diffstat (limited to 'Circuit.cpp')
-rw-r--r-- | Circuit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Circuit.cpp b/Circuit.cpp index 102096c..22ea98c 100644 --- a/Circuit.cpp +++ b/Circuit.cpp @@ -34,6 +34,12 @@ void Circuit::new_net(string src, vector<string> dests) { node->setOutput(net); } +void Circuit::sim() { + for (auto & node : nodes) { + node.second->sim(); + } +} + Node * Circuit::find_node(string label) { auto map_index = this->nodes.find(label); if (map_index == nodes.end()) return nullptr; |