diff --git a/common/route/awooter/rust/src/lib.rs b/common/route/awooter/rust/src/lib.rs index 072909af..a037ec0d 100644 --- a/common/route/awooter/rust/src/lib.rs +++ b/common/route/awooter/rust/src/lib.rs @@ -5,6 +5,7 @@ use colored::Colorize; #[macro_use] mod npnr; mod partition; +mod route; #[no_mangle] pub extern "C" fn npnr_router_awooter(ctx: Option>) -> bool { diff --git a/common/route/awooter/rust/src/route.rs b/common/route/awooter/rust/src/route.rs new file mode 100644 index 00000000..a58d4bc4 --- /dev/null +++ b/common/route/awooter/rust/src/route.rs @@ -0,0 +1,18 @@ +use crate::npnr; + +pub struct Arc { + source_wire: npnr::WireId, + source_loc: npnr::Loc, + sink_wire: npnr::WireId, + sink_loc: npnr::Loc, + net: *mut npnr::NetInfo, +} + +impl Arc { + pub fn new(source_wire: npnr::WireId, source_loc: npnr::Loc, sink_wire: npnr::WireId, sink_loc: npnr::Loc, net: *mut npnr::NetInfo) -> Self { + Self { + source_wire, source_loc, sink_wire, sink_loc, net + } + } +} +