diff --git a/common/route/awooter/rust/src/lib.rs b/common/route/awooter/rust/src/lib.rs index 4c985d6d..3aeb2b02 100644 --- a/common/route/awooter/rust/src/lib.rs +++ b/common/route/awooter/rust/src/lib.rs @@ -1,33 +1,16 @@ use std::{ collections::HashMap, ptr::NonNull, - sync::{atomic::AtomicUsize, Mutex, RwLock}, time::Instant, + sync::atomic::AtomicUsize, time::Instant, }; use colored::Colorize; use indicatif::{ProgressBar, ProgressStyle, ParallelProgressIterator}; use rayon::prelude::*; -use crate::npnr::PortRef; - #[macro_use] mod npnr; -enum Subpartition { - Part(Box), - Nets(Vec), -} - -struct Partition { - parts: [Option; 4], - borders: [[Vec; 4]; 4], -} - -struct Net { - source: npnr::WireId, - sinks: Vec, -} - #[no_mangle] pub extern "C" fn npnr_router_awooter(ctx: Option>) -> bool { std::panic::catch_unwind(move || { @@ -192,12 +175,6 @@ fn partition_nets( y_str.bold() ); - // BUG: because pips don't specify direction, this puts pips of opposite directions - // in the same entry. This is bad, since it could lead to selecting a pip of the - // wrong direction. - // - // Possibly fixed? I need to double-check. - let mut candidates = 0; let mut north = 0; let mut east = 0;