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
|
|
|
|