1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00
oh/common/hdl/oh_8b10b_encoder.v

27 lines
741 B
Coq
Raw Normal View History

2016-01-17 21:15:28 -05:00
module oh_8b10b_encoder (/*AUTOARG*/
2016-01-10 15:58:28 -05:00
// Outputs
data_out,
// Inputs
2016-01-17 21:15:28 -05:00
clk, nreset, ksel, data_in
2016-01-10 15:58:28 -05:00
);
//#####################################################################
//# INTERFACE
2016-01-17 21:15:28 -05:00
//#####################################################################
2016-01-10 15:58:28 -05:00
2016-01-17 21:15:28 -05:00
input clk; //main clock
input nreset; //async active low reset
input ksel; //select one of 12 K characters
input [7:0] data_in; //unencoded data input
output [9:0] data_out; //encoded data output
2016-01-10 15:58:28 -05:00
2016-01-17 21:15:28 -05:00
//#####################################################################
//# BODY
//#####################################################################
2016-01-10 15:58:28 -05:00
2016-01-17 21:15:28 -05:00
endmodule // oh_8b10b_encoder
2016-01-10 15:58:28 -05:00