Line 1... |
Line 1... |
/*
|
/*
|
Author: Sebastien Riou (acapola)
|
Author: Sebastien Riou (acapola)
|
Creation date: 21:16:10 08/29/2010
|
Creation date: 21:16:10 08/29/2010
|
|
|
$LastChangedDate: 2011-01-29 17:13:49 +0100 (Sat, 29 Jan 2011) $
|
$LastChangedDate: 2011-03-07 14:17:52 +0100 (Mon, 07 Mar 2011) $
|
$LastChangedBy: acapola $
|
$LastChangedBy: acapola $
|
$LastChangedRevision: 12 $
|
$LastChangedRevision: 18 $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/sources/TxCore.v $
|
$HeadURL: file:///svn/iso7816_3_master/iso7816_3_master/trunk/sources/TxCore.v $
|
|
|
This file is under the BSD licence:
|
This file is under the BSD licence:
|
Copyright (c) 2011, Sebastien Riou
|
Copyright (c) 2011, Sebastien Riou
|
|
|
Line 114... |
Line 114... |
assign bitSel = {IDLE_BIT, START_BIT, dataBit, parityBit, STOP_BIT1, STOP_BIT2};
|
assign bitSel = {IDLE_BIT, START_BIT, dataBit, parityBit, STOP_BIT1, STOP_BIT2};
|
assign internalOut = bitSel[nextState];
|
assign internalOut = bitSel[nextState];
|
|
|
assign bitClocksCounterInitVal=0;
|
assign bitClocksCounterInitVal=0;
|
|
|
always @(nextState) begin
|
always @(*) begin
|
case(nextState)
|
case(nextState)
|
START_STATE:
|
START_STATE:
|
assign bitClocksCounterCompare = clocksPerBit-1;
|
bitClocksCounterCompare = clocksPerBit-1'b1;
|
SEND_STOP2_STATE:
|
SEND_STOP2_STATE:
|
assign bitClocksCounterCompare = clocksPerBit-1;
|
bitClocksCounterCompare = clocksPerBit-1'b1;
|
default:
|
default:
|
assign bitClocksCounterCompare = clocksPerBit;
|
bitClocksCounterCompare = clocksPerBit;
|
endcase
|
endcase
|
end
|
end
|
|
|
always @(nextState) begin
|
always @(nextState) begin
|
case(nextState)
|
case(nextState)
|