aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@trantor.hos.anvin.org>2009-01-04 21:10:11 -0800
committerH. Peter Anvin <hpa@trantor.hos.anvin.org>2009-01-04 21:10:11 -0800
commit9a543f3c52184488f5c9451298130afc124e8ccc (patch)
tree44ffbb58406510ebf105aed36099243c9d441f4d
parent6fc2802cee1f6779d4257c990d0a7bd2a532ee4d (diff)
downloadabc80-9a543f3c52184488f5c9451298130afc124e8ccc.tar.gz
abc80-9a543f3c52184488f5c9451298130afc124e8ccc.tar.xz
abc80-9a543f3c52184488f5c9451298130afc124e8ccc.zip
printer.v: allow C3# (OUT 4) to clear the input FIFO
Implement a flash clear command; it's easy enough to do.
-rw-r--r--printer.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/printer.v b/printer.v
index dcd77d1..8a3053c 100644
--- a/printer.v
+++ b/printer.v
@@ -22,6 +22,7 @@
//
// - ABC-bus select code 60 decimal;
// OUT 0 - (OUT) output data
+// OUT 4 - (C3) reset input FIFO
// IN 0 - (INP) input data
// INP 1 - (STAT) bit 5 - Tx busy
// bit 6 - Rx available
@@ -235,7 +236,7 @@ module printer (
.clock (clk),
.data (rx_data[7:0]),
.wrreq (rx_write_stb),
- .sclr (~reset_n),
+ .sclr (~reset_n | (selected & ~abc_c3_n)),
.almost_full (tty_rts),
.empty (rx_empty),
.full ( ),