ACEC/circuit.h
2022-10-23 15:29:41 +08:00

19 lines
318 B
C++

#pragma once
#include "bits/stdc++.h"
enum GateType {
XOR, MAJ, AND, OR
};
struct Gate {
std::vector<int> inputs;
std::vector<int> output;
std::vector<int> fanouts;
};
extern Gate* Gates;
extern std::vector<int> circuit_inputs;
extern int circuit_output;
void read_verilog_from_file(const char *);