= new { a = new UInt(isOut: false), b = new UInt(isOut: false), s = new UInt(isOut: true), c = new UInt(isOut: true) }; this.io = io; io.s.Assign(io.a + io.b); io.c.Assign(io.a ^ io.b); } } public class AdderGenerator { public static void Main() { FirrtlSharp.Generator.GenerateHDL(new HalfAdder()); } }