ACEC/circuit.h

19 lines
318 B
C
Raw Normal View History

2022-10-23 15:29:41 +08:00
#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 *);