19 lines
318 B
C++
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 *); |