1 2 3 4 5 6 7 8 9 10 11 12 13
#[cfg(test)] mod tests { use vcore::*; #[test] fn it_works() { let mut m = VModule::new("LED"); m.Input("CLK", 1); m.Input("RST", 1); assert!(!m.endmodule().is_empty(), "Code not generated successfully..."); } } pub mod vcore;