Altera Stratix GX Transceiver User Manual

Page 195

Advertising
background image

Altera Corporation

6–41

January 2005

Stratix GX Transceiver User Guide

GigE Mode

begin

reset<=1;
txctrl<=0;
txdata<=datacntr;

end
`donothing: //sends out /D0.0/
begin

reset<=0;
txctrl<=0;
txdata<=8'h00;

end
`sync: //sends alternating /K28.5/ and /D31.7/
begin

reset<=0;
if (globalcntr[0]==1)
begin

txdata<=8'hbc;
txctrl<=1;

end
else
begin

txdata<=8'hff;
txctrl<=0;

end

end
`tx_err: //sends an out of bounds control code

/K31.7/

begin

reset<=0;
txctrl<=1;
txdata<=8'hff;

end
`count: //sends out value of a counter
begin

reset<=0;
txctrl<=0;
txdata<=datacntr;

end
`txk: //sends out all 12 K codes
begin

reset<=0;
txctrl<=1;
txdata<=kdata;

end
default:
begin

reset<=0;
txctrl<=0;
txdata<=datacntr;

end

endcase
endmodule

Advertising