![Altera Stratix GX User Manual Download Page 193](http://html.mh-extra.com/html/altera/stratix-gx/stratix-gx_user-manual_2910919193.webp)
Altera Corporation
6–39
January 2005
Stratix GX Transceiver User Guide
GigE Mode
`define count 3'd4
`define txk 3'd5
module gige8b10btest(
clk,
rx_in,
patterndetect,
ctrldetect,
errdetect,
syncstatus,
disperr,
rxout,
txout);
input clk, rx_in;
output patterndetect, ctrldetect,
errdetect,syncstatus,disperr;
output [7:0] rxout;
output txout;
reg [3:0] curst,nextst;
reg reset, txctrl;
reg [6:0] globalcntr;
reg [3:0] kcntr;
reg [7:0] datacntr, kdata,txdata;
reg tff;
wire [7:0] rxout;
wire coreclk, rxclk, rx_in;
wire patterndetect, ctrldetect,
errdetect,syncstatus,disperr;
//GXB instantiation
gige8b10bgxb gige8b10bgxb_inst(
.pll_areset(1'b0),
.pllenable(1'b1),
.inclk(clk),
.rx_in(rx_in),
.rx_slpbk(1'b1),
.rxanalogreset(1'b0),
.tx_in(txdata),
.tx_ctrlenable(txctrl),
.rxdigitalreset(reset),
.txdigitalreset(1'b0),
.rx_disperr(disperr),
.rx_patterndetect(patterndetect),
.rx_ctrldetect(ctrldetect),
.tx_out(txout),
.rx_errdetect(errdetect),
.coreclk_out(coreclk),
.rx_out(rxout),
.rx_syncstatus(syncstatus));
//governing counter
always@(posedge clk)
globalcntr <= glob1;
//control character counter
always@(posedge clk)
Summary of Contents for Stratix GX
Page 18: ...1 10 Altera Corporation Stratix GX Transceiver User Guide January 2005 Modes of Operation ...
Page 200: ...6 46 Altera Corporation Stratix GX Transceiver User Guide January 2005 Design Example ...
Page 296: ...A 12 Altera Corporation Stratix GX Transceiver User Guide January 2005 8B 10B Code ...
Page 318: ...C 8 Altera Corporation Stratix GX Transceiver User Guide January 2005 Known Issues ...