summaryrefslogtreecommitdiff
path: root/src/circuit.rs
blob: 68822963483ddf19b0ecbc8171b3dc6e2fd4ecda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use crate::{gate::Chip, types::*};

#[derive(Debug, Clone)]
struct Circuit {
    chips: Chips,
}

impl Circuit {
    fn new() -> Circuit {
        Circuit { chips: Vec::new() }
    }

    fn add_chip(&mut self, chip: Chip) -> usize {
        self.chips.push(chip);
        0
    }

    fn connect_chip(&mut self, from: usize, to: usize) {
        todo!()
    }

    fn simulate(&mut self) {
        todo!();
    }
}