aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-01-18 16:44:30 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-01-18 16:44:30 -0800
commit0bbb0f26d29c19cfb44e8555b2101ec4a420c5b3 (patch)
treedd7ac5ddf0a83639e432e22708c939da741d03ba
parentb695f141475de6c91894afe137017f4767a7fef4 (diff)
downloadabc80-0bbb0f26d29c19cfb44e8555b2101ec4a420c5b3.tar.gz
abc80-0bbb0f26d29c19cfb44e8555b2101ec4a420c5b3.tar.xz
abc80-0bbb0f26d29c19cfb44e8555b2101ec4a420c5b3.zip
Remove "turbo mode" - it will not workabc80-de1-16
The driver chip on the DE1 is a MAX232, which is rated only for 120 kbps. As a result, expecting 461 kbps to work is optimistic at best, and is only going to be a source of problems. Drop any trace of "turbo mode" support, and let the synthesizer do a better job instead.
-rw-r--r--abc80.v3
-rw-r--r--printer.v11
-rw-r--r--tools/abcprintd.c5
3 files changed, 5 insertions, 14 deletions
diff --git a/abc80.v b/abc80.v
index cddc634..3422a13 100644
--- a/abc80.v
+++ b/abc80.v
@@ -655,8 +655,7 @@ module abc80 (
.abc_rst_n ( abc_in_n[7] ),
.abc_do ( cpu_do ),
.abc_di ( abc_pr_di ),
- .select ( pr_select ),
- .turbo ( sw[2] )
+ .select ( pr_select )
);
// The terminology gets a bit funny there. abc_do means data from
diff --git a/printer.v b/printer.v
index 2358980..79a7985 100644
--- a/printer.v
+++ b/printer.v
@@ -52,8 +52,7 @@ module printer (
abc_do, // ABC-bus data out (cpu->card)
abc_di, // ABC-bus data in (card->cpu)
- select, // Select LED
- turbo // Turbo switch
+ select // Select LED
);
input reset_n;
@@ -78,7 +77,6 @@ module printer (
output [7:0] abc_di;
output select;
- input turbo;
// Which select code this device uses
parameter selectcode = 6'd60;
@@ -91,11 +89,8 @@ module printer (
assign tty_txd = tx_data_out;
// Baud rate divider
- parameter baud_rate_norml = 115200;
- parameter baud_div_norml = (25000000/baud_rate_norml)-1;
- parameter baud_rate_turbo = 460800;
- parameter baud_div_turbo = (25000000/baud_rate_turbo)-1;
- wire [7:0] baud_div = turbo ? baud_div_turbo : baud_div_norml;
+ parameter baud_rate = 115200;
+ parameter baud_div = (25000000/baud_rate)-1;
reg [7:0] baud_rate_ctr;
// Time to advance the serial register
wire advance_bit = ~|baud_rate_ctr;
diff --git a/tools/abcprintd.c b/tools/abcprintd.c
index d5deead..4b4b610 100644
--- a/tools/abcprintd.c
+++ b/tools/abcprintd.c
@@ -211,9 +211,6 @@ int main(int argc, char *argv[])
case 'd':
file_op_dir = optarg;
break;
- case 't':
- speed = B460800;
- break;
default:
badopt = true;
break;
@@ -225,7 +222,7 @@ int main(int argc, char *argv[])
"Usage: %s [options] port lpr_program [lpr_args...]]\n"
"Options:\n"
" -d dir enable file access to directory dir\n"
- /* " -t turbo mode (460800 bps)\n" */,
+ ,
argv[0]);
exit(1);
}