(* always_ready, always_enabled *)
interface RS232;
// Inputs
- (* prefix = "" *)
- method Action sin((* port = "SIN" *)Bit#(1) x);
+ interface Put#(Bit#(1)) sin;
// Outputs
- (* prefix = "", result = "SOUT" *)
- method Bit#(1) sout();
+ interface Get#(Bit#(1)) sout;
endinterface
interface BaudGenerator;
/// Interface Connections / Methods
////////////////////////////////////////////////////////////////////////////////
interface RS232 rs232;
- method sout = rXmitDataOut;
- method sin = rRecvData._write;
+ interface sin = interface Put
+ method Action put(Bit#(1) in);
+ rRecvData._write(in);
+ endmethod
+ endinterface;
+ interface sout = interface Get
+ method ActionValue#(Bit#(1)) get;
+ return rXmitDataOut;
+ endmethod
+ endinterface;
endinterface
interface Get tx;