OpenCores
URL https://opencores.org/ocsvn/connect-6/connect-6/trunk

Subversion Repositories connect-6

[/] [connect-6/] [trunk/] [BUILD_SCC/] [DE2/] [async_transmitter_altera.v] - Diff between revs 7 and 8

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 7 Rev 8
Line 1... Line 1...
module async_transmitter(clk, TxD_start, TxD_data, TxD, TxD_busy);
module async_transmitter(clk, TxD_start, TxD_data, TxD, TxD_busy);
input clk, TxD_start;
input clk, TxD_start;
input [7:0] TxD_data;
input [7:0] TxD_data;
output TxD, TxD_busy;
output TxD, TxD_busy;
 
 
//parameter ClkFrequency = 50000000; // 50MHz
//parameter ClkFrequency = 62500000; // 60MHz
parameter ClkFrequency = 27000000; // 27MHz
parameter ClkFrequency = 50000000; // 50MHz
 
//parameter ClkFrequency = 27000000; // 27MHz
parameter Baud = 115200;
parameter Baud = 115200;
 
 
// Baud generator
// Baud generator
parameter BaudGeneratorAccWidth = 16;
parameter BaudGeneratorAccWidth = 16;
parameter BaudGeneratorInc = ((Baud<<(BaudGeneratorAccWidth-4))+(ClkFrequency>>5))/(ClkFrequency>>4);
parameter BaudGeneratorInc = ((Baud<<(BaudGeneratorAccWidth-4))+(ClkFrequency>>5))/(ClkFrequency>>4);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.