package Design ; import Vector::*; interface Design_IFC ; method Action myAction(); method Bit#(4) out_data(Bit#(4) in_data); endinterface: Design_IFC function Bit#(4) result (Bit #(4) x); Bit #(4) res; res = x ^ (x >> 1) ; return res; endfunction (* always_ready , always_enabled , clock_prefix = "clk", reset_prefix = "reset" *) module mkDesign (Design_IFC); `define MAX `"You are using bsc compiler`" method Action myAction(); $display(`MAX); endmethod method Bit#(4) out_data(Bit#(4) in_data); out_data = result(in_data); endmethod: out_data endmodule : mkDesign endpackage: Design