awooter: clean up unused code
This commit is contained in:
parent
cb7dba6dd5
commit
2c1a9d18ed
@ -1,33 +1,16 @@
|
|||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
ptr::NonNull,
|
ptr::NonNull,
|
||||||
sync::{atomic::AtomicUsize, Mutex, RwLock}, time::Instant,
|
sync::atomic::AtomicUsize, time::Instant,
|
||||||
};
|
};
|
||||||
|
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
use indicatif::{ProgressBar, ProgressStyle, ParallelProgressIterator};
|
use indicatif::{ProgressBar, ProgressStyle, ParallelProgressIterator};
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
|
|
||||||
use crate::npnr::PortRef;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod npnr;
|
mod npnr;
|
||||||
|
|
||||||
enum Subpartition {
|
|
||||||
Part(Box<Partition>),
|
|
||||||
Nets(Vec<Net>),
|
|
||||||
}
|
|
||||||
|
|
||||||
struct Partition {
|
|
||||||
parts: [Option<Subpartition>; 4],
|
|
||||||
borders: [[Vec<npnr::WireId>; 4]; 4],
|
|
||||||
}
|
|
||||||
|
|
||||||
struct Net {
|
|
||||||
source: npnr::WireId,
|
|
||||||
sinks: Vec<npnr::WireId>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn npnr_router_awooter(ctx: Option<NonNull<npnr::Context>>) -> bool {
|
pub extern "C" fn npnr_router_awooter(ctx: Option<NonNull<npnr::Context>>) -> bool {
|
||||||
std::panic::catch_unwind(move || {
|
std::panic::catch_unwind(move || {
|
||||||
@ -192,12 +175,6 @@ fn partition_nets(
|
|||||||
y_str.bold()
|
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 candidates = 0;
|
||||||
let mut north = 0;
|
let mut north = 0;
|
||||||
let mut east = 0;
|
let mut east = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user