Line 25... |
Line 25... |
output wire dataOutReadyFlag, //new data available
|
output wire dataOutReadyFlag, //new data available
|
output wire frameErrorFlag, //bad parity or bad stop bits
|
output wire frameErrorFlag, //bad parity or bad stop bits
|
output wire endOfRx, //one cycle pulse: 1 during last cycle of last stop bit
|
output wire endOfRx, //one cycle pulse: 1 during last cycle of last stop bit
|
output wire run, //rx is definitely started, one of the three flag will be set
|
output wire run, //rx is definitely started, one of the three flag will be set
|
output wire startBit, //rx is started, but we don't know yet if real rx or just a glitch
|
output wire startBit, //rx is started, but we don't know yet if real rx or just a glitch
|
|
output wire stopBit, //rx is over but still in stop bits
|
input wire [DIVIDER_WIDTH-1:0] clkPerCycle,
|
input wire [DIVIDER_WIDTH-1:0] clkPerCycle,
|
input wire [CLOCK_PER_BIT_WIDTH-1:0] clocksPerBit,
|
input wire [CLOCK_PER_BIT_WIDTH-1:0] clocksPerBit,
|
input wire stopBit2,//0: 1 stop bit, 1: 2 stop bits
|
input wire stopBit2,//0: 1 stop bit, 1: 2 stop bits
|
input wire oddParity, //if 1, parity bit is such that data+parity have an odd number of 1
|
input wire oddParity, //if 1, parity bit is such that data+parity have an odd number of 1
|
input wire msbFirst, //if 1, bits order is: startBit, b7, b6, b5...b0, parity
|
input wire msbFirst, //if 1, bits order is: startBit, b7, b6, b5...b0, parity
|
Line 80... |
Line 81... |
.dataOutReadyFlag(dataOutReadyFlag),
|
.dataOutReadyFlag(dataOutReadyFlag),
|
.frameErrorFlag(frameErrorFlag),
|
.frameErrorFlag(frameErrorFlag),
|
.endOfRx(endOfRx),
|
.endOfRx(endOfRx),
|
.run(run),
|
.run(run),
|
.startBit(startBit),
|
.startBit(startBit),
|
|
.stopBit(stopBit),
|
.clocksPerBit(clocksPerBit),
|
.clocksPerBit(clocksPerBit),
|
.stopBit2(stopBit2),
|
.stopBit2(stopBit2),
|
.oddParity(oddParity),
|
.oddParity(oddParity),
|
.msbFirst(msbFirst),
|
.msbFirst(msbFirst),
|
.ackFlags(ackFlags),
|
.ackFlags(ackFlags),
|