This repository has been archived on 2025-06-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
riscv-bluespec-classic/src/Core.bsv
2023-09-26 00:40:04 -04:00

23 lines
No EOL
466 B
Text

package Core;
interface Core#(numeric type clkFreq);
method Bit#(8) get_char();
method Bit#(8) get_led();
method Action put_char(Bit#(8) byte_in);
endinterface
module mkCore(Core#(clkFreq));
Wire#(Bit#(8)) uart_out <- mkWire;
method Bit#(8) get_char();
return uart_out;
endmethod
method Bit#(8) get_led();
return uart_out;
endmethod
method Action put_char(Bit#(8) byte_in);
uart_out <= byte_in;
endmethod
endmodule
endpackage