URL
https://opencores.org/ocsvn/rtftextcontroller/rtftextcontroller/trunk
Show entire file |
Details |
Blame |
View Log
Rev 25 |
Rev 27 |
Line 1... |
Line 1... |
`timescale 1ns / 1ps
|
`timescale 1ns / 1ps
|
// ============================================================================
|
// ============================================================================
|
// __
|
// __
|
// \\__/ o\ (C) 2006-2014 Robert Finch, Stratford
|
// \\__/ o\ (C) 2006-2016 Robert Finch, Stratford
|
// \ __ / All rights reserved.
|
// \ __ / All rights reserved.
|
// \/_// robfinch<remove>@finitron.ca
|
// \/_// robfinch<remove>@finitron.ca
|
// ||
|
// ||
|
//
|
//
|
// rtfTextController3.v
|
// rtfTextController3.v
|
Line 155... |
Line 155... |
wire [27:0] tdat_o;
|
wire [27:0] tdat_o;
|
wire [8:0] chdat_o;
|
wire [8:0] chdat_o;
|
|
|
wire [2:0] scanindex = scanline[2:0];
|
wire [2:0] scanindex = scanline[2:0];
|
|
|
|
|
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
// Address Decoding
|
// Address Decoding
|
// I/O range Dx
|
// I/O range Dx
|
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
wire cs_text = cyc_i && stb_i && (adr_i[31:16]==pTextAddress[31:16]);
|
wire cs_text = cyc_i && stb_i && (adr_i[31:16]==pTextAddress[31:16]);
|
Line 385... |
Line 384... |
cursorStart <= 5'd00;
|
cursorStart <= 5'd00;
|
cursorEnd <= 5'd31;
|
cursorEnd <= 5'd31;
|
cursorPos <= 16'h0003;
|
cursorPos <= 16'h0003;
|
cursorType <= 2'b00;
|
cursorType <= 2'b00;
|
txtTcCode <= 9'h1ff;
|
txtTcCode <= 9'h1ff;
|
charOutDelay <= 12'd2;
|
charOutDelay <= 12'd3;
|
end
|
end
|
else if (num==4'd2) begin
|
else if (num==4'd2) begin
|
windowTop <= 12'd64;//12'd16;
|
windowTop <= 12'd64;//12'd16;
|
windowLeft <= 12'h376;//12'd86;
|
windowLeft <= 12'h376;//12'd86;
|
pixelWidth <= 4'd0; // 680 pixels
|
pixelWidth <= 4'd0; // 680 pixels
|
Line 403... |
Line 402... |
cursorStart <= 5'd00;
|
cursorStart <= 5'd00;
|
cursorEnd <= 5'd31;
|
cursorEnd <= 5'd31;
|
cursorPos <= 16'h0003;
|
cursorPos <= 16'h0003;
|
cursorType <= 2'b00;
|
cursorType <= 2'b00;
|
txtTcCode <= 9'h1ff;
|
txtTcCode <= 9'h1ff;
|
charOutDelay <= 12'd2;
|
charOutDelay <= 12'd3;
|
end
|
end
|
end
|
end
|
else begin
|
else begin
|
|
|
if (cs_reg & we_i) begin // register write ?
|
if (cs_reg & we_i) begin // register write ?
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.