fix stupid mistake
This commit is contained in:
parent
9e2eb6760f
commit
010d572e0a
@ -3,7 +3,13 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
norGate::norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
norGate::norGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2), out(wire3);
|
wire* wire3) {
|
||||||
|
e = eQueue;
|
||||||
|
delay = d;
|
||||||
|
in1 = wire1;
|
||||||
|
in2 = wire2;
|
||||||
|
out = wire3;
|
||||||
|
}
|
||||||
|
|
||||||
void norGate::evaluate(int evTime) {
|
void norGate::evaluate(int evTime) {
|
||||||
//TODO
|
//TODO
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
orGate::orGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
orGate::orGate(priority_queue<event> *eQueue, int d, wire* wire1, wire* wire2,
|
||||||
wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2), out(wire3);
|
wire* wire3) {
|
||||||
|
e = eQueue;
|
||||||
|
delay = d;
|
||||||
|
in1 = wire1;
|
||||||
|
in2 = wire2;
|
||||||
|
out = wire3;
|
||||||
|
}
|
||||||
|
|
||||||
void orGate::evaluate(int evTime) {
|
void orGate::evaluate(int evTime) {
|
||||||
//TODO
|
//TODO
|
||||||
|
@ -3,8 +3,13 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
xnorGate::xnorGate(priority_queue<event> *eQueue, int d, wire* wire1,
|
xnorGate::xnorGate(priority_queue<event> *eQueue, int d, wire* wire1,
|
||||||
wire* wire2, wire* wire3) : e(eQueue), delay(d), in1(wire1), in2(wire2),
|
wire* wire2, wire* wire3) {
|
||||||
out(wire3);
|
e = eQueue;
|
||||||
|
delay = d;
|
||||||
|
in1 = wire1;
|
||||||
|
in2 = wire2;
|
||||||
|
out = wire3;
|
||||||
|
}
|
||||||
|
|
||||||
void xnorGate::evaluate(int evTime) {
|
void xnorGate::evaluate(int evTime) {
|
||||||
//TODO
|
//TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user