first check in
This commit is contained in:
commit
f00b53c0f3
103 files changed
+80778
No files matched your search
Binary file not shown.
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,207 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: EE_Cold_Bt.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Stan Hodge
|
||||
//
|
||||
// EE_Cold_Bt by Stan Hodge 11/30/21
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module EE_Cold_Bt(
|
||||
input CLK,
|
||||
|
||||
input Display_EE, // from MISTer subsystem
|
||||
input Cold_Boot, // from MISTer subsystem
|
||||
|
||||
output RESET_to_COCO_N, // RESET_N to the coco3 [logically AND'ed to top reset]
|
||||
output EE_to_COCO // Easter Egg to the coco3
|
||||
|
||||
);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
reg Display_EE_D = 1'b0;
|
||||
reg Cold_Boot_D = 1'b0;
|
||||
wire Start_Display_EE, Start_Cold_Boot;
|
||||
wire [3:0] inst;
|
||||
reg EE = 1'b1;
|
||||
reg N_RESET = 1'b1;
|
||||
|
||||
assign EE_to_COCO = EE;
|
||||
assign RESET_to_COCO_N = N_RESET;
|
||||
|
||||
reg [47:0] prog = 48'h000000000000;
|
||||
assign inst = prog[3:0];
|
||||
|
||||
reg next_instruction = 1'b0;
|
||||
|
||||
reg [23:0] timer = 24'h000000;
|
||||
|
||||
localparam SHORT_TIME = 24'h0aecdf; // .05 sec @ 14.32 Mhz
|
||||
localparam LONG_TIME = 24'h418D40; // .3 sec @ 14.32 Mhz
|
||||
|
||||
localparam EE_PROG = {20'h00000, inst_EE_INACTIVE, inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE,
|
||||
inst_EE_ACTIVE, inst_START};
|
||||
localparam Cold_Boot_PROG = {1'h0, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_SHORT_TIMER, inst_EE_INACTIVE,
|
||||
inst_LONG_TIMER, inst_RESET_INACTIVE, inst_SHORT_TIMER, inst_RESET_ACTIVE, inst_EE_ACTIVE, inst_START};
|
||||
|
||||
localparam inst_NULL = 4'd0;
|
||||
localparam inst_EE_ACTIVE = 4'd1;
|
||||
localparam inst_EE_INACTIVE = 4'd2;
|
||||
localparam inst_RESET_ACTIVE = 4'd3;
|
||||
localparam inst_RESET_INACTIVE =4'd4;
|
||||
localparam inst_SHORT_TIMER = 4'd5;
|
||||
localparam inst_LONG_TIMER = 4'd6;
|
||||
localparam inst_START = 4'd8;
|
||||
|
||||
assign Start_Display_EE = ((Display_EE == 1'b1) & (Display_EE_D == 1'b0));
|
||||
assign Start_Cold_Boot = ((Cold_Boot == 1'b1) & (Cold_Boot_D == 1'b0));
|
||||
|
||||
|
||||
always @(posedge CLK)
|
||||
begin
|
||||
|
||||
Display_EE_D <= Display_EE;
|
||||
Cold_Boot_D <= Cold_Boot;
|
||||
|
||||
next_instruction <= 1'b0;
|
||||
|
||||
if (Start_Display_EE)
|
||||
begin
|
||||
prog <= EE_PROG;
|
||||
end
|
||||
|
||||
if (Start_Cold_Boot)
|
||||
begin
|
||||
prog <= Cold_Boot_PROG;
|
||||
end
|
||||
|
||||
if (next_instruction)
|
||||
prog[43:0] <= prog[47:4];
|
||||
|
||||
case(inst)
|
||||
|
||||
inst_NULL:;
|
||||
|
||||
inst_START:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
timer <= 24'h000000; // clear timer
|
||||
next_instruction <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
inst_EE_ACTIVE:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
EE <= 1'b0;
|
||||
next_instruction <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
inst_EE_INACTIVE:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
EE <= 1'b1;
|
||||
next_instruction <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
inst_RESET_ACTIVE:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
N_RESET <= 1'b0;
|
||||
next_instruction <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
inst_RESET_INACTIVE:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
N_RESET <= 1'b1;
|
||||
next_instruction <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
inst_SHORT_TIMER:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
timer <= timer + 1'b1;
|
||||
if (timer==SHORT_TIME)
|
||||
begin
|
||||
next_instruction <= 1'b1;
|
||||
timer <= 24'h000000; // clear timer
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
inst_LONG_TIMER:
|
||||
begin
|
||||
if (!next_instruction)
|
||||
begin
|
||||
timer <= timer + 1'b1;
|
||||
if (timer==LONG_TIME)
|
||||
begin
|
||||
next_instruction <= 1'b1;
|
||||
timer <= 24'h000000; // clear timer
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
default:;
|
||||
|
||||
endcase
|
||||
end
|
||||
|
||||
endmodule
|
||||
+1865
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,288 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: coco3fpga.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
// Revision: 4.0 07/10/16
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
// The FDC co-processor copyrighted Daniel Wallner.
|
||||
// SDRAM Controller copyrighted by XESS Corp.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 4.0
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
// The latest version of this file can be found at:
|
||||
// http://groups.yahoo.com/group/CoCo3FPGA
|
||||
//
|
||||
// File history :
|
||||
//
|
||||
// 1.0 Full Release
|
||||
// 2.0 Partial Release
|
||||
// 3.0 Full Release
|
||||
// 3.0.0.1 Update to fix DoD interrupt issue
|
||||
// 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
// 4.0.X.X Full Release
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module ps2_keyboard (
|
||||
input CLK,
|
||||
input ENA,
|
||||
input RESET_N,
|
||||
input PS2_CLK,
|
||||
input PS2_DATA,
|
||||
output reg RX_PRESSED,
|
||||
output reg RX_EXTENDED,
|
||||
output reg [7:0] RX_SCAN
|
||||
);
|
||||
|
||||
|
||||
reg KB_CLK;
|
||||
reg KB_DATA;
|
||||
reg KB_CLK_B;
|
||||
reg KB_DATA_B;
|
||||
reg PRESSED_N;
|
||||
reg EXTENDED;
|
||||
reg [2:0] BIT;
|
||||
reg [3:0] STATE;
|
||||
reg [7:0] SCAN;
|
||||
wire PARITY;
|
||||
reg [10:0] TIMER;
|
||||
reg KILLER;
|
||||
wire RESET_X;
|
||||
|
||||
reg ENA_D;
|
||||
|
||||
// Double buffer
|
||||
always @ (posedge CLK)
|
||||
begin
|
||||
ENA_D <= ENA;
|
||||
|
||||
if (ENA == 1'b1 && ENA_D == 1'b0)
|
||||
begin
|
||||
KB_CLK_B <= PS2_CLK;
|
||||
KB_DATA_B <= PS2_DATA;
|
||||
KB_CLK <= KB_CLK_B;
|
||||
KB_DATA <= KB_DATA_B;
|
||||
end
|
||||
end
|
||||
|
||||
assign PARITY = ~(((SCAN[0]^SCAN[1])
|
||||
^(SCAN[2]^SCAN[3]))
|
||||
^((SCAN[4]^SCAN[5])
|
||||
^(SCAN[6]^SCAN[7])));
|
||||
|
||||
assign RESET_X = RESET_N & KILLER;
|
||||
|
||||
always @ (negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
KILLER <= 1'b1;
|
||||
TIMER <= 11'h000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
||||
if (ENA == 1'b0 && ENA_D == 1'b1)
|
||||
begin
|
||||
case(TIMER)
|
||||
11'h000:
|
||||
begin
|
||||
KILLER <= 1'b1;
|
||||
if(STATE != 4'h0)
|
||||
TIMER <= 11'h001;
|
||||
end
|
||||
11'h7FD:
|
||||
begin
|
||||
KILLER <= 1'b0;
|
||||
TIMER <= 11'h7FE;
|
||||
end
|
||||
default:
|
||||
if(STATE == 4'h0)
|
||||
TIMER <= 11'h000;
|
||||
else
|
||||
TIMER <= TIMER + 1'b1;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
always @ (posedge CLK or negedge RESET_X)
|
||||
begin
|
||||
if(!RESET_X)
|
||||
begin
|
||||
STATE <= 4'h0;
|
||||
SCAN <= 8'h00;
|
||||
BIT <= 3'b000;
|
||||
RX_SCAN <= 8'h00;
|
||||
RX_PRESSED <= 1'b0;
|
||||
RX_EXTENDED <= 1'b0;
|
||||
PRESSED_N <= 1'b0;
|
||||
EXTENDED <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
||||
if (ENA == 1'b1 && ENA_D == 1'b0)
|
||||
case (STATE)
|
||||
4'h0: // Hunt for start bit
|
||||
begin
|
||||
BIT <= 3'b000;
|
||||
RX_SCAN <= 8'h00;
|
||||
RX_PRESSED <= 1'b0;
|
||||
RX_EXTENDED <= 1'b0;
|
||||
if(~KB_DATA & ~KB_CLK) //look for start bit
|
||||
STATE <= 4'h1;
|
||||
end
|
||||
4'h1: // next bit
|
||||
begin
|
||||
if(KB_CLK)
|
||||
STATE <= 4'h2;
|
||||
end
|
||||
4'h2: // Hunt for Bit
|
||||
begin
|
||||
if(~KB_CLK)
|
||||
begin
|
||||
SCAN[BIT] <= KB_DATA;
|
||||
BIT <= BIT + 1'b1;
|
||||
if(BIT == 3'b111)
|
||||
STATE <= 4'h3;
|
||||
else
|
||||
STATE <= 4'h1;
|
||||
end
|
||||
end
|
||||
4'h3: // Hunt for Bit
|
||||
begin
|
||||
if(KB_CLK)
|
||||
STATE <= 4'h4;
|
||||
end
|
||||
4'h4: // Test parity
|
||||
begin
|
||||
if(~KB_CLK)
|
||||
begin
|
||||
if(KB_DATA == PARITY)
|
||||
STATE <= 4'h5;
|
||||
else
|
||||
begin
|
||||
PRESSED_N <= 1'b0;
|
||||
EXTENDED <= 1'b0;
|
||||
SCAN <= 8'h00;
|
||||
STATE <= 4'hF;
|
||||
end
|
||||
end
|
||||
end
|
||||
4'h5: // Look for Stop bit
|
||||
begin
|
||||
if(KB_CLK)
|
||||
STATE <= 4'h6;
|
||||
end
|
||||
4'h6: // Stop bit
|
||||
begin
|
||||
if(~KB_CLK)
|
||||
STATE <= 4'h7;
|
||||
end
|
||||
4'h7:
|
||||
begin
|
||||
if(SCAN ==8'hE0)
|
||||
begin
|
||||
EXTENDED <= 1'b1;
|
||||
STATE <= 4'hF;
|
||||
end
|
||||
else
|
||||
if(SCAN == 8'hF0)
|
||||
begin
|
||||
PRESSED_N <= 1'b1;
|
||||
STATE <= 4'hF;
|
||||
end
|
||||
else
|
||||
begin
|
||||
RX_SCAN <= SCAN;
|
||||
RX_PRESSED <= ~PRESSED_N;
|
||||
RX_EXTENDED <= EXTENDED;
|
||||
PRESSED_N <= 1'b0;
|
||||
EXTENDED <= 1'b0;
|
||||
SCAN <= 8'h00;
|
||||
STATE <= 4'hF;
|
||||
end
|
||||
end
|
||||
4'h8:
|
||||
begin
|
||||
STATE <= 4'h9;
|
||||
end
|
||||
4'h9:
|
||||
begin
|
||||
STATE <= 4'hA;
|
||||
end
|
||||
4'hA:
|
||||
begin
|
||||
STATE <= 4'hB;
|
||||
end
|
||||
4'hB:
|
||||
begin
|
||||
STATE <= 4'hC;
|
||||
end
|
||||
4'hC:
|
||||
begin
|
||||
STATE <= 4'hD;
|
||||
end
|
||||
4'hD:
|
||||
begin
|
||||
STATE <= 4'hE;
|
||||
end
|
||||
4'hE:
|
||||
begin
|
||||
STATE <= 4'hF;
|
||||
end
|
||||
4'hF:
|
||||
begin
|
||||
if(KB_CLK)
|
||||
STATE <= 4'h0;
|
||||
end
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
||||
@@ -0,0 +1,257 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: 6551rx.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
// Revision: 4.0 07/10/16
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
// The FDC co-processor copyrighted Daniel Wallner.
|
||||
// SDRAM Controller copyrighted by XESS Corp.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 4.0
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
// The latest version of this file can be found at:
|
||||
// http://groups.yahoo.com/group/CoCo3FPGA
|
||||
//
|
||||
// File history :
|
||||
//
|
||||
// 1.0 Full Release
|
||||
// 2.0 Partial Release
|
||||
// 3.0 Full Release
|
||||
// 3.0.0.1 Update to fix DoD interrupt issue
|
||||
// 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
// 4.0.X.X Full Release
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module uart51_rx(
|
||||
RESET_N,
|
||||
BAUD_CLK,
|
||||
//E,
|
||||
//REG_READ,
|
||||
RX_DATA,
|
||||
RX_BUFFER,
|
||||
// RX_READY,
|
||||
RX_WORD,
|
||||
RX_PAR_DIS,
|
||||
RX_PARITY,
|
||||
PARITY_ERR,
|
||||
// OVERRUN,
|
||||
FRAME,
|
||||
READY
|
||||
);
|
||||
input RESET_N;
|
||||
input BAUD_CLK;
|
||||
//input E;
|
||||
//input REG_READ;
|
||||
input RX_DATA;
|
||||
output [7:0] RX_BUFFER;
|
||||
reg [7:0] RX_BUFFER;
|
||||
// input RX_READY;
|
||||
// reg RX_READY;
|
||||
input [1:0] RX_WORD;
|
||||
input RX_PAR_DIS;
|
||||
input [1:0] RX_PARITY;
|
||||
output PARITY_ERR;
|
||||
reg PARITY_ERR;
|
||||
// output OVERRUN;
|
||||
// reg OVERRUN;
|
||||
output FRAME;
|
||||
reg FRAME;
|
||||
output READY;
|
||||
reg READY;
|
||||
reg [5:0] STATE;
|
||||
reg [2:0] BIT;
|
||||
// reg [1:0] READ_STATE;
|
||||
reg RX_DATA0;
|
||||
reg RX_DATA1;
|
||||
|
||||
// Even though we are checking the state machine using the E clock
|
||||
// The clock can be up to 1/3 the speed of the bit clock
|
||||
// Only the first three bits are checks and the state machine
|
||||
// has three states that will compare
|
||||
//always @ (negedge E or negedge RESET_N)
|
||||
//begin
|
||||
// if(~RESET_N)
|
||||
// begin
|
||||
// RX_READY <= 1'b0;
|
||||
// READ_STATE <= 2'b00;
|
||||
// end
|
||||
// else
|
||||
// case (READ_STATE)
|
||||
// 2'b00:
|
||||
// begin
|
||||
// if(STATE[5:2] == 4'b1110) //Stop bit
|
||||
// begin
|
||||
// RX_READY <= 1'b1;
|
||||
// READ_STATE <= 2'b01;
|
||||
// end
|
||||
// end
|
||||
// 2'b01:
|
||||
// begin
|
||||
// if(REG_READ)
|
||||
// begin
|
||||
// RX_READY <= 1'b0;
|
||||
// READ_STATE <= 2'b10;
|
||||
// end
|
||||
// end
|
||||
// 2'b10:
|
||||
// begin
|
||||
// if(STATE[5:3] != 3'b111)
|
||||
// READ_STATE <= 2'b00;
|
||||
// end
|
||||
// endcase
|
||||
//end
|
||||
|
||||
|
||||
always @ (posedge BAUD_CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
RX_BUFFER <= 8'h00;
|
||||
STATE <= 6'b000000;
|
||||
// OVERRUN <= 1'b0;
|
||||
FRAME <= 1'b0;
|
||||
BIT <= 3'b000;
|
||||
RX_DATA0 <= 1'b1;
|
||||
RX_DATA1 <= 1'b1;
|
||||
READY <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
RX_DATA0 <= RX_DATA;
|
||||
RX_DATA1 <= RX_DATA0;
|
||||
case (STATE)
|
||||
6'b000000: // States 0-15 will be start bit
|
||||
begin
|
||||
BIT <= 3'b000;
|
||||
if(~RX_DATA1)
|
||||
STATE <= 6'b000001;
|
||||
end
|
||||
6'b001111: // End of start bit, flag data not ready
|
||||
begin // If data is not retrieved before this, then overrun
|
||||
READY <= 1'b0;
|
||||
STATE <= 6'b010000;
|
||||
end
|
||||
6'b010111: // Each data bit is states 16-31, the middle is 23
|
||||
begin
|
||||
RX_BUFFER[BIT] <= RX_DATA1;
|
||||
// OVERRUN <= RX_READY;
|
||||
STATE <= 6'b011000;
|
||||
end
|
||||
6'b011111: // End of the data bits
|
||||
begin
|
||||
if(BIT == 3'b111)
|
||||
begin
|
||||
STATE <= 6'b100000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((RX_WORD == 2'b01) && (BIT == 3'b110))
|
||||
begin
|
||||
STATE <= 6'b100000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((RX_WORD == 2'b10) && (BIT == 3'b101))
|
||||
begin
|
||||
STATE <= 6'b100000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((RX_WORD == 2'b11) && (BIT == 3'b100))
|
||||
begin
|
||||
STATE <= 6'b100000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
BIT <= BIT + 1;
|
||||
STATE <= 6'b010000;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
6'b100000: // First tick of Stop or Parity, Parity is 32 - 47
|
||||
begin
|
||||
if(RX_PAR_DIS)
|
||||
STATE <= 6'b110001; // get stop
|
||||
else
|
||||
STATE <= 6'b100001; // get parity
|
||||
end
|
||||
6'b100111: // Middle of Parity is 39
|
||||
begin
|
||||
PARITY_ERR <= ~RX_PARITY[1] & // Get but do not check Parity if 1 is set
|
||||
(((RX_BUFFER[0] ^ RX_BUFFER[1])
|
||||
^ (RX_BUFFER[2] ^ RX_BUFFER[3]))
|
||||
|
||||
^((RX_BUFFER[4] ^ RX_BUFFER[5])
|
||||
^ (RX_BUFFER[6] ^ RX_BUFFER[7])) // clear bit #8 if only 7 bits
|
||||
|
||||
^ (~RX_PARITY[0] ^ RX_DATA1));
|
||||
STATE <= 6'b101000;
|
||||
// 1 bit early for timing reasons
|
||||
end
|
||||
6'b110111: // first stop bit is 32 or 48 then 49 - 63
|
||||
begin
|
||||
// OVERRUN <= 1'b0;
|
||||
FRAME <= !RX_DATA1; // if data != 1 then not stop bit
|
||||
READY <= 1'b1;
|
||||
STATE <= 6'b111000;
|
||||
end
|
||||
// In case of a framing error, wait until data is 1 then start over
|
||||
// We skipped this check for 6 clock cycles so CPU speed is not a factor
|
||||
// in the RX_READY state machine above
|
||||
6'b111000:
|
||||
begin
|
||||
if(RX_DATA1)
|
||||
STATE <= 6'b000000;
|
||||
end
|
||||
default: STATE <= STATE + 1;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
@@ -0,0 +1,225 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: 6551tx.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
// Revision: 4.0 07/10/16
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
// The FDC co-processor copyrighted Daniel Wallner.
|
||||
// SDRAM Controller copyrighted by XESS Corp.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 4.0
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
// The latest version of this file can be found at:
|
||||
// http://groups.yahoo.com/group/CoCo3FPGA
|
||||
//
|
||||
// File history :
|
||||
//
|
||||
// 1.0 Full Release
|
||||
// 2.0 Partial Release
|
||||
// 3.0 Full Release
|
||||
// 3.0.0.1 Update to fix DoD interrupt issue
|
||||
// 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
// 4.0.X.X Full Release
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module uart51_tx(
|
||||
BAUD_CLK,
|
||||
RESET_N,
|
||||
TX_DATA,
|
||||
TX_START,
|
||||
TX_DONE,
|
||||
TX_STOP,
|
||||
TX_WORD,
|
||||
TX_PAR_DIS,
|
||||
TX_PARITY,
|
||||
CTS,
|
||||
TX_BUFFER
|
||||
);
|
||||
|
||||
input BAUD_CLK;
|
||||
input RESET_N;
|
||||
output TX_DATA;
|
||||
reg TX_DATA;
|
||||
input TX_START;
|
||||
output TX_DONE;
|
||||
reg TX_DONE;
|
||||
input TX_STOP;
|
||||
input [1:0] TX_WORD;
|
||||
input TX_PAR_DIS;
|
||||
input [1:0] TX_PARITY;
|
||||
input CTS;
|
||||
input [7:0] TX_BUFFER;
|
||||
|
||||
reg [6:0] STATE;
|
||||
reg [2:0] BIT;
|
||||
wire PARITY;
|
||||
reg TX_START0;
|
||||
reg TX_START1;
|
||||
|
||||
assign PARITY = (~TX_PARITY[1]
|
||||
|
||||
& ((TX_BUFFER[0] ^ TX_BUFFER[1])
|
||||
^ (TX_BUFFER[2] ^ TX_BUFFER[3]))
|
||||
|
||||
^ (TX_BUFFER[4]
|
||||
^ (TX_BUFFER[5] & (TX_WORD != 2'b00)))
|
||||
|
||||
^ ((TX_BUFFER[6] & (TX_WORD[1] == 1'b1))
|
||||
^ (TX_BUFFER[7] & (TX_WORD == 2'b11)))) // clear bit #8 if only 7 bits
|
||||
|
||||
^ ~TX_PARITY[0];
|
||||
|
||||
always @ (negedge BAUD_CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
STATE <= 7'b0000000;
|
||||
TX_DATA <= 1'b1;
|
||||
TX_DONE <= 1'b1;
|
||||
BIT <= 3'b000;
|
||||
TX_START0 <= 1'b0;
|
||||
TX_START1 <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
TX_START0 <= TX_START;
|
||||
TX_START1 <= TX_START0;
|
||||
case (STATE)
|
||||
7'b0000000:
|
||||
begin
|
||||
BIT <= 3'b000;
|
||||
TX_DATA <= 1'b1;
|
||||
if(TX_START1 == 1'b1)
|
||||
begin
|
||||
TX_DONE <= 1'b0;
|
||||
STATE <= 7'b0000001;
|
||||
end
|
||||
end
|
||||
7'b0000001: // Start bit
|
||||
begin
|
||||
TX_DATA <= 1'b0;
|
||||
STATE <= 7'b0000010;
|
||||
end
|
||||
7'b0010001:
|
||||
begin
|
||||
TX_DATA <= TX_BUFFER[BIT];
|
||||
STATE <= 7'b0010010;
|
||||
end
|
||||
7'b0100000:
|
||||
begin
|
||||
BIT <= BIT + 1;
|
||||
if((TX_WORD == 2'b00) && (BIT != 3'b111))
|
||||
begin
|
||||
STATE <= 7'b0010001;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((TX_WORD == 2'b01) && (BIT != 3'b110))
|
||||
begin
|
||||
STATE <= 7'b0010001;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((TX_WORD == 2'b10) && (BIT != 3'b101))
|
||||
begin
|
||||
STATE <= 7'b0010001;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if((TX_WORD == 2'b11) && (BIT != 3'b100))
|
||||
begin
|
||||
STATE <= 7'b0010001;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if(!TX_PAR_DIS)
|
||||
begin
|
||||
STATE <= 7'b0100001; // do parity
|
||||
end
|
||||
else
|
||||
begin
|
||||
STATE <= 7'b0110001; // do stop
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
// Start parity bit
|
||||
7'b0100001:
|
||||
begin
|
||||
TX_DATA <= PARITY;
|
||||
STATE <= 7'b0100010;
|
||||
end
|
||||
// start stop
|
||||
7'b0110001:
|
||||
begin
|
||||
TX_DONE <= 1'b1;
|
||||
TX_DATA <= 1'b1;
|
||||
STATE <= 7'b0110010;
|
||||
end
|
||||
// end of first stop bit-1
|
||||
7'b0111111:
|
||||
begin
|
||||
if(!TX_STOP)
|
||||
STATE <= 7'b1001111; // go check for CTS
|
||||
else
|
||||
STATE <= 7'b1000000;
|
||||
end
|
||||
7'b1001111:
|
||||
begin
|
||||
if(!CTS) // this is not correct for a 6551
|
||||
begin
|
||||
STATE <= 7'b0000000;
|
||||
end
|
||||
end
|
||||
default: STATE <= STATE + 1;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
@@ -0,0 +1,480 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: uart_6551.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
// Revision: 4.0 07/10/16
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
// The FDC co-processor copyrighted Daniel Wallner.
|
||||
// SDRAM Controller copyrighted by XESS Corp.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 4.0
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
// The latest version of this file can be found at:
|
||||
// http://groups.yahoo.com/group/CoCo3FPGA
|
||||
//
|
||||
// File history :
|
||||
//
|
||||
// 1.0 Full Release
|
||||
// 2.0 Partial Release
|
||||
// 3.0 Full Release
|
||||
// 3.0.0.1 Update to fix DoD interrupt issue
|
||||
// 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
// 4.0.X.X Full Release
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module glb6551(
|
||||
RESET_N,
|
||||
RX_CLK,
|
||||
RX_CLK_IN,
|
||||
XTAL_CLK_IN,
|
||||
PH_2,
|
||||
DI,
|
||||
DO,
|
||||
IRQ,
|
||||
CS,
|
||||
RW_N,
|
||||
RS,
|
||||
TXDATA_OUT,
|
||||
RXDATA_IN,
|
||||
RTS,
|
||||
CTS,
|
||||
DCD,
|
||||
DTR,
|
||||
DSR
|
||||
);
|
||||
|
||||
input RESET_N;
|
||||
output RX_CLK;
|
||||
input RX_CLK_IN;
|
||||
input XTAL_CLK_IN;
|
||||
input PH_2;
|
||||
input [7:0] DI;
|
||||
output [7:0] DO;
|
||||
output IRQ;
|
||||
input [1:0] CS;
|
||||
input [1:0] RS;
|
||||
input RW_N;
|
||||
output TXDATA_OUT;
|
||||
input RXDATA_IN;
|
||||
output RTS;
|
||||
input CTS;
|
||||
input DCD;
|
||||
output DTR;
|
||||
input DSR;
|
||||
|
||||
reg [7:0] TX_BUFFER;
|
||||
reg [7:0] TX_REG;
|
||||
wire [7:0] RX_BUFFER;
|
||||
reg [7:0] RX_REG;
|
||||
wire [7:0] STATUS_REG;
|
||||
reg [7:0] CTL_REG;
|
||||
reg [7:0] CMD_REG;
|
||||
reg OVERRUN;
|
||||
reg FRAME;
|
||||
reg PARITY;
|
||||
|
||||
wire TX_DONE;
|
||||
reg TX_DONE0;
|
||||
reg TX_DONE1;
|
||||
reg TX_START;
|
||||
reg TDRE;
|
||||
reg RDRF;
|
||||
reg [10:0] TX_CLK_DIV;
|
||||
wire TX_CLK;
|
||||
wire RX_CLK;
|
||||
wire FRAME_BUF;
|
||||
wire [1:0] WORD_SELECT;
|
||||
wire RESET_X;
|
||||
wire STOP;
|
||||
wire PARITY_ERR;
|
||||
wire PAR_DIS;
|
||||
reg [7:0] LOOPBACK;
|
||||
wire RX_DATA;
|
||||
wire TX_DATA;
|
||||
reg RESET_NX;
|
||||
reg TX_CLK_REG;
|
||||
reg [1:0] READ_STATE;
|
||||
wire GOT_DATA;
|
||||
reg READY0;
|
||||
reg READY1;
|
||||
/*
|
||||
Baud rate divisors
|
||||
(for toggle of baud clock bit)
|
||||
1 50 1152
|
||||
2 75 768
|
||||
3 110 524 -0.069396
|
||||
4 135 428 -0.311526
|
||||
5 150 384
|
||||
6 300 192
|
||||
7 600 96
|
||||
8 1200 48
|
||||
9 1800 32
|
||||
A 2400 24
|
||||
B 3600 16
|
||||
C 4800 12
|
||||
D 7200 8
|
||||
E 9600 6
|
||||
F 19200 3
|
||||
*/
|
||||
|
||||
always @ (negedge XTAL_CLK_IN or negedge RESET_X)
|
||||
begin
|
||||
if(~RESET_X)
|
||||
begin
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
TX_CLK_REG <= 1'b0;
|
||||
end
|
||||
else
|
||||
case (TX_CLK_DIV)
|
||||
11'h000:
|
||||
begin
|
||||
TX_CLK_DIV <= 11'h001;
|
||||
TX_CLK_REG <= ~TX_CLK_REG;
|
||||
end
|
||||
11'h002:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hF)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h003;
|
||||
end
|
||||
11'h005:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hE)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h006;
|
||||
end
|
||||
11'h007:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hD)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h008;
|
||||
end
|
||||
11'h00B:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hC)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h00C;
|
||||
end
|
||||
11'h00F:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hB)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h010;
|
||||
end
|
||||
11'h017:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'hA)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h018;
|
||||
end
|
||||
11'h01F:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h9)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h020;
|
||||
end
|
||||
11'h02F:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h8)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h030;
|
||||
end
|
||||
11'h05F:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h7)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h060;
|
||||
end
|
||||
11'h0BF:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h6)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h0C0;
|
||||
end
|
||||
11'h17F:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h5)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h180;
|
||||
end
|
||||
11'h1AB:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h4)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h1AC;
|
||||
end
|
||||
11'h20B:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h3)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h20C;
|
||||
end
|
||||
11'h2FF:
|
||||
begin
|
||||
if(CTL_REG[3:0] == 4'h2)
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
else
|
||||
TX_CLK_DIV <= 11'h300;
|
||||
end
|
||||
11'h47F:
|
||||
begin
|
||||
TX_CLK_DIV <= 11'h000;
|
||||
end
|
||||
default:
|
||||
begin
|
||||
TX_CLK_DIV <= TX_CLK_DIV +1'b1;
|
||||
end
|
||||
endcase
|
||||
end
|
||||
|
||||
assign TX_CLK = (CTL_REG[3:0] == 4'h0) ? XTAL_CLK_IN:
|
||||
TX_CLK_REG;
|
||||
|
||||
assign RX_CLK = (CTL_REG[4] == 1'b0) ? RX_CLK_IN:
|
||||
TX_CLK;
|
||||
|
||||
assign RESET_X = RESET_NX ? 1'b0:
|
||||
RESET_N;
|
||||
|
||||
always @ (negedge TX_CLK)
|
||||
begin
|
||||
LOOPBACK <= {LOOPBACK[6:0], TX_DATA}; //half bit time FIFO
|
||||
end
|
||||
|
||||
assign RX_DATA = (CMD_REG[4:2] == 3'b100) ? LOOPBACK[7]:
|
||||
RXDATA_IN;
|
||||
|
||||
assign TXDATA_OUT = (CMD_REG[4:2] == 3'b100) ? 1'b1:
|
||||
TX_DATA;
|
||||
|
||||
assign STATUS_REG = {!IRQ, DSR, DCD, TDRE, RDRF, OVERRUN, FRAME, PARITY};
|
||||
|
||||
assign DO = (RS == 2'b00) ? RX_REG:
|
||||
(RS == 2'b01) ? STATUS_REG:
|
||||
(RS == 2'b10) ? CMD_REG:
|
||||
CTL_REG;
|
||||
|
||||
assign IRQ = ({CMD_REG[1:0], RDRF} == 3'b011) ? 1'b0:
|
||||
({CMD_REG[3:2], CMD_REG[0], TDRE} == 4'b0111) ? 1'b0: 1'b1;
|
||||
|
||||
assign RTS = (CMD_REG[3:2] == 2'b00);
|
||||
assign DTR = ~CMD_REG[0];
|
||||
|
||||
assign STOP = (CTL_REG[7] == 1'b0) ? 1'b0: // Stop = 1
|
||||
({CTL_REG[7:5], CMD_REG[5]} == 4'b1001) ? 1'b0: // Stop >1 but 8bit word and parity
|
||||
1'b1; // Stop > 1
|
||||
|
||||
assign PAR_DIS = ~CMD_REG[5];
|
||||
assign WORD_SELECT = CTL_REG[6:5];
|
||||
|
||||
always @ (negedge PH_2 or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
RESET_NX <= 1'b1;
|
||||
else
|
||||
begin
|
||||
if({RW_N, CS, RS} == 5'b00101) // Software RESET
|
||||
RESET_NX <= 1'b1;
|
||||
else
|
||||
RESET_NX <= 1'b0;
|
||||
end
|
||||
end
|
||||
|
||||
always @ (negedge PH_2 or negedge RESET_X)
|
||||
begin
|
||||
if(!RESET_X)
|
||||
begin
|
||||
RDRF <= 1'b0;
|
||||
READ_STATE <= 2'b00;
|
||||
TX_BUFFER <= 8'h00;
|
||||
CTL_REG <= 8'h00;
|
||||
// Commador data sheet says reset value is 02
|
||||
// but Apple will not work unless it is 00
|
||||
CMD_REG <= 8'h00;
|
||||
TDRE <= 1'b1;
|
||||
TX_START <= 1'b0;
|
||||
RX_REG <= 8'h00;
|
||||
OVERRUN <= 1'b0;
|
||||
FRAME <= 1'b0;
|
||||
PARITY <= 1'b0;
|
||||
TX_DONE1 <= 1'b1;
|
||||
TX_DONE0 <= 1'b1;
|
||||
READY0 <= 1'b0;
|
||||
READY1 <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
TX_DONE1 <= TX_DONE0; // sync TX_DONE with E clock for metastability?
|
||||
TX_DONE0 <= TX_DONE;
|
||||
READY1 <= READY0;
|
||||
READY0 <= GOT_DATA;
|
||||
case (READ_STATE)
|
||||
2'b00:
|
||||
begin
|
||||
if(READY1) //Stop bit
|
||||
begin
|
||||
RDRF <= 1'b1;
|
||||
READ_STATE <= 2'b01;
|
||||
RX_REG <= RX_BUFFER;
|
||||
OVERRUN <= 1'b0;
|
||||
PARITY <= (PARITY_ERR & !PAR_DIS);
|
||||
FRAME <= FRAME_BUF;
|
||||
end
|
||||
end
|
||||
2'b01:
|
||||
begin
|
||||
if({RW_N, CS, RS} == 5'b10100)
|
||||
begin
|
||||
RDRF <= 1'b0;
|
||||
READ_STATE <= 2'b10;
|
||||
PARITY <= 1'b0;
|
||||
OVERRUN <= 1'b0;
|
||||
FRAME <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if(~READY1)
|
||||
READ_STATE <= 2'b11;
|
||||
end
|
||||
end
|
||||
2'b10:
|
||||
begin
|
||||
if(~READY1)
|
||||
READ_STATE <= 2'b00;
|
||||
end
|
||||
2'b11:
|
||||
begin
|
||||
if({RW_N, CS, RS} == 5'b10100)
|
||||
begin
|
||||
RDRF <= 1'b0;
|
||||
READ_STATE <= 2'b00;
|
||||
PARITY <= 1'b0;
|
||||
OVERRUN <= 1'b0;
|
||||
FRAME <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if(READY1)
|
||||
begin
|
||||
RDRF <= 1'b1;
|
||||
READ_STATE <= 2'b01;
|
||||
OVERRUN <= 1'b1;
|
||||
PARITY <= (PARITY_ERR & !PAR_DIS);
|
||||
FRAME <= FRAME_BUF;
|
||||
RX_REG <= RX_BUFFER;
|
||||
end
|
||||
end
|
||||
end
|
||||
endcase
|
||||
|
||||
if({RW_N, CS, RS} == 5'b00100) // Write TX data register
|
||||
TX_REG <= DI;
|
||||
|
||||
if({RW_N, CS, RS} == 5'b00110) // Write CMD register
|
||||
CMD_REG <= DI;
|
||||
|
||||
if({RW_N, CS, RS} == 5'b00111) // Write CTL register
|
||||
CTL_REG <= DI;
|
||||
|
||||
if(~TDRE & TX_DONE1 & ~TX_START & ~(CS == 2'b01))
|
||||
begin
|
||||
TX_BUFFER <= TX_REG;
|
||||
TDRE <= 1'b1;
|
||||
TX_START <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if({RW_N, CS, RS} == 5'b00100) // Write TX data register
|
||||
TDRE <= 1'b0;
|
||||
if(~TX_DONE1)
|
||||
TX_START <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
uart51_tx tx(
|
||||
.RESET_N(RESET_X),
|
||||
.BAUD_CLK(TX_CLK),
|
||||
.TX_DATA(TX_DATA),
|
||||
.TX_START(TX_START),
|
||||
.TX_DONE(TX_DONE),
|
||||
.TX_STOP(STOP),
|
||||
.TX_WORD(WORD_SELECT),
|
||||
.TX_PAR_DIS(PAR_DIS),
|
||||
.TX_PARITY(CMD_REG[7:6]),
|
||||
.CTS(CTS),
|
||||
.TX_BUFFER(TX_BUFFER)
|
||||
);
|
||||
|
||||
uart51_rx rx(
|
||||
.RESET_N(RESET_X),
|
||||
.BAUD_CLK(RX_CLK),
|
||||
.RX_DATA(RX_DATA),
|
||||
.RX_BUFFER(RX_BUFFER),
|
||||
.RX_WORD(WORD_SELECT),
|
||||
.RX_PAR_DIS(PAR_DIS),
|
||||
.RX_PARITY(CMD_REG[7:6]),
|
||||
.PARITY_ERR(PARITY_ERR),
|
||||
.FRAME(FRAME_BUF),
|
||||
.READY(GOT_DATA)
|
||||
);
|
||||
|
||||
endmodule
|
||||
+281
@@ -0,0 +1,281 @@
|
||||
-- Copyright (C) 1991-2013 Altera Corporation
|
||||
-- Your use of Altera Corporation's design tools, logic functions
|
||||
-- and other software and tools, and its AMPP partner logic
|
||||
-- functions, and any output files from any of the foregoing
|
||||
-- (including device programming or simulation files), and any
|
||||
-- associated documentation or information are expressly subject
|
||||
-- to the terms and conditions of the Altera Program License
|
||||
-- Subscription Agreement, Altera MegaCore Function License
|
||||
-- Agreement, or other applicable license agreement, including,
|
||||
-- without limitation, that your use is for the sole purpose of
|
||||
-- programming logic devices manufactured by Altera and sold by
|
||||
-- Altera or its authorized distributors. Please refer to the
|
||||
-- applicable agreement for further details.
|
||||
|
||||
-- Quartus II generated Memory Initialization File (.mif)
|
||||
|
||||
WIDTH=16;
|
||||
DEPTH=256;
|
||||
|
||||
ADDRESS_RADIX=HEX;
|
||||
DATA_RADIX=HEX;
|
||||
|
||||
CONTENT BEGIN
|
||||
00 : 0000;
|
||||
01 : 0008;
|
||||
02 : 0010;
|
||||
03 : 0018;
|
||||
04 : 0020;
|
||||
05 : 0028;
|
||||
06 : 0030;
|
||||
07 : 0038;
|
||||
08 : 0040;
|
||||
09 : 0048;
|
||||
0A : 0050;
|
||||
0B : 0058;
|
||||
0C : 0060;
|
||||
0D : 0068;
|
||||
0E : 0070;
|
||||
0F : 0078;
|
||||
10 : 0080;
|
||||
11 : 0088;
|
||||
12 : 0090;
|
||||
13 : 0098;
|
||||
14 : 00A0;
|
||||
15 : 00A8;
|
||||
16 : 00B0;
|
||||
17 : 00B8;
|
||||
18 : 00C0;
|
||||
19 : 00C8;
|
||||
1A : 00D0;
|
||||
1B : 00D8;
|
||||
1C : 00E0;
|
||||
1D : 00E8;
|
||||
1E : 00F0;
|
||||
1F : 00F8;
|
||||
20 : 0100;
|
||||
21 : 0108;
|
||||
22 : 0110;
|
||||
23 : 0118;
|
||||
24 : 0120;
|
||||
25 : 0128;
|
||||
26 : 0130;
|
||||
27 : 0138;
|
||||
28 : 0140;
|
||||
29 : 0148;
|
||||
2A : 0150;
|
||||
2B : 0158;
|
||||
2C : 0160;
|
||||
2D : 0168;
|
||||
2E : 0170;
|
||||
2F : 0178;
|
||||
30 : 0180;
|
||||
31 : 0188;
|
||||
32 : 0190;
|
||||
33 : 0198;
|
||||
34 : 01A0;
|
||||
35 : 01A8;
|
||||
36 : 01B0;
|
||||
37 : 01B8;
|
||||
38 : 01C0;
|
||||
39 : 01C8;
|
||||
3A : 01D0;
|
||||
3B : 01D8;
|
||||
3C : 01E0;
|
||||
3D : 01E8;
|
||||
3E : 01F0;
|
||||
3F : 01F8;
|
||||
40 : 0000;
|
||||
41 : 0009;
|
||||
42 : 0012;
|
||||
43 : 001B;
|
||||
44 : 0024;
|
||||
45 : 002D;
|
||||
46 : 0036;
|
||||
47 : 003F;
|
||||
48 : 0048;
|
||||
49 : 0201;
|
||||
4A : 005A;
|
||||
4B : 0213;
|
||||
4C : 006C;
|
||||
4D : 0225;
|
||||
4E : 007E;
|
||||
4F : 0237;
|
||||
50 : 0090;
|
||||
51 : 0099;
|
||||
52 : 0402;
|
||||
53 : 040B;
|
||||
54 : 00B4;
|
||||
55 : 00BD;
|
||||
56 : 0426;
|
||||
57 : 042F;
|
||||
58 : 00D8;
|
||||
59 : 0291;
|
||||
5A : 044A;
|
||||
5B : 0603;
|
||||
5C : 00FC;
|
||||
5D : 02B5;
|
||||
5E : 046E;
|
||||
5F : 0627;
|
||||
60 : 0120;
|
||||
61 : 0129;
|
||||
62 : 0132;
|
||||
63 : 013B;
|
||||
64 : 0804;
|
||||
65 : 080D;
|
||||
66 : 0816;
|
||||
67 : 081F;
|
||||
68 : 0168;
|
||||
69 : 0321;
|
||||
6A : 017A;
|
||||
6B : 0333;
|
||||
6C : 084C;
|
||||
6D : 0A05;
|
||||
6E : 084E;
|
||||
6F : 0A17;
|
||||
70 : 01B0;
|
||||
71 : 01B9;
|
||||
72 : 0522;
|
||||
73 : 052B;
|
||||
74 : 0894;
|
||||
75 : 089D;
|
||||
76 : 0C06;
|
||||
77 : 0C0F;
|
||||
78 : 01F8;
|
||||
79 : 03B1;
|
||||
7A : 056A;
|
||||
7B : 0723;
|
||||
7C : 08DC;
|
||||
7D : 0A95;
|
||||
7E : 0C4E;
|
||||
7F : 0E07;
|
||||
80 : 0000;
|
||||
81 : 0040;
|
||||
82 : 0080;
|
||||
83 : 00C0;
|
||||
84 : 0100;
|
||||
85 : 0140;
|
||||
86 : 0180;
|
||||
87 : 01C0;
|
||||
88 : 0200;
|
||||
89 : 0240;
|
||||
8A : 0280;
|
||||
8B : 02C0;
|
||||
8C : 0300;
|
||||
8D : 0340;
|
||||
8E : 0380;
|
||||
8F : 03C0;
|
||||
90 : 0400;
|
||||
91 : 0440;
|
||||
92 : 0480;
|
||||
93 : 04C0;
|
||||
94 : 0500;
|
||||
95 : 0540;
|
||||
96 : 0580;
|
||||
97 : 05C0;
|
||||
98 : 0600;
|
||||
99 : 0640;
|
||||
9A : 0680;
|
||||
9B : 06C0;
|
||||
9C : 0700;
|
||||
9D : 0740;
|
||||
9E : 0780;
|
||||
9F : 07C0;
|
||||
A0 : 0800;
|
||||
A1 : 0840;
|
||||
A2 : 0880;
|
||||
A3 : 08C0;
|
||||
A4 : 0900;
|
||||
A5 : 0940;
|
||||
A6 : 0980;
|
||||
A7 : 09C0;
|
||||
A8 : 0A00;
|
||||
A9 : 0A40;
|
||||
AA : 0A80;
|
||||
AB : 0AC0;
|
||||
AC : 0B00;
|
||||
AD : 0B40;
|
||||
AE : 0B80;
|
||||
AF : 0BC0;
|
||||
B0 : 0C00;
|
||||
B1 : 0C40;
|
||||
B2 : 0C80;
|
||||
B3 : 0CC0;
|
||||
B4 : 0D00;
|
||||
B5 : 0D40;
|
||||
B6 : 0D80;
|
||||
B7 : 0DC0;
|
||||
B8 : 0E00;
|
||||
B9 : 0E40;
|
||||
BA : 0E80;
|
||||
BB : 0EC0;
|
||||
BC : 0F00;
|
||||
BD : 0F40;
|
||||
BE : 0F80;
|
||||
BF : 0FC0;
|
||||
C0 : 0000;
|
||||
C1 : 0041;
|
||||
C2 : 0082;
|
||||
C3 : 00C3;
|
||||
C4 : 0104;
|
||||
C5 : 0145;
|
||||
C6 : 0186;
|
||||
C7 : 01C7;
|
||||
C8 : 0208;
|
||||
C9 : 0249;
|
||||
CA : 028A;
|
||||
CB : 02CB;
|
||||
CC : 030C;
|
||||
CD : 034D;
|
||||
CE : 038E;
|
||||
CF : 03CF;
|
||||
D0 : 0410;
|
||||
D1 : 0451;
|
||||
D2 : 0492;
|
||||
D3 : 04D3;
|
||||
D4 : 0514;
|
||||
D5 : 0555;
|
||||
D6 : 0596;
|
||||
D7 : 05D7;
|
||||
D8 : 0618;
|
||||
D9 : 0659;
|
||||
DA : 069A;
|
||||
DB : 06DB;
|
||||
DC : 071C;
|
||||
DD : 075D;
|
||||
DE : 079E;
|
||||
DF : 07DF;
|
||||
E0 : 0820;
|
||||
E1 : 0861;
|
||||
E2 : 08A2;
|
||||
E3 : 08E3;
|
||||
E4 : 0924;
|
||||
E5 : 0965;
|
||||
E6 : 09A6;
|
||||
E7 : 09E7;
|
||||
E8 : 0A28;
|
||||
E9 : 0A69;
|
||||
EA : 0AAA;
|
||||
EB : 0AEB;
|
||||
EC : 0B2C;
|
||||
ED : 0B6D;
|
||||
EE : 0BAE;
|
||||
EF : 0BEF;
|
||||
F0 : 0C30;
|
||||
F1 : 0C71;
|
||||
F2 : 0CB2;
|
||||
F3 : 0CF3;
|
||||
F4 : 0D34;
|
||||
F5 : 0D75;
|
||||
F6 : 0DB6;
|
||||
F7 : 0DF7;
|
||||
F8 : 0E38;
|
||||
F9 : 0E79;
|
||||
FA : 0EBA;
|
||||
FB : 0EFB;
|
||||
FC : 0F3C;
|
||||
FD : 0F7D;
|
||||
FE : 0FBE;
|
||||
FF : 0FFF;
|
||||
END;
|
||||
|
||||
Whitespace-only changes.
+217
@@ -0,0 +1,217 @@
|
||||
// megafunction wizard: %RAM: 2-PORT%
|
||||
// GENERATION: STANDARD
|
||||
// VERSION: WM1.0
|
||||
// MODULE: altsyncram
|
||||
|
||||
// ============================================================
|
||||
// File Name: VDAC.v
|
||||
// Megafunction Name(s):
|
||||
// altsyncram
|
||||
//
|
||||
// Simulation Library Files(s):
|
||||
// altera_mf
|
||||
// ============================================================
|
||||
// ************************************************************
|
||||
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
//
|
||||
// 13.0.1 Build 232 06/12/2013 SP 1 SJ Web Edition
|
||||
// ************************************************************
|
||||
|
||||
|
||||
//Copyright (C) 1991-2013 Altera Corporation
|
||||
//Your use of Altera Corporation's design tools, logic functions
|
||||
//and other software and tools, and its AMPP partner logic
|
||||
//functions, and any output files from any of the foregoing
|
||||
//(including device programming or simulation files), and any
|
||||
//associated documentation or information are expressly subject
|
||||
//to the terms and conditions of the Altera Program License
|
||||
//Subscription Agreement, Altera MegaCore Function License
|
||||
//Agreement, or other applicable license agreement, including,
|
||||
//without limitation, that your use is for the sole purpose of
|
||||
//programming logic devices manufactured by Altera and sold by
|
||||
//Altera or its authorized distributors. Please refer to the
|
||||
//applicable agreement for further details.
|
||||
|
||||
|
||||
// synopsys translate_off
|
||||
`timescale 1 ps / 1 ps
|
||||
// synopsys translate_on
|
||||
module VDAC (
|
||||
data,
|
||||
rdaddress,
|
||||
rdclock,
|
||||
wraddress,
|
||||
wrclock,
|
||||
wren,
|
||||
q);
|
||||
|
||||
input [15:0] data;
|
||||
input [7:0] rdaddress;
|
||||
input rdclock;
|
||||
input [7:0] wraddress;
|
||||
input wrclock;
|
||||
input wren;
|
||||
output [15:0] q;
|
||||
`ifndef ALTERA_RESERVED_QIS
|
||||
// synopsys translate_off
|
||||
`endif
|
||||
tri1 wrclock;
|
||||
tri0 wren;
|
||||
`ifndef ALTERA_RESERVED_QIS
|
||||
// synopsys translate_on
|
||||
`endif
|
||||
|
||||
wire [15:0] sub_wire0;
|
||||
wire [15:0] q = sub_wire0[15:0];
|
||||
|
||||
altsyncram altsyncram_component (
|
||||
.address_a (wraddress),
|
||||
.clock0 (wrclock),
|
||||
.data_a (data),
|
||||
.wren_a (wren),
|
||||
.address_b (rdaddress),
|
||||
.clock1 (rdclock),
|
||||
.q_b (sub_wire0),
|
||||
.aclr0 (1'b0),
|
||||
.aclr1 (1'b0),
|
||||
.addressstall_a (1'b0),
|
||||
.addressstall_b (1'b0),
|
||||
.byteena_a (1'b1),
|
||||
.byteena_b (1'b1),
|
||||
.clocken0 (1'b1),
|
||||
.clocken1 (1'b1),
|
||||
.clocken2 (1'b1),
|
||||
.clocken3 (1'b1),
|
||||
.data_b ({16{1'b1}}),
|
||||
.eccstatus (),
|
||||
.q_a (),
|
||||
.rden_a (1'b1),
|
||||
.rden_b (1'b1),
|
||||
.wren_b (1'b0));
|
||||
defparam
|
||||
altsyncram_component.address_reg_b = "CLOCK1",
|
||||
altsyncram_component.clock_enable_input_a = "BYPASS",
|
||||
altsyncram_component.clock_enable_input_b = "BYPASS",
|
||||
altsyncram_component.clock_enable_output_a = "BYPASS",
|
||||
altsyncram_component.clock_enable_output_b = "BYPASS",
|
||||
altsyncram_component.init_file = "VDAC.mif",
|
||||
altsyncram_component.intended_device_family = "Cyclone II",
|
||||
altsyncram_component.lpm_type = "altsyncram",
|
||||
altsyncram_component.numwords_a = 256,
|
||||
altsyncram_component.numwords_b = 256,
|
||||
altsyncram_component.operation_mode = "DUAL_PORT",
|
||||
altsyncram_component.outdata_aclr_b = "NONE",
|
||||
altsyncram_component.outdata_reg_b = "CLOCK1",
|
||||
altsyncram_component.power_up_uninitialized = "FALSE",
|
||||
altsyncram_component.widthad_a = 8,
|
||||
altsyncram_component.widthad_b = 8,
|
||||
altsyncram_component.width_a = 16,
|
||||
altsyncram_component.width_b = 16,
|
||||
altsyncram_component.width_byteena_a = 1;
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
// ============================================================
|
||||
// CNX file retrieval info
|
||||
// ============================================================
|
||||
// Retrieval info: PRIVATE: ADDRESSSTALL_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: ADDRESSSTALL_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTEENA_ACLR_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTEENA_ACLR_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTE_ENABLE_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTE_ENABLE_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: BYTE_SIZE NUMERIC "8"
|
||||
// Retrieval info: PRIVATE: BlankMemory NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRdata NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRq NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRrdaddress NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRrren NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRwraddress NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: CLRwren NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: Clock NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: Clock_A NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: Clock_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: IMPLEMENT_IN_LES NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INDATA_ACLR_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INDATA_REG_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INIT_FILE_LAYOUT STRING "PORT_B"
|
||||
// Retrieval info: PRIVATE: INIT_TO_SIM_X NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
|
||||
// Retrieval info: PRIVATE: JTAG_ENABLED NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: JTAG_ID STRING "NONE"
|
||||
// Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: MEMSIZE NUMERIC "4096"
|
||||
// Retrieval info: PRIVATE: MEM_IN_BITS NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: MIFfilename STRING "VDAC.mif"
|
||||
// Retrieval info: PRIVATE: OPERATION_MODE NUMERIC "2"
|
||||
// Retrieval info: PRIVATE: OUTDATA_ACLR_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: OUTDATA_REG_B NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_MIXED_PORTS NUMERIC "2"
|
||||
// Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_A NUMERIC "3"
|
||||
// Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_B NUMERIC "3"
|
||||
// Retrieval info: PRIVATE: REGdata NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: REGq NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: REGrdaddress NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: REGrren NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: REGwraddress NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: REGwren NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
||||
// Retrieval info: PRIVATE: USE_DIFF_CLKEN NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: UseDPRAM NUMERIC "1"
|
||||
// Retrieval info: PRIVATE: VarWidth NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: WIDTH_READ_A NUMERIC "16"
|
||||
// Retrieval info: PRIVATE: WIDTH_READ_B NUMERIC "16"
|
||||
// Retrieval info: PRIVATE: WIDTH_WRITE_A NUMERIC "16"
|
||||
// Retrieval info: PRIVATE: WIDTH_WRITE_B NUMERIC "16"
|
||||
// Retrieval info: PRIVATE: WRADDR_ACLR_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: WRADDR_REG_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: WRCTRL_ACLR_B NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: enable NUMERIC "0"
|
||||
// Retrieval info: PRIVATE: rden NUMERIC "0"
|
||||
// Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all
|
||||
// Retrieval info: CONSTANT: ADDRESS_REG_B STRING "CLOCK1"
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_A STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_B STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_A STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_B STRING "BYPASS"
|
||||
// Retrieval info: CONSTANT: INIT_FILE STRING "VDAC.mif"
|
||||
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
|
||||
// Retrieval info: CONSTANT: LPM_TYPE STRING "altsyncram"
|
||||
// Retrieval info: CONSTANT: NUMWORDS_A NUMERIC "256"
|
||||
// Retrieval info: CONSTANT: NUMWORDS_B NUMERIC "256"
|
||||
// Retrieval info: CONSTANT: OPERATION_MODE STRING "DUAL_PORT"
|
||||
// Retrieval info: CONSTANT: OUTDATA_ACLR_B STRING "NONE"
|
||||
// Retrieval info: CONSTANT: OUTDATA_REG_B STRING "CLOCK1"
|
||||
// Retrieval info: CONSTANT: POWER_UP_UNINITIALIZED STRING "FALSE"
|
||||
// Retrieval info: CONSTANT: WIDTHAD_A NUMERIC "8"
|
||||
// Retrieval info: CONSTANT: WIDTHAD_B NUMERIC "8"
|
||||
// Retrieval info: CONSTANT: WIDTH_A NUMERIC "16"
|
||||
// Retrieval info: CONSTANT: WIDTH_B NUMERIC "16"
|
||||
// Retrieval info: CONSTANT: WIDTH_BYTEENA_A NUMERIC "1"
|
||||
// Retrieval info: USED_PORT: data 0 0 16 0 INPUT NODEFVAL "data[15..0]"
|
||||
// Retrieval info: USED_PORT: q 0 0 16 0 OUTPUT NODEFVAL "q[15..0]"
|
||||
// Retrieval info: USED_PORT: rdaddress 0 0 8 0 INPUT NODEFVAL "rdaddress[7..0]"
|
||||
// Retrieval info: USED_PORT: rdclock 0 0 0 0 INPUT NODEFVAL "rdclock"
|
||||
// Retrieval info: USED_PORT: wraddress 0 0 8 0 INPUT NODEFVAL "wraddress[7..0]"
|
||||
// Retrieval info: USED_PORT: wrclock 0 0 0 0 INPUT VCC "wrclock"
|
||||
// Retrieval info: USED_PORT: wren 0 0 0 0 INPUT GND "wren"
|
||||
// Retrieval info: CONNECT: @address_a 0 0 8 0 wraddress 0 0 8 0
|
||||
// Retrieval info: CONNECT: @address_b 0 0 8 0 rdaddress 0 0 8 0
|
||||
// Retrieval info: CONNECT: @clock0 0 0 0 0 wrclock 0 0 0 0
|
||||
// Retrieval info: CONNECT: @clock1 0 0 0 0 rdclock 0 0 0 0
|
||||
// Retrieval info: CONNECT: @data_a 0 0 16 0 data 0 0 16 0
|
||||
// Retrieval info: CONNECT: @wren_a 0 0 0 0 wren 0 0 0 0
|
||||
// Retrieval info: CONNECT: q 0 0 16 0 @q_b 0 0 16 0
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC.v TRUE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC.inc FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC.cmp FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC.bsf FALSE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC_inst.v TRUE
|
||||
// Retrieval info: GEN_FILE: TYPE_NORMAL VDAC_bb.v TRUE
|
||||
// Retrieval info: LIB_FILE: altera_mf
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
|
||||
module cassette(
|
||||
|
||||
input clk,
|
||||
input Q,
|
||||
input rewind,
|
||||
input en,
|
||||
|
||||
output reg [24:0] sdram_addr,
|
||||
input [7:0] sdram_data,
|
||||
output reg sdram_rd,
|
||||
|
||||
output data,
|
||||
output [2:0] status
|
||||
|
||||
);
|
||||
|
||||
assign status = state;
|
||||
|
||||
reg old_en;
|
||||
reg ffrewind;
|
||||
|
||||
reg [23:0] seq;
|
||||
reg [7:0] ibyte;
|
||||
reg [2:0] state;
|
||||
reg sq_start;
|
||||
reg [1:0] eof;
|
||||
reg name;
|
||||
wire done;
|
||||
reg [18:0] hold;
|
||||
|
||||
parameter
|
||||
IDLE = 3'h0,
|
||||
NEXT = 3'h2,
|
||||
READ1 = 3'h3,
|
||||
READ2 = 3'h4,
|
||||
READ3 = 3'h5,
|
||||
READ4 = 3'h6,
|
||||
WAIT = 3'h7;
|
||||
|
||||
reg q_r;
|
||||
|
||||
always @(posedge clk) begin
|
||||
if (Q==1 && q_r ==0) begin
|
||||
|
||||
old_en <= en;
|
||||
if (old_en ^ en) begin
|
||||
state <= state == IDLE ? WAIT : IDLE;
|
||||
hold <= 19'd445000;
|
||||
seq <= 24'd0;
|
||||
end
|
||||
|
||||
ffrewind <= rewind;
|
||||
|
||||
case (state)
|
||||
WAIT: begin
|
||||
ibyte <= 8'd0;
|
||||
hold <= hold - 19'd1;
|
||||
state <= hold == 0 ? NEXT : WAIT;
|
||||
end
|
||||
NEXT: begin
|
||||
state <= READ1;
|
||||
sdram_rd <= 1'b0;
|
||||
if (seq == 24'h553c00) name <= 1'd1;
|
||||
if (seq == 24'h555555 && name) begin
|
||||
name <= 1'd0;
|
||||
state <= WAIT;
|
||||
hold <= 19'd445000; // 0.5s
|
||||
sdram_addr <= sdram_addr - 25'd3;
|
||||
end
|
||||
if (seq == 24'h553cff) eof <= 2'd1;
|
||||
if (seq == 24'h00ff55 && eof == 2'd1) eof <= 2'd2;
|
||||
if (~en) state <= IDLE;
|
||||
end
|
||||
READ1: begin
|
||||
sdram_rd <= 1'b1;
|
||||
state <= READ2;
|
||||
end
|
||||
READ2: begin
|
||||
ibyte <= sdram_data;
|
||||
sdram_rd <= 1'b0;
|
||||
state <= READ3;
|
||||
sq_start <= 1'b1;
|
||||
end
|
||||
READ3: begin
|
||||
sq_start <= 1'b0;
|
||||
state <= done ? READ4 : READ3;
|
||||
end
|
||||
READ4: begin
|
||||
seq <= { seq[15:0], sdram_data };
|
||||
sdram_addr <= sdram_addr + 25'd1;
|
||||
state <= eof == 2'd2 ? IDLE : NEXT;
|
||||
end
|
||||
endcase
|
||||
|
||||
if (ffrewind ^ rewind) begin
|
||||
seq <= 24'd0;
|
||||
sdram_addr <= 25'd0;
|
||||
state <= IDLE;
|
||||
eof <= 2'd0;
|
||||
end
|
||||
|
||||
end
|
||||
q_r <= Q;
|
||||
end
|
||||
|
||||
square_gen sq(
|
||||
.clk(clk),
|
||||
.Q(Q),
|
||||
.start(sq_start),
|
||||
.din(ibyte),
|
||||
.done(done),
|
||||
.dout(data)
|
||||
);
|
||||
|
||||
|
||||
endmodule
|
||||
+4654
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,207 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: COCO3 Targeting MISTer
|
||||
// File Name: coco_mem_fetch.v
|
||||
//
|
||||
// Video Memory Fetch Controller for MISTer
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2021 by Stan Hodge ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
module coco_mem_fetch(
|
||||
input fast_clk, // clock
|
||||
input RESET_N, // async reset
|
||||
|
||||
// Memory Controller I/O
|
||||
output SDRAM_VID_REQ,
|
||||
output [24:0] SDRAM_VID_ADDR,
|
||||
input SDRAM_VID_ACK,
|
||||
input SDRAM_VID_READY,
|
||||
input [15:0] SDRAM_DOUT,
|
||||
|
||||
// RAM / Buffer
|
||||
output [8:0] BUFF_ADD, // 512x16 ram buffer
|
||||
output [15:0] BUFF_DATA_O,
|
||||
output BUFFER_WRITE,
|
||||
|
||||
// Video Controller Inputs
|
||||
input [24:0] RAM_ADDRESS, // real ram
|
||||
|
||||
input HBORDER,
|
||||
input [6:0] HOR_OFFSET,
|
||||
input COCO1,
|
||||
input [3:0] HRES
|
||||
|
||||
|
||||
);
|
||||
|
||||
localparam WORD_END_COUNT = 9'd160 - 1'd1;
|
||||
|
||||
|
||||
wire [24:0] PHY_VID_ADD;
|
||||
wire [2:0] BUF_HBORDER;
|
||||
reg [8:0] VID_READ_OFFSET;
|
||||
reg [8:0] read_count;
|
||||
reg [4:0] state;
|
||||
reg second_write;
|
||||
reg init_offset_a0;
|
||||
reg [4:0] a0_delay;
|
||||
|
||||
localparam state_pre_start = 4'd0;
|
||||
localparam state_start = 4'd1;
|
||||
localparam state_wait_accept = 4'd2;
|
||||
|
||||
localparam state_done = 4'd10;
|
||||
|
||||
assign BUF_HBORDER[0] = HBORDER;
|
||||
assign a0_delay[0] = init_offset_a0;
|
||||
|
||||
assign PHY_VID_ADD = ({COCO1, HRES[3]} == 2'b01) ? RAM_ADDRESS + { VID_READ_OFFSET[8:0], 1'b0}: // 1K bytes
|
||||
// ({COCO1, HRES[3:1]} == 4'b0100) ? RAM_ADDRESS + {1'b0, VID_READ_OFFSET[7:0], 1'b0}: // 512 bytes
|
||||
RAM_ADDRESS + {2'b00, VID_READ_OFFSET[6:0], 1'b0}; // 256 Bytes
|
||||
|
||||
assign SDRAM_VID_ADDR = PHY_VID_ADD;
|
||||
|
||||
// Also if we start a line on a odd word, we will have to throw out the associated even word of the first fetch as it is before our start
|
||||
// From that point we will be correct using 2 16 bit words.
|
||||
// We will need SDRAM_VID_READY specific to each port of the memory controller
|
||||
// Assume SDRAM_VID_READY is specific to this port
|
||||
|
||||
always @(posedge fast_clk or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
BUF_HBORDER[2:1] <= 2'b00;
|
||||
read_count <= 9'h000;
|
||||
SDRAM_VID_REQ <= 1'b0;
|
||||
state <= state_pre_start;
|
||||
second_write <= 1'b0;
|
||||
init_offset_a0 <= 1'b0;
|
||||
BUFF_ADD <= 9'h000;
|
||||
end
|
||||
else
|
||||
begin
|
||||
// delay 2 clocks [may need to be more because we are running fast]
|
||||
BUF_HBORDER[2:1] <= BUF_HBORDER[1:0];
|
||||
|
||||
// delay the a0 component 4 clocks to line up with the read data
|
||||
a0_delay[4:1] <= a0_delay[3:0];
|
||||
|
||||
BUFF_DATA_O <= SDRAM_DOUT; // 1 clock delay so we can affect the write flag
|
||||
|
||||
// Second write will only be active for 1 clock during a 2 clock write.
|
||||
second_write <= SDRAM_VID_READY;
|
||||
if (second_write == 1'b1)
|
||||
second_write <= 1'b0;
|
||||
|
||||
// Eliminate second_write on the first odd write
|
||||
BUFFER_WRITE <= SDRAM_VID_READY && !(second_write & a0_delay[4]);
|
||||
|
||||
if (BUFFER_WRITE)
|
||||
BUFF_ADD <= BUFF_ADD + 1'b1;
|
||||
|
||||
|
||||
// State Mach
|
||||
case(state)
|
||||
state_pre_start:
|
||||
if (!BUF_HBORDER[2])
|
||||
begin
|
||||
VID_READ_OFFSET <= HOR_OFFSET;
|
||||
BUFF_ADD <= 9'h000;
|
||||
end
|
||||
else
|
||||
state <= state_start;
|
||||
|
||||
state_start:
|
||||
begin
|
||||
if (!SDRAM_VID_ACK)
|
||||
begin
|
||||
SDRAM_VID_REQ <= 1'b1;
|
||||
state <= state_wait_accept;
|
||||
init_offset_a0 <= PHY_VID_ADD[1];
|
||||
end
|
||||
end
|
||||
|
||||
state_wait_accept:
|
||||
begin
|
||||
if (SDRAM_VID_ACK)
|
||||
begin
|
||||
SDRAM_VID_REQ <= 1'b0;
|
||||
|
||||
if (read_count >= WORD_END_COUNT)
|
||||
begin
|
||||
read_count <= 9'h000;
|
||||
state <= state_done;
|
||||
end
|
||||
else
|
||||
begin
|
||||
// If odd address we only store 1 else 2
|
||||
if (init_offset_a0)
|
||||
begin
|
||||
read_count <= read_count + 1'b1;
|
||||
VID_READ_OFFSET <= VID_READ_OFFSET + 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
VID_READ_OFFSET <= VID_READ_OFFSET + 2'b10;
|
||||
read_count <= read_count + 2'b10;
|
||||
end
|
||||
|
||||
state <= state_start;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
state_done:
|
||||
begin
|
||||
if (!BUF_HBORDER[2])
|
||||
state <= state_pre_start;
|
||||
end
|
||||
|
||||
default:
|
||||
state <= state_done;
|
||||
endcase
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
endmodule
|
||||
|
||||
+741
@@ -0,0 +1,741 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: CoCo3FPGA Version 4.0
|
||||
// File Name: coco3fpga.v
|
||||
//
|
||||
// CoCo3 in an FPGA
|
||||
//
|
||||
// Revision: 4.0 07/10/16
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CPU section copyrighted by John Kent
|
||||
// The FDC co-processor copyrighted Daniel Wallner.
|
||||
// SDRAM Controller copyrighted by XESS Corp.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Color Computer 3 compatible system on a chip
|
||||
//
|
||||
// Version : 4.0
|
||||
//
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
//
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
// The latest version of this file can be found at:
|
||||
// http://groups.yahoo.com/group/CoCo3FPGA
|
||||
//
|
||||
// File history :
|
||||
//
|
||||
// 1.0 Full Release
|
||||
// 2.0 Partial Release
|
||||
// 3.0 Full Release
|
||||
// 3.0.0.1 Update to fix DoD interrupt issue
|
||||
// 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
// 4.0.X.X Full Release
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Gary Becker
|
||||
// [email protected]
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module COCOKEY(
|
||||
RESET_N,
|
||||
CLK50MHZ, //Not really 50 MHz
|
||||
SLO_CLK,
|
||||
PS2_CLK,
|
||||
PS2_DATA,
|
||||
KEY,
|
||||
SHIFT,
|
||||
SHIFT_OVERRIDE,
|
||||
RESET,
|
||||
RESET_INS
|
||||
);
|
||||
|
||||
input RESET_N;
|
||||
input CLK50MHZ;
|
||||
input SLO_CLK;
|
||||
input PS2_CLK;
|
||||
input PS2_DATA;
|
||||
output [72:0] KEY;
|
||||
reg [72:0] KEY;
|
||||
output SHIFT;
|
||||
reg SHIFT;
|
||||
output SHIFT_OVERRIDE;
|
||||
reg SHIFT_OVERRIDE;
|
||||
output RESET;
|
||||
reg RESET;
|
||||
output RESET_INS;
|
||||
reg RESET_INS = 1'b0;
|
||||
|
||||
reg [5:0] SLO_RESET;
|
||||
reg SLO_RESET_N;
|
||||
reg [4:0] KB_CLK;
|
||||
wire [7:0] SCAN;
|
||||
wire PRESS;
|
||||
wire EXTENDED;
|
||||
reg SHIFT_ARROW_L;
|
||||
reg SHIFT_ARROW_R;
|
||||
|
||||
reg SLO_CLK_D;
|
||||
reg KB_CLK_D;
|
||||
|
||||
/* Norm Shift CTRL
|
||||
00 @
|
||||
01 a A ^a
|
||||
02 b B ^b
|
||||
03 c C ^c
|
||||
04 d D ^d
|
||||
05 e E ^e
|
||||
06 f F ^f
|
||||
07 g G ^g
|
||||
|
||||
08 h H ^h
|
||||
09 i I ^i
|
||||
10 j J ^j
|
||||
11 k K ^k
|
||||
12 l L ^l
|
||||
13 m M ^m
|
||||
14 n N ^n
|
||||
15 o O ^o
|
||||
|
||||
16 p P ^p
|
||||
17 q Q ^q
|
||||
18 r R ^r
|
||||
19 s S ^s
|
||||
20 t T ^t
|
||||
21 u U ^u
|
||||
22 v V ^v
|
||||
23 w W ^w
|
||||
|
||||
24 x X ^x
|
||||
25 y Y ^y
|
||||
26 z Z ^z
|
||||
27 up UP ^up
|
||||
28 dn DN ^dn
|
||||
29 lft BS LFT ^lft
|
||||
30 rgt RGT ^rgt
|
||||
31 sp SP ^sp
|
||||
|
||||
32 0 CL ^0
|
||||
33 1 ! |
|
||||
34 2 " ^2
|
||||
35 3 # ~
|
||||
36 4 $ ^4
|
||||
37 5 % ^5
|
||||
38 6 & ^6
|
||||
39 7 ' ^
|
||||
|
||||
40 8 ( [
|
||||
41 9 ) ]
|
||||
42 : *
|
||||
43 ; +
|
||||
44 , < {
|
||||
45 - = _
|
||||
46 . > }
|
||||
47 / ? \
|
||||
|
||||
48 cr CR ^cr
|
||||
49 HOME
|
||||
50 esc ESC ^esc
|
||||
51 alt ALT ^alt
|
||||
52 ctrl CTRL ^
|
||||
53 f1 F1 ^f1
|
||||
54 f2 F2 ^f2
|
||||
55 lsh rsh LSH RSH ^lsh ^rsh
|
||||
|
||||
56 F3
|
||||
57 F4
|
||||
58 F5
|
||||
59 F6
|
||||
60 F7
|
||||
61 F8
|
||||
62 F9
|
||||
63 F10
|
||||
64 F11
|
||||
65 INS
|
||||
66 DEL
|
||||
67 tab TAB ^tab
|
||||
68 END
|
||||
69 PgUp
|
||||
70 PgDn
|
||||
*/
|
||||
|
||||
//always @ (negedge SLO_CLK or negedge RESET_N)
|
||||
always @ (negedge CLK50MHZ)
|
||||
begin
|
||||
// if(~RESET_N)
|
||||
// begin
|
||||
// SLO_RESET <= 6'h00;
|
||||
// end
|
||||
// else
|
||||
|
||||
if(RESET)
|
||||
SLO_RESET <= 6'h00;
|
||||
SLO_RESET_N <= (SLO_RESET == 6'h3F);
|
||||
|
||||
SLO_CLK_D <= SLO_CLK;
|
||||
if (SLO_CLK == 1'b0 && SLO_CLK_D == 1'b1)
|
||||
if(SLO_RESET != 6'h3F)
|
||||
SLO_RESET <= SLO_RESET + 1'b1;
|
||||
// end
|
||||
end
|
||||
//assign SLO_RESET_N = (SLO_RESET == 6'h3F);
|
||||
|
||||
//always @(posedge KB_CLK[4] or negedge SLO_RESET_N)
|
||||
always @(posedge CLK50MHZ or negedge SLO_RESET_N)
|
||||
begin
|
||||
if(~SLO_RESET_N)
|
||||
begin
|
||||
KEY <= 73'h0000000000000000000;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
SHIFT <= 1'b0;
|
||||
RESET <= 1'b0;
|
||||
// test
|
||||
RESET_INS <= 1'b0;
|
||||
SHIFT_ARROW_L <= 1'b0;
|
||||
SHIFT_ARROW_R <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
KB_CLK_D <= KB_CLK[4];
|
||||
|
||||
if (KB_CLK[4] == 1'b1 && KB_CLK_D == 1'b0)
|
||||
begin
|
||||
case(SCAN)
|
||||
8'h00:
|
||||
begin
|
||||
SHIFT_ARROW_L <= SHIFT_ARROW_L;
|
||||
SHIFT_ARROW_R <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h12:
|
||||
SHIFT_ARROW_L <= !PRESS; // L-Shift
|
||||
8'h59:
|
||||
SHIFT_ARROW_R <= !PRESS; // R-Shift
|
||||
8'h6B:
|
||||
begin
|
||||
SHIFT_ARROW_L <= SHIFT_ARROW_L;
|
||||
SHIFT_ARROW_R <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h72:
|
||||
begin
|
||||
SHIFT_ARROW_L <= SHIFT_ARROW_L;
|
||||
SHIFT_ARROW_R <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h74:
|
||||
begin
|
||||
SHIFT_ARROW_L <= SHIFT_ARROW_L;
|
||||
SHIFT_ARROW_R <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h75:
|
||||
begin
|
||||
SHIFT_ARROW_L <= SHIFT_ARROW_L;
|
||||
SHIFT_ARROW_R <= SHIFT_ARROW_R;
|
||||
end
|
||||
default
|
||||
begin
|
||||
SHIFT_ARROW_L <= 1'b0;
|
||||
SHIFT_ARROW_R <= 1'b0;
|
||||
end
|
||||
endcase
|
||||
|
||||
case(SCAN)
|
||||
8'h01: KEY[62] <= PRESS; // F9
|
||||
8'h03: KEY[58] <= PRESS; // F5
|
||||
8'h04: KEY[56] <= PRESS; // F3
|
||||
8'h05: KEY[53] <= PRESS; // F1
|
||||
8'h06: KEY[54] <= PRESS; // F2
|
||||
8'h07: KEY[0] <= PRESS; // @ (must be used when there is a shift or ctrl)
|
||||
8'h09: KEY[63] <= PRESS; // F10
|
||||
8'h0A: KEY[61] <= PRESS; // F8
|
||||
8'h0B: KEY[59] <= PRESS; // F6
|
||||
8'h0C: KEY[57] <= PRESS; // F4
|
||||
8'h0D: KEY[67] <= PRESS; // TAB
|
||||
8'h0E:
|
||||
begin
|
||||
if(PRESS)
|
||||
begin
|
||||
KEY[35] <= 1'b1; // ~ is CTRL - 3
|
||||
KEY[52] <= 1'b1;
|
||||
SHIFT_OVERRIDE <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[35] <= 1'b0; // ~ is CTRL - 3
|
||||
KEY[52] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h11: KEY[51] <= PRESS; // ALT either left or right
|
||||
8'h12:
|
||||
begin
|
||||
KEY[55] <= PRESS; // L-Shift
|
||||
KEY[71] <= PRESS;
|
||||
end
|
||||
8'h14: KEY[52] <= PRESS; // Ctrl either left or right
|
||||
8'h15: KEY[17] <= PRESS; // Q
|
||||
8'h16: KEY[33] <= PRESS; // 1 !
|
||||
8'h1A: KEY[26] <= PRESS; // Z
|
||||
8'h1B: KEY[19] <= PRESS; // S
|
||||
8'h1C: KEY[1] <= PRESS; // A
|
||||
8'h1D: KEY[23] <= PRESS; // W
|
||||
8'h1E: // 2 @
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
KEY[34] <= 1'b1; // 2
|
||||
else // shifted
|
||||
begin
|
||||
KEY[34] <= 1'b0; // Not 2 = @
|
||||
KEY[0] <= 1'b1; // @
|
||||
SHIFT_OVERRIDE <= 1'b1; // Override the shift
|
||||
// SHIFT <= 1'b0; // Not Right Shifted
|
||||
end
|
||||
end
|
||||
else // Released
|
||||
begin
|
||||
KEY[34] <= 1'b0;
|
||||
KEY[0] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h21: KEY[3] <= PRESS; // C
|
||||
8'h22: KEY[24] <= PRESS; // X
|
||||
8'h23: KEY[4] <= PRESS; // D
|
||||
8'h24: KEY[5] <= PRESS; // E
|
||||
8'h25: KEY[36] <= PRESS; // 4 $
|
||||
8'h26: KEY[35] <= PRESS; // 3 #
|
||||
8'h29: KEY[31] <= PRESS; // Space
|
||||
8'h2A: KEY[22] <= PRESS; // V
|
||||
8'h2B: KEY[6] <= PRESS; // F
|
||||
8'h2C: KEY[20] <= PRESS; // T
|
||||
8'h2D: KEY[18] <= PRESS; // R
|
||||
8'h2E: KEY[37] <= PRESS; // 5 %
|
||||
8'h31: KEY[14] <= PRESS; // N
|
||||
8'h32: KEY[2] <= PRESS; // B
|
||||
8'h33: KEY[8] <= PRESS; // H
|
||||
8'h34: KEY[7] <= PRESS; // G
|
||||
8'h35: KEY[25] <= PRESS; // Y
|
||||
8'h36:
|
||||
begin
|
||||
if(PRESS)
|
||||
begin
|
||||
if(!KEY[55])
|
||||
KEY[38] <= PRESS; // 6
|
||||
else
|
||||
begin
|
||||
KEY[39] <= 1'b1; // CTRL 7 = ^
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
SHIFT_OVERRIDE <= 1'b1; // No shift
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[38] <= 1'b0;
|
||||
KEY[39] <= 1'b0;
|
||||
KEY[52] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h3A: KEY[13] <= PRESS; // M
|
||||
8'h3B: KEY[10] <= PRESS; // J
|
||||
8'h3C: KEY[21] <= PRESS; // U
|
||||
8'h3D:
|
||||
begin
|
||||
if(PRESS)
|
||||
begin
|
||||
if(!KEY[55])
|
||||
KEY[39] <= 1'b1; // 7
|
||||
else
|
||||
KEY[38] <= 1'b1; // Shifted 6 = &
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[38] <= 1'b0;
|
||||
KEY[39] <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h3E:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
KEY[40] <= 1'b1; // 8
|
||||
else
|
||||
KEY[42] <= 1'b1; // Shift : = *
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[40] <= 1'b0;
|
||||
KEY[42] <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h41: KEY[44] <= PRESS; // , <
|
||||
8'h42: KEY[11] <= PRESS; // K
|
||||
8'h43: KEY[9] <= PRESS; // I
|
||||
8'h44: KEY[15] <= PRESS; // O
|
||||
8'h45:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
KEY[32] <= 1'b1; // 0
|
||||
else
|
||||
KEY[41] <= 1'b1; // shifted 9 = )
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[32] <= 1'b0;
|
||||
KEY[41] <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h46:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
KEY[41] <= 1'b1; // 9
|
||||
else
|
||||
KEY[40] <= 1'b1; // Shifted 8 = (
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[40] <= 1'b0;
|
||||
KEY[41] <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h49: KEY[46] <= PRESS; // . >
|
||||
8'h4A: KEY[47] <= PRESS; // / ?
|
||||
8'h4B: KEY[12] <= PRESS; // L
|
||||
8'h4C:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
KEY[43] <= 1'b1; // ;
|
||||
else
|
||||
begin
|
||||
KEY[42] <= 1'b1; // :
|
||||
SHIFT_OVERRIDE <= 1'b1; // Override the shift
|
||||
end
|
||||
end
|
||||
else // Released
|
||||
begin
|
||||
KEY[42] <= 1'b0;
|
||||
KEY[43] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h4D: KEY[16] <= PRESS; // P
|
||||
8'h4E:
|
||||
begin
|
||||
if(PRESS)
|
||||
begin
|
||||
if(!KEY[55])
|
||||
KEY[45] <= 1'b1; // -
|
||||
else
|
||||
begin
|
||||
KEY[45] <= 1'b1; // CTRL - = _
|
||||
SHIFT_OVERRIDE <= 1'b1; // not shifted
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[45] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
KEY[52] <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h52:
|
||||
begin
|
||||
if(PRESS)
|
||||
begin
|
||||
if(!KEY[55])
|
||||
begin
|
||||
KEY[39] <= 1'b1; // Shift 7 = '
|
||||
SHIFT <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[34] <= 1'b1; // Shift 2 = "
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[34] <= 1'b0;
|
||||
KEY[39] <= 1'b0;
|
||||
SHIFT <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h54:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
begin
|
||||
KEY[40] <= 1'b1; // CTRL - 8 = [
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[44] <= 1'b1; // CTRL - , = {
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
SHIFT_OVERRIDE <= 1'b1;
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[40] <= 1'b0;
|
||||
KEY[44] <= 1'b0;
|
||||
KEY[52] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h55:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
begin
|
||||
KEY[45] <= 1'b1; // =
|
||||
// SHIFT_OVERRIDE <= 1'b1; // Override the shift
|
||||
SHIFT <= 1'b1; // Shifted
|
||||
end
|
||||
else // shifted
|
||||
begin
|
||||
KEY[43] <= 1'b1; // +
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[43] <= 1'b0;
|
||||
KEY[45] <= 1'b0;
|
||||
// SHIFT_OVERRIDE <= 1'b0;
|
||||
SHIFT <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h58:
|
||||
begin
|
||||
KEY[32] <= PRESS; // Caps Lock = Shift 0
|
||||
KEY[55] <= PRESS;
|
||||
// SHIFT_OVERRIDE <= PRESS;
|
||||
end
|
||||
8'h59:
|
||||
begin
|
||||
KEY[55] <= PRESS; // R-Shift
|
||||
KEY[72] <= PRESS;
|
||||
end
|
||||
8'h5A: KEY[48] <= PRESS; // CR
|
||||
8'h5B:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
begin
|
||||
KEY[41] <= 1'b1; // CTRL - 9 = ]
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[46] <= 1'b1; // CTRL - . = }
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
SHIFT_OVERRIDE <= 1'b1;
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[41] <= 1'b0;
|
||||
KEY[46] <= 1'b0;
|
||||
KEY[52] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h5D:
|
||||
begin
|
||||
if(PRESS) // Pressed
|
||||
begin
|
||||
if(!KEY[55]) // not shifted
|
||||
begin
|
||||
KEY[47] <= 1'b1; // CTRL - / = \
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[33] <= 1'b1; // CTRL - 1 = |
|
||||
KEY[52] <= 1'b1; // CTRL
|
||||
SHIFT_OVERRIDE <= 1'b1;
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
KEY[33] <= 1'b0;
|
||||
KEY[47] <= 1'b0;
|
||||
KEY[52] <= 1'b0;
|
||||
SHIFT_OVERRIDE <= 1'b0;
|
||||
end
|
||||
end
|
||||
8'h66: KEY[29] <= PRESS; // backspace
|
||||
8'h69:
|
||||
if(EXTENDED)
|
||||
KEY[68] <= PRESS; // END
|
||||
else
|
||||
KEY[33] <= PRESS; // 1
|
||||
8'h6B:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[29] <= PRESS; // left
|
||||
else
|
||||
KEY[36] <= PRESS; // 4
|
||||
KEY[55] <= SHIFT_ARROW_L | SHIFT_ARROW_R;
|
||||
KEY[71] <= SHIFT_ARROW_L;
|
||||
KEY[72] <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h6C:
|
||||
if(EXTENDED)
|
||||
KEY[49] <= PRESS; // HOME
|
||||
else
|
||||
KEY[39] <= PRESS; // 7
|
||||
8'h70:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[65] <= PRESS; // INS
|
||||
else
|
||||
KEY[32] <= PRESS; // 0
|
||||
if(KEY[51] & KEY[52] & EXTENDED)
|
||||
begin
|
||||
RESET_INS <= PRESS;
|
||||
RESET <= PRESS;
|
||||
end
|
||||
end
|
||||
8'h71:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[66] <= PRESS; // DEL
|
||||
else
|
||||
KEY[46] <= PRESS; // .
|
||||
if(KEY[51] & KEY[52] & EXTENDED)
|
||||
begin
|
||||
RESET_INS <= 1'b0;
|
||||
RESET <= PRESS;
|
||||
end
|
||||
end
|
||||
8'h72:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[28] <= PRESS; // down
|
||||
else
|
||||
KEY[34] <= PRESS; // 2
|
||||
KEY[55] <= SHIFT_ARROW_L | SHIFT_ARROW_R;
|
||||
KEY[71] <= SHIFT_ARROW_L;
|
||||
KEY[72] <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h73:
|
||||
if(!EXTENDED)
|
||||
KEY[37] <= PRESS; // 5
|
||||
8'h74:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[30] <= PRESS; // right
|
||||
else
|
||||
KEY[38] <= PRESS; // 6
|
||||
KEY[55] <= SHIFT_ARROW_L | SHIFT_ARROW_R;
|
||||
KEY[71] <= SHIFT_ARROW_L;
|
||||
KEY[72] <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h75:
|
||||
begin
|
||||
if(EXTENDED)
|
||||
KEY[27] <= PRESS; // up
|
||||
else
|
||||
KEY[40] <= PRESS; // 8
|
||||
KEY[55] <= SHIFT_ARROW_L | SHIFT_ARROW_R;
|
||||
KEY[71] <= SHIFT_ARROW_L;
|
||||
KEY[72] <= SHIFT_ARROW_R;
|
||||
end
|
||||
8'h76: KEY[50] <= PRESS; // ESC
|
||||
8'h78: KEY[64] <= PRESS; // F11
|
||||
8'h7A:
|
||||
if(EXTENDED)
|
||||
KEY[70] <= PRESS; // PageDown
|
||||
else
|
||||
KEY[35] <= PRESS; // 3
|
||||
8'h79:
|
||||
begin
|
||||
KEY[43] <= PRESS; // +
|
||||
KEY[55] <= PRESS;
|
||||
end
|
||||
8'h7B: KEY[45] <= PRESS; // -
|
||||
8'h7C:
|
||||
begin
|
||||
KEY[42] <= PRESS; // *
|
||||
KEY[55] <= PRESS;
|
||||
end
|
||||
8'h7D:
|
||||
if(EXTENDED)
|
||||
KEY[69] <= PRESS; // PageUp
|
||||
else
|
||||
KEY[41] <= PRESS; // 9
|
||||
8'h7E:
|
||||
begin
|
||||
KEY[23] <= PRESS; // Scroll Lock = CTRL w
|
||||
KEY[52] <= PRESS;
|
||||
SHIFT_OVERRIDE <= PRESS;
|
||||
end
|
||||
8'h83: KEY[60] <= PRESS; // F7
|
||||
endcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
// KB_CLK[0] = 50/2 = 25 MHz
|
||||
// KB_CLK[1] = 50/4 = 12.5 MHz
|
||||
// KB_CLK[2] = 50/8 = 6.25 MHz
|
||||
// KB_CLK[3] = 50/16 = 3.125 MHz
|
||||
// KB_CLK[4] = 50/32 = 1.5625 MHz
|
||||
// KB_CLK[5] = 50/64 = 0.78125 MHz
|
||||
always @ (posedge CLK50MHZ) //50 MHz
|
||||
KB_CLK <= KB_CLK + 1'b1;
|
||||
|
||||
ps2_keyboard KEYBOARD(
|
||||
.RESET_N(RESET_N),
|
||||
// .CLK(KB_CLK[4]),
|
||||
.CLK(CLK50MHZ),
|
||||
.ENA(KB_CLK[4]),
|
||||
.PS2_CLK(PS2_CLK),
|
||||
.PS2_DATA(PS2_DATA),
|
||||
.RX_SCAN(SCAN),
|
||||
.RX_PRESSED(PRESS),
|
||||
.RX_EXTENDED(EXTENDED)
|
||||
);
|
||||
|
||||
endmodule
|
||||
+624
@@ -0,0 +1,624 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Project Name: COCO3 Targeting MISTer
|
||||
// File Name: fdc.sv
|
||||
//
|
||||
// Floppy Disk Controller for MISTer
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Code based partily on work by Gary Becker
|
||||
// Copyright (c) 2008 Gary Becker ([email protected])
|
||||
//
|
||||
// Floopy Disk Controller (fdc.v) by Stan Hodge ([email protected])
|
||||
// Copyright (c) 2021 by Stan Hodge ([email protected])
|
||||
//
|
||||
// All rights reserved
|
||||
|
||||
// Redistribution and use in source and synthezised forms, with or without
|
||||
// modification, are permitted provided that the following conditions are met:
|
||||
//
|
||||
// Redistributions of source code must retain the above copyright notice,
|
||||
// this list of conditions and the following disclaimer.
|
||||
//
|
||||
// Redistributions in synthesized form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// Neither the name of the author nor the names of other contributors may
|
||||
// be used to endorse or promote products derived from this software without
|
||||
// specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Please report bugs to the author, but before you do so, please
|
||||
// make sure that this is not a derivative work and that
|
||||
// you have the latest version of this file.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
module fdc(
|
||||
input CLK, // clock
|
||||
input RESET_N, // async reset
|
||||
input [1:0] ADDRESS, // i/o port addr [extended for coco]
|
||||
input [7:0] DATA_IN, // data in
|
||||
output [7:0] DATA_HDD, // data out
|
||||
output HALT, // DMA request
|
||||
output NMI_09,
|
||||
|
||||
input DS_ENABLE, // Turn on DS support
|
||||
|
||||
input FF40_CLK, // FDC Write support
|
||||
input FF40_ENA,
|
||||
|
||||
input FF40_RD, // FDC Read Data support
|
||||
input WD1793_RD,
|
||||
|
||||
input WD1793_WR_CTRL, // 1793 RD & WR control signal generation
|
||||
input WD1793_RD_CTRL,
|
||||
|
||||
// SD block level interface
|
||||
|
||||
input [3:0] img_mounted, // signaling that new image has been mounted
|
||||
input img_readonly, // mounted as read only. valid only for active bit in img_mounted
|
||||
input [19:0] img_size, // size of image in bytes. 1MB MAX!
|
||||
|
||||
output [31:0] sd_lba[4],
|
||||
output [5:0] sd_blk_cnt[4], // number of blocks-1, total size ((sd_blk_cnt+1)*(1<<(BLKSZ+7))) must be <= 16384!
|
||||
output reg [3:0] sd_rd,
|
||||
output reg [3:0] sd_wr,
|
||||
input [3:0] sd_ack,
|
||||
|
||||
// SD byte level access. Signals for 2-PORT altsyncram.
|
||||
input [8:0] sd_buff_addr,
|
||||
input [7:0] sd_buff_dout,
|
||||
output [7:0] sd_buff_din[4],
|
||||
input sd_buff_wr,
|
||||
|
||||
output [7:0] probe
|
||||
);
|
||||
|
||||
|
||||
wire [7:0] DRIVE_SEL_EXT;
|
||||
wire MOTOR;
|
||||
wire WRT_PREC;
|
||||
wire DENSITY;
|
||||
wire HALT_EN;
|
||||
|
||||
// Diagnostics only
|
||||
assign probe = {2'd0, HALT_EN_RST, sd_buff_wr, WR[0], RD[0], HALT_EN, HALT};
|
||||
|
||||
// Generate a 8.333 Mhz enable for the fdc... and control writes
|
||||
wire ena_8Mhz;
|
||||
wire [5:0] div_8mhz;
|
||||
|
||||
assign ena_8Mhz = (div_8mhz == 6'd5) ? 1'b1: 1'b0;
|
||||
|
||||
always@(negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if (~RESET_N) div_8mhz <= 6'd0;
|
||||
else
|
||||
begin
|
||||
if (ena_8Mhz)
|
||||
div_8mhz <= 6'd0;
|
||||
else
|
||||
div_8mhz <= div_8mhz + 6'd1;
|
||||
end
|
||||
end
|
||||
|
||||
//FDC read data path. =$ff40 or wd1793(s)
|
||||
assign DATA_HDD = (FF40_RD) ? {HALT_EN,
|
||||
DRIVE_SEL_EXT[3],
|
||||
DENSITY,
|
||||
WRT_PREC,
|
||||
MOTOR,
|
||||
DRIVE_SEL_EXT[2:0]}:
|
||||
(WD1793_RD) ? DATA_1793: //(1793[s])
|
||||
8'h00;
|
||||
|
||||
// $ff40 control register [part 1]
|
||||
|
||||
wire [3:0] DRIVE_SEL_EXT_PRE = {DATA_IN[6], DATA_IN[2:0]};
|
||||
reg [2:0] drive_index;
|
||||
|
||||
// SD blk system is a array of 4 systems - one for each drive.
|
||||
// To keep disk track memory, we created 4 wd1793's to match the sd block interfaces
|
||||
// For the interface back to the coco - we need to isolate the wd1793 the computer is talking
|
||||
// to and route those feedback signals back to the coco. This is accomplished via the drive
|
||||
// select. 'drive_index' identifies which controller is addressd.
|
||||
|
||||
|
||||
always @(negedge FF40_CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
DRIVE_SEL_EXT <= 8'h00;
|
||||
MOTOR <= 1'b0;
|
||||
WRT_PREC <= 1'b0;
|
||||
DENSITY <= 1'b0;
|
||||
drive_index <= 3'd0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (FF40_ENA)
|
||||
begin
|
||||
DRIVE_SEL_EXT <= {4'b0000,
|
||||
DATA_IN[6], // Drive Select [3] / Side Select
|
||||
DATA_IN[2:0]}; // Drive Select [2:0]
|
||||
MOTOR <= DATA_IN[3]; // Turn on motor, not used here just checked, 0=MotorOff 1=MotorOn
|
||||
WRT_PREC <= DATA_IN[4]; // Write Precompensation, not used here
|
||||
DENSITY <= DATA_IN[5]; // Density, not used here just checked
|
||||
case(DRIVE_SEL_EXT_PRE)
|
||||
4'b1000:
|
||||
drive_index <= 3'd3;
|
||||
|
||||
4'b0100:
|
||||
drive_index <= 3'd2;
|
||||
|
||||
4'b0010:
|
||||
drive_index <= 3'd1;
|
||||
|
||||
4'b0001:
|
||||
drive_index <= 3'd0;
|
||||
|
||||
4'b1100:
|
||||
drive_index <= 3'd2;
|
||||
|
||||
4'b1010:
|
||||
drive_index <= 3'd1;
|
||||
|
||||
4'b1001:
|
||||
drive_index <= 3'd0;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
// $ff40 control register [part 2]
|
||||
always @(negedge FF40_CLK or negedge HALT_EN_RST)
|
||||
begin
|
||||
if(!HALT_EN_RST)
|
||||
begin
|
||||
HALT_EN <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (FF40_ENA)
|
||||
begin
|
||||
HALT_EN <= DATA_IN[7]; // Normal Halt enable, 0=Disabled 1=Enabled
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
// Control signals for the wd1793
|
||||
|
||||
wire INTRQ[4];
|
||||
wire DRQ[4];
|
||||
wire selected_DRQ;
|
||||
wire selected_INTRQ;
|
||||
|
||||
wire WR[4];
|
||||
wire RD[4];
|
||||
wire RD_E[4];
|
||||
//wire CE;
|
||||
wire HALT_EN_RST;
|
||||
wire [7:0] DATA_1793;
|
||||
wire [7:0] dout[4];
|
||||
reg read;
|
||||
reg write;
|
||||
reg read_d;
|
||||
reg write_d;
|
||||
reg [7:0] DATA_IN_L;
|
||||
reg r_w_active;
|
||||
reg clk_8Mhz_enable_found;
|
||||
reg second_clk_8Mhz_enable_found;
|
||||
reg read1;
|
||||
reg write1;
|
||||
reg [1:0] ADDRESS_L;
|
||||
|
||||
assign RD[0] = (read || RD_E[0]) && (drive_index == 3'd0);
|
||||
assign RD[1] = (read || RD_E[1]) && (drive_index == 3'd1);
|
||||
assign RD[2] = (read || RD_E[2]) && (drive_index == 3'd2);
|
||||
assign RD[3] = (read || RD_E[3]) && (drive_index == 3'd3);
|
||||
|
||||
// The idea here is to "stretch" the CPU read and write signals to ensure we catch a 8 mhz enable.
|
||||
// For writes we will buffer the data out to ensure it does not go away.
|
||||
// For reads it is expected that data is available asynchronusly at the cpu rate and the only reason to catch a
|
||||
// 8Mhz edge is to update pointer and misc flags.
|
||||
|
||||
// This is very nasty code and will likely only work with the present CPU timing.
|
||||
// It is heavily dependant on address and write data being available just after
|
||||
// the previous cycle.
|
||||
|
||||
always @(negedge CLK or negedge RESET_N)
|
||||
begin
|
||||
if(!RESET_N)
|
||||
begin
|
||||
read_d <= 1'b0;
|
||||
write_d <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
second_clk_8Mhz_enable_found <= 1'b0;
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
WR[2] <= 1'b0;
|
||||
WR[3] <= 1'b0;
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
RD_E[2] <= 1'b0;
|
||||
RD_E[3] <= 1'b0;
|
||||
read1 <= 1'b0;
|
||||
write1 <= 1'b0;
|
||||
read <= 1'b0;
|
||||
write <= 1'b0;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
||||
// synchronizers
|
||||
read1 <= WD1793_RD_CTRL;
|
||||
read <= read1;
|
||||
|
||||
write1 <= WD1793_WR_CTRL;
|
||||
write <= write1;
|
||||
|
||||
// delays for edge detection
|
||||
read_d <= read;
|
||||
write_d <= write;
|
||||
|
||||
if ((read1 & ~read) | (write1 & ~write))
|
||||
begin
|
||||
// Latch Address & Data
|
||||
ADDRESS_L <= ADDRESS[1:0];
|
||||
DATA_IN_L <= DATA_IN;
|
||||
end
|
||||
|
||||
// Synchronus rising edge of write
|
||||
if ((write == 1'b1) && (write_d == 1'b0))
|
||||
begin
|
||||
// Set Writes
|
||||
r_w_active <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd0:
|
||||
WR[0] <= 1'b1;
|
||||
3'd1:
|
||||
WR[1] <= 1'b1;
|
||||
3'd2:
|
||||
WR[2] <= 1'b1;
|
||||
3'd3:
|
||||
WR[3] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Synchronus rising edge of read
|
||||
if ((read == 1'b1) && (read_d == 1'b0))
|
||||
begin
|
||||
r_w_active <= 1'b1;
|
||||
case (drive_index)
|
||||
3'd0:
|
||||
RD_E[0] <= 1'b1;
|
||||
3'd1:
|
||||
RD_E[1] <= 1'b1;
|
||||
3'd2:
|
||||
RD_E[2] <= 1'b1;
|
||||
3'd3:
|
||||
RD_E[3] <= 1'b1;
|
||||
endcase
|
||||
end
|
||||
|
||||
// Clears
|
||||
if (ena_8Mhz && r_w_active)
|
||||
clk_8Mhz_enable_found <= 1'b1;
|
||||
|
||||
// if (ena_8Mhz && clk_8Mhz_enable_found)
|
||||
// second_clk_8Mhz_enable_found <= 1'b1;
|
||||
|
||||
// 1 50Mhz clock later...
|
||||
// if (second_clk_8Mhz_enable_found)
|
||||
if (clk_8Mhz_enable_found)
|
||||
begin
|
||||
clk_8Mhz_enable_found <= 1'b0;
|
||||
second_clk_8Mhz_enable_found <= 1'b0;
|
||||
r_w_active <= 1'b0;
|
||||
|
||||
WR[0] <= 1'b0;
|
||||
WR[1] <= 1'b0;
|
||||
WR[2] <= 1'b0;
|
||||
WR[3] <= 1'b0;
|
||||
|
||||
RD_E[0] <= 1'b0;
|
||||
RD_E[1] <= 1'b0;
|
||||
RD_E[2] <= 1'b0;
|
||||
RD_E[3] <= 1'b0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
// NMI from disk controller
|
||||
// Selected INTRQ
|
||||
assign selected_INTRQ = (drive_index == 3'd0) ? INTRQ[0]:
|
||||
(drive_index == 3'd1) ? INTRQ[1]:
|
||||
(drive_index == 3'd2) ? INTRQ[2]:
|
||||
(drive_index == 3'd3) ? INTRQ[3]:
|
||||
1'b0;
|
||||
|
||||
assign NMI_09 = DENSITY & selected_INTRQ; // Send NMI if Double Density (Halt Mode)
|
||||
|
||||
// HALT from disk controller
|
||||
// Selected DRQ
|
||||
assign selected_DRQ = (drive_index == 3'd0) ? DRQ[0]:
|
||||
(drive_index == 3'd1) ? DRQ[1]:
|
||||
(drive_index == 3'd2) ? DRQ[2]:
|
||||
(drive_index == 3'd3) ? DRQ[3]:
|
||||
1'b1;
|
||||
|
||||
assign HALT = HALT_EN & ~selected_DRQ;
|
||||
|
||||
assign HALT_EN_RST = RESET_N & ~selected_INTRQ; // From controller schematic
|
||||
|
||||
// Data bus selection
|
||||
assign DATA_1793 = (drive_index == 3'd0) ? dout[0]:
|
||||
(drive_index == 3'd1) ? dout[1]:
|
||||
(drive_index == 3'd2) ? dout[2]:
|
||||
(drive_index == 3'd3) ? dout[3]:
|
||||
8'd0;
|
||||
|
||||
// The SD_BLK interface and thus the wd1793 will allways transfer 1 blk. This is blk qty - 1 per spec.
|
||||
assign sd_blk_cnt[3] = 6'd0;
|
||||
assign sd_blk_cnt[2] = 6'd0;
|
||||
assign sd_blk_cnt[1] = 6'd0;
|
||||
assign sd_blk_cnt[0] = 6'd0;
|
||||
|
||||
reg drive_wp[4];
|
||||
reg [3:0] drive_ready = 4'B0;
|
||||
reg [3:0] double_sided = 4'B0;
|
||||
|
||||
// As drives are mounted in MISTer this logic saves the write protect and generates ready for
|
||||
// changing drives to the wd1793.
|
||||
// This can also get the disk size to properly handle DS drives - TBD
|
||||
|
||||
// Drive 0
|
||||
|
||||
always @(negedge img_mounted[0] or negedge RESET_N)
|
||||
begin
|
||||
if (~RESET_N)
|
||||
begin
|
||||
drive_wp[0] <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
drive_wp[0] <= img_readonly;
|
||||
drive_ready[0] <= 1'b1;
|
||||
double_sided[0]<= img_size > 20'd368600;//20'd368640;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
// Drive 1
|
||||
|
||||
always @(negedge img_mounted[1] or negedge RESET_N)
|
||||
begin
|
||||
if (~RESET_N)
|
||||
begin
|
||||
drive_wp[1] <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
drive_wp[1] <= img_readonly;
|
||||
drive_ready[1] <= 1'b1;
|
||||
double_sided[1]<= img_size > 20'd368600;//20'd368640;
|
||||
end
|
||||
end
|
||||
|
||||
// Drive 2
|
||||
|
||||
always @(negedge img_mounted[2] or negedge RESET_N)
|
||||
begin
|
||||
if (~RESET_N)
|
||||
begin
|
||||
drive_wp[2] <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
drive_wp[2] <= img_readonly;
|
||||
drive_ready[2] <= 1'b1;
|
||||
double_sided[2]<= img_size > 20'd368600;//20'd368640;
|
||||
end
|
||||
end
|
||||
|
||||
// Drive 3
|
||||
|
||||
always @(negedge img_mounted[3] or negedge RESET_N)
|
||||
begin
|
||||
if (~RESET_N)
|
||||
begin
|
||||
drive_wp[3] <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
drive_wp[3] <= img_readonly;
|
||||
drive_ready[3] <= 1'b1;
|
||||
//double_sided[3]<= img_size > 20'd368600;//20'd368640;
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
wd1793 #(1,1) coco_wd1793_0
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[0]),
|
||||
.wr(WR[0]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[0]),
|
||||
.drq(DRQ[0]),
|
||||
.intrq(INTRQ[0]),
|
||||
|
||||
.img_mounted(img_mounted[0]),
|
||||
.img_size(img_size),
|
||||
|
||||
.sd_lba(sd_lba[0]),
|
||||
.sd_rd(sd_rd[0]),
|
||||
.sd_wr(sd_wr[0]),
|
||||
.sd_ack(sd_ack[0]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[0]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[0]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[0]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[0] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[0]),
|
||||
|
||||
.input_active(0),
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_1
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[1]),
|
||||
.wr(WR[1]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[1]),
|
||||
.drq(DRQ[1]),
|
||||
.intrq(INTRQ[1]),
|
||||
|
||||
.img_mounted(img_mounted[1]),
|
||||
.img_size(img_size),
|
||||
|
||||
.sd_lba(sd_lba[1]),
|
||||
.sd_rd(sd_rd[1]),
|
||||
.sd_wr(sd_wr[1]),
|
||||
.sd_ack(sd_ack[1]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[1]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[1]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[1]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[1] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[1]),
|
||||
|
||||
.input_active(0),
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_2
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[2]),
|
||||
.wr(WR[2]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[2]),
|
||||
.drq(DRQ[2]),
|
||||
.intrq(INTRQ[2]),
|
||||
|
||||
.img_mounted(img_mounted[2]),
|
||||
.img_size(img_size),
|
||||
|
||||
.sd_lba(sd_lba[2]),
|
||||
.sd_rd(sd_rd[2]),
|
||||
.sd_wr(sd_wr[2]),
|
||||
.sd_ack(sd_ack[2]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[2]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[2]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(~double_sided[2]), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(double_sided[2] & DRIVE_SEL_EXT[3]),
|
||||
.ready(drive_ready[2]),
|
||||
|
||||
.input_active(0),
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
wd1793 #(1,0) coco_wd1793_3
|
||||
(
|
||||
.clk_sys(~CLK),
|
||||
.ce(ena_8Mhz),
|
||||
.reset(~RESET_N),
|
||||
.io_en(1'b1),
|
||||
.rd(RD[3]),
|
||||
.wr(WR[3]),
|
||||
.addr(ADDRESS_L[1:0]),
|
||||
.din(DATA_IN_L),
|
||||
.dout(dout[3]),
|
||||
.drq(DRQ[3]),
|
||||
.intrq(INTRQ[3]),
|
||||
|
||||
.img_mounted(img_mounted[3]),
|
||||
.img_size(img_size),
|
||||
|
||||
.sd_lba(sd_lba[3]),
|
||||
.sd_rd(sd_rd[3]),
|
||||
.sd_wr(sd_wr[3]),
|
||||
.sd_ack(sd_ack[3]),
|
||||
|
||||
.sd_buff_addr(sd_buff_addr),
|
||||
.sd_buff_dout(sd_buff_dout),
|
||||
.sd_buff_din(sd_buff_din[3]),
|
||||
.sd_buff_wr(sd_buff_wr),
|
||||
|
||||
.wp(drive_wp[3]),
|
||||
|
||||
.size_code(3'd5), // 5 is 18 sector x 256 bits COCO standard
|
||||
.layout(1'b1), // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
.side(1'b0), // DS can not be supported for drive 3.
|
||||
.ready(drive_ready[3]),
|
||||
|
||||
.input_active(0),
|
||||
.input_addr(0),
|
||||
.input_data(0),
|
||||
.input_wr(0),
|
||||
.buff_din(0)
|
||||
);
|
||||
|
||||
endmodule
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pinplan
|
||||
variation_name="pll"
|
||||
megafunction_name="ALTERA_PLL"
|
||||
intended_family="Cyclone V"
|
||||
specifies="all_ports">
|
||||
<global>
|
||||
<pin name="refclk" direction="input" scope="external" />
|
||||
<pin name="rst" direction="input" scope="external" />
|
||||
<pin name="outclk_0" direction="output" scope="external" />
|
||||
<pin name="outclk_1" direction="output" scope="external" />
|
||||
<pin name="outclk_2" direction="output" scope="external" />
|
||||
<pin name="outclk_3" direction="output" scope="external" />
|
||||
<pin name="locked" direction="output" scope="external" />
|
||||
</global>
|
||||
</pinplan>
|
||||
+337
@@ -0,0 +1,337 @@
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_TOOL_NAME "altera_pll"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_TOOL_VERSION "17.0"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_TOOL_ENV "mwpim"
|
||||
set_global_assignment -library "pll" -name MISC_FILE [file join $::quartus(qip_path) "pll.cmp"]
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_TARGETED_DEVICE_FAMILY "Cyclone V"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_GENERATED_DEVICE_FAMILY "{Cyclone V}"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_QSYS_MODE "UNKNOWN"
|
||||
set_global_assignment -name SYNTHESIS_ONLY_QIP ON
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_NAME "cGxs"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_DISPLAY_NAME "QWx0ZXJhIFBMTA=="
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_REPORT_HIERARCHY "Off"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_INTERNAL "Off"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_AUTHOR "QWx0ZXJhIENvcnBvcmF0aW9u"
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_VERSION "MTcuMA=="
|
||||
set_global_assignment -entity "pll" -library "pll" -name IP_COMPONENT_DESCRIPTION "QWx0ZXJhIFBoYXNlLUxvY2tlZCBMb29wIChBTFRFUkFfUExMKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_NAME "cGxsXzAwMDI="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_DISPLAY_NAME "QWx0ZXJhIFBMTA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_REPORT_HIERARCHY "Off"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_INTERNAL "Off"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_AUTHOR "QWx0ZXJhIENvcnBvcmF0aW9u"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_VERSION "MTcuMA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_DESCRIPTION "QWx0ZXJhIFBoYXNlLUxvY2tlZCBMb29wIChBTFRFUkFfUExMKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZGVidWdfcHJpbnRfb3V0cHV0::ZmFsc2U=::ZGVidWdfcHJpbnRfb3V0cHV0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZGVidWdfdXNlX3JiY190YWZfbWV0aG9k::ZmFsc2U=::ZGVidWdfdXNlX3JiY190YWZfbWV0aG9k"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZGV2aWNl::NUNFQkEyRjE3QTc=::ZGV2aWNl"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BsbF9tb2Rl::SW50ZWdlci1OIFBMTA==::UExMIE1vZGU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZnJhY3Rpb25hbF92Y29fbXVsdGlwbGllcg==::ZmFsc2U=::ZnJhY3Rpb25hbF92Y29fbXVsdGlwbGllcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3JlZmVyZW5jZV9jbG9ja19mcmVxdWVuY3k=::NTAuMA==::UmVmZXJlbmNlIENsb2NrIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cmVmZXJlbmNlX2Nsb2NrX2ZyZXF1ZW5jeQ==::NTAuMCBNSHo=::cmVmZXJlbmNlX2Nsb2NrX2ZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2NoYW5uZWxfc3BhY2luZw==::MC4w::Q2hhbm5lbCBTcGFjaW5n"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX29wZXJhdGlvbl9tb2Rl::ZGlyZWN0::T3BlcmF0aW9uIE1vZGU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2ZlZWRiYWNrX2Nsb2Nr::R2xvYmFsIENsb2Nr::RmVlZGJhY2sgQ2xvY2s="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2ZyYWN0aW9uYWxfY291dA==::MzI=::RnJhY3Rpb25hbCBjYXJyeSBvdXQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RzbV9vdXRfc2Vs::MXN0X29yZGVy::RFNNIE9yZGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3BlcmF0aW9uX21vZGU=::ZGlyZWN0::b3BlcmF0aW9uX21vZGU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3VzZV9sb2NrZWQ=::dHJ1ZQ==::RW5hYmxlIGxvY2tlZCBvdXRwdXQgcG9ydA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuX2Fkdl9wYXJhbXM=::ZmFsc2U=::RW5hYmxlIHBoeXNpY2FsIG91dHB1dCBjbG9jayBwYXJhbWV0ZXJz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX251bWJlcl9vZl9jbG9ja3M=::NA==::TnVtYmVyIE9mIENsb2Nrcw=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "bnVtYmVyX29mX2Nsb2Nrcw==::NA==::bnVtYmVyX29mX2Nsb2Nrcw=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX211bHRpcGx5X2ZhY3Rvcg==::MQ==::TXVsdGlwbHkgRmFjdG9yIChNLUNvdW50ZXIp"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2ZyYWNfbXVsdGlwbHlfZmFjdG9y::MQ==::RnJhY3Rpb25hbCBNdWx0aXBseSBGYWN0b3IgKEsp"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3Jfbg==::MQ==::RGl2aWRlIEZhY3RvciAoTi1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjA=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kw::MTE0LjU0NTQ1NA==::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzA=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3Iw::MTI2::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjA=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMA==::NTU=::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MA==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMA==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MA==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzA=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDA=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUw::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjE=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kx::NTcuMjcyNzI3::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzE=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3Ix::MTI2::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjE=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMQ==::MTEw::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MQ==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMQ==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MQ==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzE=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDE=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUx::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjI=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3ky::MjguNjM2MzYz::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzI=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3Iy::MTI2::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjI=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMg==::MjIw::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5Mg==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMg==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0Mg==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzI=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDI=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUy::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjM=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kz::MTQuMzE4MTgx::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzM=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3Iz::MTI2::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjM=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMw==::NDQw::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5Mw==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMw==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0Mw==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzM=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDM=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUz::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjQ=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k0::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzQ=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I0::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjQ=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yNA==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5NA==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzNA==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0NA==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzQ=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDQ=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU0::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjU=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k1::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzU=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I1::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjU=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yNQ==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5NQ==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzNQ==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0NQ==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzU=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDU=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU1::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjY=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k2::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzY=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I2::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjY=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yNg==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5Ng==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzNg==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0Ng==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzY=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDY=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU2::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjc=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k3::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzc=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I3::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3Rvcjc=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yNw==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5Nw==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzNw==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0Nw==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzc=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDc=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU3::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjg=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k4::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzg=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I4::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3Rvcjg=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yOA==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5OA==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzOA==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0OA==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzg=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDg=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU4::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjk=::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3k5::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzk=::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3I5::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3Rvcjk=::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yOQ==::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5OQ==::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzOQ==::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0OQ==::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzk=::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDk=::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGU5::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjEw::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxMA==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzEw::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxMA==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjEw::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTA=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTA=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTA=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTA=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzEw::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDEw::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxMA==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjEx::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxMQ==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzEx::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxMQ==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjEx::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTE=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTE=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTE=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTE=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzEx::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDEx::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxMQ==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjEy::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxMg==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzEy::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxMg==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjEy::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTI=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTI=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTI=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTI=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzEy::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDEy::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxMg==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjEz::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxMw==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzEz::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxMw==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjEz::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTM=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTM=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTM=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTM=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzEz::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDEz::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxMw==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjE0::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxNA==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzE0::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxNA==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjE0::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTQ=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTQ=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTQ=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTQ=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzE0::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDE0::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxNA==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjE1::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxNQ==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzE1::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxNQ==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjE1::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTU=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTU=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTU=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTU=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzE1::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDE1::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxNQ==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjE2::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxNg==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzE2::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxNg==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjE2::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTY=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTY=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTY=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTY=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzE2::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDE2::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxNg==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Nhc2NhZGVfY291bnRlcjE3::ZmFsc2U=::TWFrZSB0aGlzIGEgY2FzY2FkZSBjb3VudGVy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX291dHB1dF9jbG9ja19mcmVxdWVuY3kxNw==::MTAwLjA=::RGVzaXJlZCBGcmVxdWVuY3k="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2RpdmlkZV9mYWN0b3JfYzE3::MQ==::RGl2aWRlIEZhY3RvciAoQy1Db3VudGVyKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9tdWx0aXBseV9mYWN0b3IxNw==::MQ==::QWN0dWFsIE11bHRpcGx5IEZhY3Rvcg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9mcmFjX211bHRpcGx5X2ZhY3RvcjE3::MQ==::QWN0dWFsIEZyYWN0aW9uYWwgTXVsdGlwbHkgRmFjdG9yIChLKQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9kaXZpZGVfZmFjdG9yMTc=::MQ==::QWN0dWFsIERpdmlkZSBGYWN0b3I="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9vdXRwdXRfY2xvY2tfZnJlcXVlbmN5MTc=::MCBNSHo=::QWN0dWFsIEZyZXF1ZW5jeQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BzX3VuaXRzMTc=::cHM=::UGhhc2UgU2hpZnQgdW5pdHM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0MTc=::MA==::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BoYXNlX3NoaWZ0X2RlZzE3::MC4w::UGhhc2UgU2hpZnQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2FjdHVhbF9waGFzZV9zaGlmdDE3::MA==::QWN0dWFsIFBoYXNlIFNoaWZ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2R1dHlfY3ljbGUxNw==::NTA=::RHV0eSBDeWNsZQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTA=::MTE0LjU0NTQ1NCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTA="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQw::MCBwcw==::cGhhc2Vfc2hpZnQw"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTA=::NTA=::ZHV0eV9jeWNsZTA="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE=::NTcuMjcyNzI3IE1Ieg==::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQx::MCBwcw==::cGhhc2Vfc2hpZnQx"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTE=::NTA=::ZHV0eV9jeWNsZTE="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTI=::MjguNjM2MzYzIE1Ieg==::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTI="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQy::MCBwcw==::cGhhc2Vfc2hpZnQy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTI=::NTA=::ZHV0eV9jeWNsZTI="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTM=::MTQuMzE4MTgxIE1Ieg==::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQz::MCBwcw==::cGhhc2Vfc2hpZnQz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTM=::NTA=::ZHV0eV9jeWNsZTM="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTQ=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ0::MCBwcw==::cGhhc2Vfc2hpZnQ0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTQ=::NTA=::ZHV0eV9jeWNsZTQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTU=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ1::MCBwcw==::cGhhc2Vfc2hpZnQ1"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTU=::NTA=::ZHV0eV9jeWNsZTU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTY=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTY="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ2::MCBwcw==::cGhhc2Vfc2hpZnQ2"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTY=::NTA=::ZHV0eV9jeWNsZTY="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTc=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTc="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ3::MCBwcw==::cGhhc2Vfc2hpZnQ3"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTc=::NTA=::ZHV0eV9jeWNsZTc="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTg=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTg="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ4::MCBwcw==::cGhhc2Vfc2hpZnQ4"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTg=::NTA=::ZHV0eV9jeWNsZTg="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTk=::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTk="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQ5::MCBwcw==::cGhhc2Vfc2hpZnQ5"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTk=::NTA=::ZHV0eV9jeWNsZTk="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEw::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEw"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxMA==::MCBwcw==::cGhhc2Vfc2hpZnQxMA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTEw::NTA=::ZHV0eV9jeWNsZTEw"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEx::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEx"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxMQ==::MCBwcw==::cGhhc2Vfc2hpZnQxMQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTEx::NTA=::ZHV0eV9jeWNsZTEx"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEy::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxMg==::MCBwcw==::cGhhc2Vfc2hpZnQxMg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTEy::NTA=::ZHV0eV9jeWNsZTEy"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEz::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTEz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxMw==::MCBwcw==::cGhhc2Vfc2hpZnQxMw=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTEz::NTA=::ZHV0eV9jeWNsZTEz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE0::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxNA==::MCBwcw==::cGhhc2Vfc2hpZnQxNA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTE0::NTA=::ZHV0eV9jeWNsZTE0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE1::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE1"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxNQ==::MCBwcw==::cGhhc2Vfc2hpZnQxNQ=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTE1::NTA=::ZHV0eV9jeWNsZTE1"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE2::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE2"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxNg==::MCBwcw==::cGhhc2Vfc2hpZnQxNg=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTE2::NTA=::ZHV0eV9jeWNsZTE2"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE3::MCBNSHo=::b3V0cHV0X2Nsb2NrX2ZyZXF1ZW5jeTE3"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGhhc2Vfc2hpZnQxNw==::MCBwcw==::cGhhc2Vfc2hpZnQxNw=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "ZHV0eV9jeWNsZTE3::NTA=::ZHV0eV9jeWNsZTE3"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BsbF9hdXRvX3Jlc2V0::T2Zm::UExMIEF1dG8gUmVzZXQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BsbF9iYW5kd2lkdGhfcHJlc2V0::QXV0bw==::UExMIEJhbmR3aWR0aCBQcmVzZXQ="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuX3JlY29uZg==::ZmFsc2U=::RW5hYmxlIGR5bmFtaWMgcmVjb25maWd1cmF0aW9uIG9mIFBMTA=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuX2Rwc19wb3J0cw==::ZmFsc2U=::RW5hYmxlIGFjY2VzcyB0byBkeW5hbWljIHBoYXNlIHNoaWZ0IHBvcnRz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuX3Bob3V0X3BvcnRz::ZmFsc2U=::RW5hYmxlIGFjY2VzcyB0byBQTEwgRFBBIG91dHB1dCBwb3J0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGxsX3R5cGU=::R2VuZXJhbA==::UExMIFRZUEU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "cGxsX3N1YnR5cGU=::R2VuZXJhbA==::UExMIFNVQlRZUEU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BhcmFtZXRlcl9saXN0::TS1Db3VudGVyIEhpIERpdmlkZSxNLUNvdW50ZXIgTG93IERpdmlkZSxOLUNvdW50ZXIgSGkgRGl2aWRlLE4tQ291bnRlciBMb3cgRGl2aWRlLE0tQ291bnRlciBCeXBhc3MgRW5hYmxlLE4tQ291bnRlciBCeXBhc3MgRW5hYmxlLE0tQ291bnRlciBPZGQgRGl2aWRlIEVuYWJsZSxOLUNvdW50ZXIgT2RkIERpdmlkZSBFbmFibGUsQy1Db3VudGVyLTAgSGkgRGl2aWRlLEMtQ291bnRlci0wIExvdyBEaXZpZGUsQy1Db3VudGVyLTAgQ29hcnNlIFBoYXNlIFNoaWZ0LEMtQ291bnRlci0wIFZDTyBQaGFzZSBUYXAsQy1Db3VudGVyLTAgSW5wdXQgU291cmNlLEMtQ291bnRlci0wIEJ5cGFzcyBFbmFibGUsQy1Db3VudGVyLTAgT2RkIERpdmlkZSBFbmFibGUsQy1Db3VudGVyLTEgSGkgRGl2aWRlLEMtQ291bnRlci0xIExvdyBEaXZpZGUsQy1Db3VudGVyLTEgQ29hcnNlIFBoYXNlIFNoaWZ0LEMtQ291bnRlci0xIFZDTyBQaGFzZSBUYXAsQy1Db3VudGVyLTEgSW5wdXQgU291cmNlLEMtQ291bnRlci0xIEJ5cGFzcyBFbmFibGUsQy1Db3VudGVyLTEgT2RkIERpdmlkZSBFbmFibGUsQy1Db3VudGVyLTIgSGkgRGl2aWRlLEMtQ291bnRlci0yIExvdyBEaXZpZGUsQy1Db3VudGVyLTIgQ29hcnNlIFBoYXNlIFNoaWZ0LEMtQ291bnRlci0yIFZDTyBQaGFzZSBUYXAsQy1Db3VudGVyLTIgSW5wdXQgU291cmNlLEMtQ291bnRlci0yIEJ5cGFzcyBFbmFibGUsQy1Db3VudGVyLTIgT2RkIERpdmlkZSBFbmFibGUsQy1Db3VudGVyLTMgSGkgRGl2aWRlLEMtQ291bnRlci0zIExvdyBEaXZpZGUsQy1Db3VudGVyLTMgQ29hcnNlIFBoYXNlIFNoaWZ0LEMtQ291bnRlci0zIFZDTyBQaGFzZSBUYXAsQy1Db3VudGVyLTMgSW5wdXQgU291cmNlLEMtQ291bnRlci0zIEJ5cGFzcyBFbmFibGUsQy1Db3VudGVyLTMgT2RkIERpdmlkZSBFbmFibGUsVkNPIFBvc3QgRGl2aWRlIENvdW50ZXIgRW5hYmxlLENoYXJnZSBQdW1wIGN1cnJlbnQgKHVBKSxMb29wIEZpbHRlciBCYW5kd2lkdGggUmVzaXN0b3IgKE9obXMpICxQTEwgT3V0cHV0IFZDTyBGcmVxdWVuY3ksSy1GcmFjdGlvbmFsIERpdmlzaW9uIFZhbHVlIChEU00pLEZlZWRiYWNrIENsb2NrIFR5cGUsRmVlZGJhY2sgQ2xvY2sgTVVYIDEsRmVlZGJhY2sgQ2xvY2sgTVVYIDIsTSBDb3VudGVyIFNvdXJjZSBNVVgsUExMIEF1dG8gUmVzZXQ=::UGFyYW1ldGVyIE5hbWVz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3BhcmFtZXRlcl92YWx1ZXM=::NjMsNjMsMywyLGZhbHNlLGZhbHNlLGZhbHNlLHRydWUsNiw1LDEsMCxwaF9tdXhfY2xrLGZhbHNlLHRydWUsMTEsMTEsMSwwLHBoX211eF9jbGssZmFsc2UsZmFsc2UsMjIsMjIsMSwwLHBoX211eF9jbGssZmFsc2UsZmFsc2UsNDQsNDQsMSwwLHBoX211eF9jbGssZmFsc2UsZmFsc2UsMSwyMCwxMjAwMCwxMjYwLjAgTUh6LDEsbm9uZSxnbGIsbV9jbnQscGhfbXV4X2NsayxmYWxzZQ==::UGFyYW1ldGVyIFZhbHVlcw=="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX21pZl9nZW5lcmF0ZQ==::ZmFsc2U=::R2VuZXJhdGUgTUlGIGZpbGU="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuYWJsZV9taWZfZHBz::ZmFsc2U=::RW5hYmxlIER5bmFtaWMgUGhhc2UgU2hpZnQgZm9yIE1JRiBzdHJlYW1pbmc="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Rwc19jbnRy::QzA=::RFBTIENvdW50ZXIgU2VsZWN0aW9u"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Rwc19udW0=::MQ==::TnVtYmVyIG9mIER5bmFtaWMgUGhhc2UgU2hpZnRz"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2Rwc19kaXI=::UG9zaXRpdmU=::RHluYW1pYyBQaGFzZSBTaGlmdCBEaXJlY3Rpb24="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX3JlZmNsa19zd2l0Y2g=::ZmFsc2U=::Q3JlYXRlIGEgc2Vjb25kIGlucHV0IGNsayAncmVmY2xrMSc="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuYWJsZV9jYXNjYWRlX291dA==::ZmFsc2U=::Q3JlYXRlIGEgJ2Nhc2NhZGVfb3V0JyBzaWduYWwgdG8gY29ubmVjdCB3aXRoIGEgZG93bnN0cmVhbSBQTEw="
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_COMPONENT_PARAMETER "Z3VpX2VuYWJsZV9jYXNjYWRlX2lu::ZmFsc2U=::Q3JlYXRlIGFuIGFkanBsbGluIG9yIGNjbGsgc2lnbmFsIHRvIGNvbm5lY3Qgd2l0aCBhbiB1cHN0cmVhbSBQTEw="
|
||||
|
||||
set_global_assignment -library "pll" -name VERILOG_FILE [file join $::quartus(qip_path) "pll.v"]
|
||||
set_global_assignment -library "pll" -name VERILOG_FILE [file join $::quartus(qip_path) "pll/pll_0002.v"]
|
||||
set_global_assignment -library "pll" -name QIP_FILE [file join $::quartus(qip_path) "pll/pll_0002.qip"]
|
||||
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_TOOL_NAME "altera_pll"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_TOOL_VERSION "17.0"
|
||||
set_global_assignment -entity "pll_0002" -library "pll" -name IP_TOOL_ENV "mwpim"
|
||||
@@ -0,0 +1,6 @@
|
||||
set_global_assignment -entity "pll" -library "lib_pll" -name IP_TOOL_NAME "altera_pll"
|
||||
set_global_assignment -entity "pll" -library "lib_pll" -name IP_TOOL_VERSION "17.0"
|
||||
set_global_assignment -entity "pll" -library "lib_pll" -name IP_TOOL_ENV "mwpim"
|
||||
set_global_assignment -library "lib_pll" -name SPD_FILE [file join $::quartus(sip_path) "pll.spd"]
|
||||
|
||||
set_global_assignment -library "lib_pll" -name MISC_FILE [file join $::quartus(sip_path) "pll_sim/pll.vo"]
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<simPackage>
|
||||
<file path="pll_sim/pll.vo" type="VERILOG" />
|
||||
<topLevel name="pll" />
|
||||
<deviceFamily name="cyclonev" />
|
||||
</simPackage>
|
||||
@@ -0,0 +1,259 @@
|
||||
// megafunction wizard: %Altera PLL v17.0%
|
||||
// GENERATION: XML
|
||||
// pll.v
|
||||
|
||||
// Generated using ACDS version 17.0 602
|
||||
|
||||
`timescale 1 ps / 1 ps
|
||||
module pll (
|
||||
input wire refclk, // refclk.clk
|
||||
input wire rst, // reset.reset
|
||||
output wire outclk_0, // outclk0.clk
|
||||
output wire outclk_1, // outclk1.clk
|
||||
output wire outclk_2, // outclk2.clk
|
||||
output wire outclk_3, // outclk3.clk
|
||||
output wire locked // locked.export
|
||||
);
|
||||
|
||||
pll_0002 pll_inst (
|
||||
.refclk (refclk), // refclk.clk
|
||||
.rst (rst), // reset.reset
|
||||
.outclk_0 (outclk_0), // outclk0.clk
|
||||
.outclk_1 (outclk_1), // outclk1.clk
|
||||
.outclk_2 (outclk_2), // outclk2.clk
|
||||
.outclk_3 (outclk_3), // outclk3.clk
|
||||
.locked (locked) // locked.export
|
||||
);
|
||||
|
||||
endmodule
|
||||
// Retrieval info: <?xml version="1.0"?>
|
||||
//<!--
|
||||
// Generated by Altera MegaWizard Launcher Utility version 1.0
|
||||
// ************************************************************
|
||||
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
||||
// ************************************************************
|
||||
// Copyright (C) 1991-2021 Altera Corporation
|
||||
// Any megafunction design, and related net list (encrypted or decrypted),
|
||||
// support information, device programming or simulation file, and any other
|
||||
// associated documentation or information provided by Altera or a partner
|
||||
// under Altera's Megafunction Partnership Program may be used only to
|
||||
// program PLD devices (but not masked PLD devices) from Altera. Any other
|
||||
// use of such megafunction design, net list, support information, device
|
||||
// programming or simulation file, or any other related documentation or
|
||||
// information is prohibited for any other purpose, including, but not
|
||||
// limited to modification, reverse engineering, de-compiling, or use with
|
||||
// any other silicon devices, unless such use is explicitly licensed under
|
||||
// a separate agreement with Altera or a megafunction partner. Title to
|
||||
// the intellectual property, including patents, copyrights, trademarks,
|
||||
// trade secrets, or maskworks, embodied in any such megafunction design,
|
||||
// net list, support information, device programming or simulation file, or
|
||||
// any other related documentation or information provided by Altera or a
|
||||
// megafunction partner, remains with Altera, the megafunction partner, or
|
||||
// their respective licensors. No other licenses, including any licenses
|
||||
// needed under any third party's intellectual property, are provided herein.
|
||||
//-->
|
||||
// Retrieval info: <instance entity-name="altera_pll" version="17.0" >
|
||||
// Retrieval info: <generic name="debug_print_output" value="false" />
|
||||
// Retrieval info: <generic name="debug_use_rbc_taf_method" value="false" />
|
||||
// Retrieval info: <generic name="device_family" value="Cyclone V" />
|
||||
// Retrieval info: <generic name="device" value="5CEBA2F17A7" />
|
||||
// Retrieval info: <generic name="gui_device_speed_grade" value="1" />
|
||||
// Retrieval info: <generic name="gui_pll_mode" value="Integer-N PLL" />
|
||||
// Retrieval info: <generic name="gui_reference_clock_frequency" value="50.0" />
|
||||
// Retrieval info: <generic name="gui_channel_spacing" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_operation_mode" value="direct" />
|
||||
// Retrieval info: <generic name="gui_feedback_clock" value="Global Clock" />
|
||||
// Retrieval info: <generic name="gui_fractional_cout" value="32" />
|
||||
// Retrieval info: <generic name="gui_dsm_out_sel" value="1st_order" />
|
||||
// Retrieval info: <generic name="gui_use_locked" value="true" />
|
||||
// Retrieval info: <generic name="gui_en_adv_params" value="false" />
|
||||
// Retrieval info: <generic name="gui_number_of_clocks" value="4" />
|
||||
// Retrieval info: <generic name="gui_multiply_factor" value="1" />
|
||||
// Retrieval info: <generic name="gui_frac_multiply_factor" value="1" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_n" value="1" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter0" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency0" value="114.545454" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c0" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency0" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units0" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift0" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg0" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift0" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle0" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter1" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency1" value="57.272727" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c1" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency1" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units1" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift1" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg1" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift1" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle1" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter2" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency2" value="28.636363" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c2" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency2" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units2" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift2" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg2" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift2" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle2" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter3" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency3" value="14.318181" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c3" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency3" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units3" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift3" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg3" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift3" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle3" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter4" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency4" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c4" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency4" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units4" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift4" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg4" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift4" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle4" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter5" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency5" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c5" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency5" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units5" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift5" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg5" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift5" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle5" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter6" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency6" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c6" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency6" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units6" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift6" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg6" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift6" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle6" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter7" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency7" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c7" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency7" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units7" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift7" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg7" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift7" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle7" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter8" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency8" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c8" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency8" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units8" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift8" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg8" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift8" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle8" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter9" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency9" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c9" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency9" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units9" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift9" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg9" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift9" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle9" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter10" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency10" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c10" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency10" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units10" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift10" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg10" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift10" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle10" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter11" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency11" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c11" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency11" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units11" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift11" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg11" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift11" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle11" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter12" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency12" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c12" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency12" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units12" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift12" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg12" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift12" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle12" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter13" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency13" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c13" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency13" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units13" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift13" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg13" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift13" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle13" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter14" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency14" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c14" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency14" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units14" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift14" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg14" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift14" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle14" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter15" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency15" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c15" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency15" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units15" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift15" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg15" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift15" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle15" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter16" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency16" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c16" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency16" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units16" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift16" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg16" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift16" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle16" value="50" />
|
||||
// Retrieval info: <generic name="gui_cascade_counter17" value="false" />
|
||||
// Retrieval info: <generic name="gui_output_clock_frequency17" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_divide_factor_c17" value="1" />
|
||||
// Retrieval info: <generic name="gui_actual_output_clock_frequency17" value="0 MHz" />
|
||||
// Retrieval info: <generic name="gui_ps_units17" value="ps" />
|
||||
// Retrieval info: <generic name="gui_phase_shift17" value="0" />
|
||||
// Retrieval info: <generic name="gui_phase_shift_deg17" value="0.0" />
|
||||
// Retrieval info: <generic name="gui_actual_phase_shift17" value="0" />
|
||||
// Retrieval info: <generic name="gui_duty_cycle17" value="50" />
|
||||
// Retrieval info: <generic name="gui_pll_auto_reset" value="Off" />
|
||||
// Retrieval info: <generic name="gui_pll_bandwidth_preset" value="Auto" />
|
||||
// Retrieval info: <generic name="gui_en_reconf" value="false" />
|
||||
// Retrieval info: <generic name="gui_en_dps_ports" value="false" />
|
||||
// Retrieval info: <generic name="gui_en_phout_ports" value="false" />
|
||||
// Retrieval info: <generic name="gui_phout_division" value="1" />
|
||||
// Retrieval info: <generic name="gui_mif_generate" value="false" />
|
||||
// Retrieval info: <generic name="gui_enable_mif_dps" value="false" />
|
||||
// Retrieval info: <generic name="gui_dps_cntr" value="C0" />
|
||||
// Retrieval info: <generic name="gui_dps_num" value="1" />
|
||||
// Retrieval info: <generic name="gui_dps_dir" value="Positive" />
|
||||
// Retrieval info: <generic name="gui_refclk_switch" value="false" />
|
||||
// Retrieval info: <generic name="gui_refclk1_frequency" value="100.0" />
|
||||
// Retrieval info: <generic name="gui_switchover_mode" value="Automatic Switchover" />
|
||||
// Retrieval info: <generic name="gui_switchover_delay" value="0" />
|
||||
// Retrieval info: <generic name="gui_active_clk" value="false" />
|
||||
// Retrieval info: <generic name="gui_clk_bad" value="false" />
|
||||
// Retrieval info: <generic name="gui_enable_cascade_out" value="false" />
|
||||
// Retrieval info: <generic name="gui_cascade_outclk_index" value="0" />
|
||||
// Retrieval info: <generic name="gui_enable_cascade_in" value="false" />
|
||||
// Retrieval info: <generic name="gui_pll_cascading_mode" value="Create an adjpllin signal to connect with an upstream PLL" />
|
||||
// Retrieval info: </instance>
|
||||
// IPFS_FILES : pll.vo
|
||||
// RELATED_FILES: pll.v, pll_0002.v
|
||||
@@ -0,0 +1,4 @@
|
||||
set_instance_assignment -name PLL_COMPENSATION_MODE DIRECT -to "*pll_0002*|altera_pll:altera_pll_i*|*"
|
||||
|
||||
set_instance_assignment -name PLL_AUTO_RESET OFF -to "*pll_0002*|altera_pll:altera_pll_i*|*"
|
||||
set_instance_assignment -name PLL_BANDWIDTH_PRESET AUTO -to "*pll_0002*|altera_pll:altera_pll_i*|*"
|
||||
@@ -0,0 +1,96 @@
|
||||
`timescale 1ns/10ps
|
||||
module pll_0002(
|
||||
|
||||
// interface 'refclk'
|
||||
input wire refclk,
|
||||
|
||||
// interface 'reset'
|
||||
input wire rst,
|
||||
|
||||
// interface 'outclk0'
|
||||
output wire outclk_0,
|
||||
|
||||
// interface 'outclk1'
|
||||
output wire outclk_1,
|
||||
|
||||
// interface 'outclk2'
|
||||
output wire outclk_2,
|
||||
|
||||
// interface 'outclk3'
|
||||
output wire outclk_3,
|
||||
|
||||
// interface 'locked'
|
||||
output wire locked
|
||||
);
|
||||
|
||||
altera_pll #(
|
||||
.fractional_vco_multiplier("false"),
|
||||
.reference_clock_frequency("50.0 MHz"),
|
||||
.operation_mode("direct"),
|
||||
.number_of_clocks(4),
|
||||
.output_clock_frequency0("114.545454 MHz"),
|
||||
.phase_shift0("0 ps"),
|
||||
.duty_cycle0(50),
|
||||
.output_clock_frequency1("57.272727 MHz"),
|
||||
.phase_shift1("0 ps"),
|
||||
.duty_cycle1(50),
|
||||
.output_clock_frequency2("28.636363 MHz"),
|
||||
.phase_shift2("0 ps"),
|
||||
.duty_cycle2(50),
|
||||
.output_clock_frequency3("14.318181 MHz"),
|
||||
.phase_shift3("0 ps"),
|
||||
.duty_cycle3(50),
|
||||
.output_clock_frequency4("0 MHz"),
|
||||
.phase_shift4("0 ps"),
|
||||
.duty_cycle4(50),
|
||||
.output_clock_frequency5("0 MHz"),
|
||||
.phase_shift5("0 ps"),
|
||||
.duty_cycle5(50),
|
||||
.output_clock_frequency6("0 MHz"),
|
||||
.phase_shift6("0 ps"),
|
||||
.duty_cycle6(50),
|
||||
.output_clock_frequency7("0 MHz"),
|
||||
.phase_shift7("0 ps"),
|
||||
.duty_cycle7(50),
|
||||
.output_clock_frequency8("0 MHz"),
|
||||
.phase_shift8("0 ps"),
|
||||
.duty_cycle8(50),
|
||||
.output_clock_frequency9("0 MHz"),
|
||||
.phase_shift9("0 ps"),
|
||||
.duty_cycle9(50),
|
||||
.output_clock_frequency10("0 MHz"),
|
||||
.phase_shift10("0 ps"),
|
||||
.duty_cycle10(50),
|
||||
.output_clock_frequency11("0 MHz"),
|
||||
.phase_shift11("0 ps"),
|
||||
.duty_cycle11(50),
|
||||
.output_clock_frequency12("0 MHz"),
|
||||
.phase_shift12("0 ps"),
|
||||
.duty_cycle12(50),
|
||||
.output_clock_frequency13("0 MHz"),
|
||||
.phase_shift13("0 ps"),
|
||||
.duty_cycle13(50),
|
||||
.output_clock_frequency14("0 MHz"),
|
||||
.phase_shift14("0 ps"),
|
||||
.duty_cycle14(50),
|
||||
.output_clock_frequency15("0 MHz"),
|
||||
.phase_shift15("0 ps"),
|
||||
.duty_cycle15(50),
|
||||
.output_clock_frequency16("0 MHz"),
|
||||
.phase_shift16("0 ps"),
|
||||
.duty_cycle16(50),
|
||||
.output_clock_frequency17("0 MHz"),
|
||||
.phase_shift17("0 ps"),
|
||||
.duty_cycle17(50),
|
||||
.pll_type("General"),
|
||||
.pll_subtype("General")
|
||||
) altera_pll_i (
|
||||
.rst (rst),
|
||||
.outclk ({outclk_3, outclk_2, outclk_1, outclk_0}),
|
||||
.locked (locked),
|
||||
.fboutclk ( ),
|
||||
.fbclk (1'b0),
|
||||
.refclk (refclk)
|
||||
);
|
||||
endmodule
|
||||
|
||||
@@ -0,0 +1,549 @@
|
||||
-- generated with romgen v3.0 by MikeJ
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity coco3_Char_ROM is
|
||||
port (
|
||||
CLK : in std_logic;
|
||||
ADDR_R : in std_logic_vector(11 downto 0);
|
||||
ADDR_W : in std_logic_vector(11 downto 0);
|
||||
WE : in std_logic;
|
||||
DATA_R : out std_logic_vector(7 downto 0);
|
||||
DATA_W : in std_logic_vector(7 downto 0)
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of coco3_Char_ROM is
|
||||
|
||||
|
||||
type RAM_ARRAY is array(0 to 4095) of std_logic_vector(7 downto 0);
|
||||
signal RAM : RAM_ARRAY := (
|
||||
x"1C",x"22",x"20",x"20",x"20",x"22",x"1C",x"08", -- 0x0000
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0008
|
||||
x"22",x"00",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0010
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0018
|
||||
x"04",x"08",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0020
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0028
|
||||
x"08",x"14",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0030
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0038
|
||||
x"14",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0040
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0048
|
||||
x"10",x"08",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0050
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0058
|
||||
x"08",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0060
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0068
|
||||
x"00",x"00",x"1C",x"22",x"20",x"22",x"1C",x"08", -- 0x0070
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0078
|
||||
x"08",x"14",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0080
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0088
|
||||
x"14",x"00",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0090
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0098
|
||||
x"10",x"08",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x00A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00A8
|
||||
x"14",x"00",x"18",x"08",x"08",x"08",x"1C",x"00", -- 0x00B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00B8
|
||||
x"08",x"14",x"00",x"18",x"08",x"08",x"1C",x"00", -- 0x00C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00C8
|
||||
x"00",x"0C",x"12",x"1C",x"12",x"12",x"1C",x"20", -- 0x00D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00D8
|
||||
x"22",x"08",x"14",x"22",x"3E",x"22",x"22",x"00", -- 0x00E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00E8
|
||||
x"08",x"08",x"14",x"22",x"3E",x"22",x"22",x"00", -- 0x00F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00F8
|
||||
x"04",x"08",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0100
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0108
|
||||
x"00",x"00",x"34",x"0A",x"1E",x"28",x"1E",x"00", -- 0x0110
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0118
|
||||
x"1E",x"28",x"28",x"3C",x"28",x"28",x"2C",x"00", -- 0x0120
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0128
|
||||
x"08",x"14",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0130
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0138
|
||||
x"14",x"00",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0140
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0148
|
||||
x"00",x"00",x"1C",x"26",x"2E",x"32",x"1C",x"00", -- 0x0150
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0158
|
||||
x"08",x"14",x"00",x"22",x"22",x"26",x"1A",x"00", -- 0x0160
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0168
|
||||
x"10",x"08",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0170
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0178
|
||||
x"1C",x"26",x"2A",x"2A",x"2A",x"32",x"1C",x"00", -- 0x0180
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0188
|
||||
x"22",x"1C",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x0190
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0198
|
||||
x"14",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x01A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01A8
|
||||
x"1C",x"20",x"1C",x"22",x"1C",x"02",x"1C",x"00", -- 0x01B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01B8
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"0A",x"3C",x"00", -- 0x01C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01C8
|
||||
x"08",x"08",x"3E",x"08",x"08",x"00",x"3E",x"00", -- 0x01D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01D8
|
||||
x"04",x"0A",x"04",x"00",x"00",x"00",x"00",x"00", -- 0x01E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01E8
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"08",x"28",x"10", -- 0x01F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01F8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0200
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0208
|
||||
x"08",x"08",x"08",x"08",x"08",x"00",x"08",x"00", -- 0x0210
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0218
|
||||
x"14",x"14",x"14",x"00",x"00",x"00",x"00",x"00", -- 0x0220
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0228
|
||||
x"14",x"14",x"3E",x"14",x"3E",x"14",x"14",x"00", -- 0x0230
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0238
|
||||
x"08",x"1E",x"28",x"1C",x"0A",x"3C",x"08",x"00", -- 0x0240
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0248
|
||||
x"32",x"32",x"04",x"08",x"10",x"26",x"26",x"00", -- 0x0250
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0258
|
||||
x"10",x"28",x"28",x"10",x"2A",x"24",x"1A",x"00", -- 0x0260
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0268
|
||||
x"08",x"08",x"10",x"00",x"00",x"00",x"00",x"00", -- 0x0270
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0278
|
||||
x"08",x"10",x"20",x"20",x"20",x"10",x"08",x"00", -- 0x0280
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0288
|
||||
x"08",x"04",x"02",x"02",x"02",x"04",x"08",x"00", -- 0x0290
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0298
|
||||
x"00",x"08",x"2A",x"1C",x"1C",x"2A",x"08",x"00", -- 0x02A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02A8
|
||||
x"00",x"08",x"08",x"3E",x"08",x"08",x"00",x"00", -- 0x02B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02B8
|
||||
x"00",x"00",x"00",x"00",x"00",x"08",x"08",x"10", -- 0x02C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02C8
|
||||
x"00",x"00",x"00",x"3E",x"00",x"00",x"00",x"00", -- 0x02D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02D8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"08",x"00", -- 0x02E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02E8
|
||||
x"00",x"02",x"04",x"08",x"10",x"20",x"00",x"00", -- 0x02F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02F8
|
||||
x"1C",x"22",x"26",x"2A",x"32",x"22",x"1C",x"00", -- 0x0300
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0308
|
||||
x"08",x"18",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x0310
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0318
|
||||
x"1C",x"22",x"02",x"1C",x"20",x"20",x"3E",x"00", -- 0x0320
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0328
|
||||
x"1C",x"22",x"02",x"04",x"02",x"22",x"1C",x"00", -- 0x0330
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0338
|
||||
x"04",x"0C",x"14",x"24",x"3E",x"04",x"04",x"00", -- 0x0340
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0348
|
||||
x"3E",x"20",x"3C",x"02",x"02",x"02",x"3C",x"00", -- 0x0350
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0358
|
||||
x"1C",x"20",x"20",x"3C",x"22",x"22",x"1C",x"00", -- 0x0360
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0368
|
||||
x"3E",x"02",x"04",x"08",x"10",x"20",x"20",x"00", -- 0x0370
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0378
|
||||
x"1C",x"22",x"22",x"1C",x"22",x"22",x"1C",x"00", -- 0x0380
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0388
|
||||
x"1C",x"22",x"22",x"1E",x"02",x"02",x"1C",x"00", -- 0x0390
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0398
|
||||
x"00",x"00",x"08",x"00",x"00",x"08",x"00",x"00", -- 0x03A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03A8
|
||||
x"00",x"00",x"08",x"00",x"00",x"08",x"08",x"10", -- 0x03B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03B8
|
||||
x"04",x"08",x"10",x"20",x"10",x"08",x"04",x"00", -- 0x03C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03C8
|
||||
x"00",x"00",x"3E",x"00",x"3E",x"00",x"00",x"00", -- 0x03D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03D8
|
||||
x"10",x"08",x"04",x"02",x"04",x"08",x"10",x"00", -- 0x03E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03E8
|
||||
x"1C",x"22",x"02",x"04",x"08",x"00",x"08",x"00", -- 0x03F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03F8
|
||||
x"1C",x"22",x"02",x"1A",x"2A",x"2A",x"1C",x"00", -- 0x0400
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0408
|
||||
x"08",x"14",x"22",x"22",x"3E",x"22",x"22",x"00", -- 0x0410
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0418
|
||||
x"3C",x"12",x"12",x"1C",x"12",x"12",x"3C",x"00", -- 0x0420
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0428
|
||||
x"1C",x"22",x"20",x"20",x"20",x"22",x"1C",x"00", -- 0x0430
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0438
|
||||
x"3C",x"12",x"12",x"12",x"12",x"12",x"3C",x"00", -- 0x0440
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0448
|
||||
x"3E",x"20",x"20",x"3C",x"20",x"20",x"3E",x"00", -- 0x0450
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0458
|
||||
x"3E",x"20",x"20",x"3C",x"20",x"20",x"20",x"00", -- 0x0460
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0468
|
||||
x"1E",x"20",x"20",x"26",x"22",x"22",x"1C",x"00", -- 0x0470
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0478
|
||||
x"22",x"22",x"22",x"3E",x"22",x"22",x"22",x"00", -- 0x0480
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0488
|
||||
x"1C",x"08",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x0490
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0498
|
||||
x"02",x"02",x"02",x"02",x"22",x"22",x"1C",x"00", -- 0x04A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04A8
|
||||
x"22",x"24",x"28",x"30",x"28",x"24",x"22",x"00", -- 0x04B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04B8
|
||||
x"20",x"20",x"20",x"20",x"20",x"20",x"3E",x"00", -- 0x04C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04C8
|
||||
x"22",x"36",x"2A",x"2A",x"22",x"22",x"22",x"00", -- 0x04D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04D8
|
||||
x"22",x"32",x"2A",x"26",x"22",x"22",x"22",x"00", -- 0x04E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04E8
|
||||
x"1C",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x04F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04F8
|
||||
x"3C",x"22",x"22",x"3C",x"20",x"20",x"20",x"00", -- 0x0500
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0508
|
||||
x"1C",x"22",x"22",x"22",x"2A",x"24",x"1A",x"00", -- 0x0510
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0518
|
||||
x"3C",x"22",x"22",x"3C",x"28",x"24",x"22",x"00", -- 0x0520
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0528
|
||||
x"1C",x"22",x"10",x"08",x"04",x"22",x"1C",x"00", -- 0x0530
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0538
|
||||
x"3E",x"08",x"08",x"08",x"08",x"08",x"08",x"00", -- 0x0540
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0548
|
||||
x"22",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x0550
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0558
|
||||
x"22",x"22",x"22",x"14",x"14",x"08",x"08",x"00", -- 0x0560
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0568
|
||||
x"22",x"22",x"22",x"2A",x"2A",x"36",x"22",x"00", -- 0x0570
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0578
|
||||
x"22",x"22",x"14",x"08",x"14",x"22",x"22",x"00", -- 0x0580
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0588
|
||||
x"22",x"22",x"14",x"08",x"08",x"08",x"08",x"00", -- 0x0590
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0598
|
||||
x"3E",x"02",x"04",x"08",x"10",x"20",x"3E",x"00", -- 0x05A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05A8
|
||||
x"38",x"20",x"20",x"20",x"20",x"20",x"38",x"00", -- 0x05B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05B8
|
||||
x"20",x"20",x"10",x"08",x"04",x"02",x"02",x"00", -- 0x05C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05C8
|
||||
x"0E",x"02",x"02",x"02",x"02",x"02",x"0E",x"00", -- 0x05D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05D8
|
||||
x"08",x"1C",x"2A",x"08",x"08",x"08",x"08",x"00", -- 0x05E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05E8
|
||||
x"00",x"08",x"10",x"3E",x"10",x"08",x"00",x"00", -- 0x05F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05F8
|
||||
x"08",x"14",x"22",x"00",x"00",x"00",x"00",x"00", -- 0x0600
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0608
|
||||
x"00",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0610
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0618
|
||||
x"20",x"20",x"2C",x"32",x"22",x"32",x"2C",x"00", -- 0x0620
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0628
|
||||
x"00",x"00",x"1C",x"22",x"20",x"22",x"1C",x"00", -- 0x0630
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0638
|
||||
x"02",x"02",x"1A",x"26",x"22",x"26",x"1A",x"00", -- 0x0640
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0648
|
||||
x"00",x"00",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0650
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0658
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"08",x"08",x"00", -- 0x0660
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0668
|
||||
x"00",x"00",x"1A",x"26",x"26",x"1A",x"02",x"1C", -- 0x0670
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0678
|
||||
x"20",x"20",x"2C",x"32",x"22",x"22",x"22",x"00", -- 0x0680
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0688
|
||||
x"00",x"08",x"00",x"18",x"08",x"08",x"1C",x"00", -- 0x0690
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0698
|
||||
x"00",x"02",x"00",x"02",x"02",x"02",x"22",x"1C", -- 0x06A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06A8
|
||||
x"20",x"20",x"24",x"28",x"30",x"28",x"24",x"00", -- 0x06B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06B8
|
||||
x"18",x"08",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x06C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06C8
|
||||
x"00",x"00",x"14",x"2A",x"2A",x"2A",x"2A",x"00", -- 0x06D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06D8
|
||||
x"00",x"00",x"2C",x"32",x"22",x"22",x"22",x"00", -- 0x06E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06E8
|
||||
x"00",x"00",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x06F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06F8
|
||||
x"00",x"00",x"2C",x"32",x"32",x"2C",x"20",x"20", -- 0x0700
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0708
|
||||
x"00",x"00",x"1A",x"26",x"26",x"1A",x"02",x"02", -- 0x0710
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0718
|
||||
x"00",x"00",x"2C",x"32",x"20",x"20",x"20",x"00", -- 0x0720
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0728
|
||||
x"00",x"00",x"1E",x"20",x"1C",x"02",x"3C",x"00", -- 0x0730
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0738
|
||||
x"10",x"10",x"38",x"10",x"10",x"12",x"0C",x"00", -- 0x0740
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0748
|
||||
x"00",x"00",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0750
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0758
|
||||
x"00",x"00",x"22",x"22",x"22",x"14",x"08",x"00", -- 0x0760
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0768
|
||||
x"00",x"00",x"22",x"2A",x"2A",x"14",x"14",x"00", -- 0x0770
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0778
|
||||
x"00",x"00",x"22",x"14",x"08",x"14",x"22",x"00", -- 0x0780
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0788
|
||||
x"00",x"00",x"22",x"22",x"22",x"1E",x"02",x"1C", -- 0x0790
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0798
|
||||
x"00",x"00",x"3E",x"04",x"08",x"10",x"3E",x"00", -- 0x07A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07A8
|
||||
x"08",x"10",x"10",x"20",x"10",x"10",x"08",x"00", -- 0x07B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07B8
|
||||
x"08",x"08",x"08",x"00",x"08",x"08",x"08",x"00", -- 0x07C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07C8
|
||||
x"08",x"04",x"04",x"02",x"04",x"04",x"08",x"00", -- 0x07D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07D8
|
||||
x"10",x"2A",x"04",x"00",x"00",x"00",x"00",x"00", -- 0x07E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07E8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"3E",x"00", -- 0x07F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07F8
|
||||
|
||||
x"1C",x"22",x"20",x"20",x"20",x"22",x"1C",x"08", -- 0x0000
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0008
|
||||
x"22",x"00",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0010
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0018
|
||||
x"04",x"08",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0020
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0028
|
||||
x"08",x"14",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0030
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0038
|
||||
x"14",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0040
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0048
|
||||
x"10",x"08",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0050
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0058
|
||||
x"08",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0060
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0068
|
||||
x"00",x"00",x"1C",x"22",x"20",x"22",x"1C",x"08", -- 0x0070
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0078
|
||||
x"08",x"14",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0080
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0088
|
||||
x"14",x"00",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0090
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0098
|
||||
x"10",x"08",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x00A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00A8
|
||||
x"14",x"00",x"18",x"08",x"08",x"08",x"1C",x"00", -- 0x00B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00B8
|
||||
x"08",x"14",x"00",x"18",x"08",x"08",x"1C",x"00", -- 0x00C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00C8
|
||||
x"00",x"0C",x"12",x"1C",x"12",x"12",x"1C",x"20", -- 0x00D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00D8
|
||||
x"22",x"08",x"14",x"22",x"3E",x"22",x"22",x"00", -- 0x00E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00E8
|
||||
x"08",x"08",x"14",x"22",x"3E",x"22",x"22",x"00", -- 0x00F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x00F8
|
||||
x"04",x"08",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0100
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0108
|
||||
x"00",x"00",x"34",x"0A",x"1E",x"28",x"1E",x"00", -- 0x0110
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0118
|
||||
x"1E",x"28",x"28",x"3C",x"28",x"28",x"2C",x"00", -- 0x0120
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0128
|
||||
x"08",x"14",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0130
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0138
|
||||
x"14",x"00",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x0140
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0148
|
||||
x"00",x"00",x"1C",x"26",x"2E",x"32",x"1C",x"00", -- 0x0150
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0158
|
||||
x"08",x"14",x"00",x"22",x"22",x"26",x"1A",x"00", -- 0x0160
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0168
|
||||
x"10",x"08",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0170
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0178
|
||||
x"1C",x"26",x"2A",x"2A",x"2A",x"32",x"1C",x"00", -- 0x0180
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0188
|
||||
x"22",x"1C",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x0190
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0198
|
||||
x"14",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x01A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01A8
|
||||
x"1C",x"20",x"1C",x"22",x"1C",x"02",x"1C",x"00", -- 0x01B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01B8
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"0A",x"3C",x"00", -- 0x01C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01C8
|
||||
x"08",x"08",x"3E",x"08",x"08",x"00",x"3E",x"00", -- 0x01D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01D8
|
||||
x"04",x"0A",x"04",x"00",x"00",x"00",x"00",x"00", -- 0x01E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01E8
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"08",x"28",x"10", -- 0x01F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x01F8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0200
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0208
|
||||
x"08",x"08",x"08",x"08",x"08",x"00",x"08",x"00", -- 0x0210
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0218
|
||||
x"14",x"14",x"14",x"00",x"00",x"00",x"00",x"00", -- 0x0220
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0228
|
||||
x"14",x"14",x"3E",x"14",x"3E",x"14",x"14",x"00", -- 0x0230
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0238
|
||||
x"08",x"1E",x"28",x"1C",x"0A",x"3C",x"08",x"00", -- 0x0240
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0248
|
||||
x"32",x"32",x"04",x"08",x"10",x"26",x"26",x"00", -- 0x0250
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0258
|
||||
x"10",x"28",x"28",x"10",x"2A",x"24",x"1A",x"00", -- 0x0260
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0268
|
||||
x"08",x"08",x"10",x"00",x"00",x"00",x"00",x"00", -- 0x0270
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0278
|
||||
x"08",x"10",x"20",x"20",x"20",x"10",x"08",x"00", -- 0x0280
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0288
|
||||
x"08",x"04",x"02",x"02",x"02",x"04",x"08",x"00", -- 0x0290
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0298
|
||||
x"00",x"08",x"2A",x"1C",x"1C",x"2A",x"08",x"00", -- 0x02A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02A8
|
||||
x"00",x"08",x"08",x"3E",x"08",x"08",x"00",x"00", -- 0x02B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02B8
|
||||
x"00",x"00",x"00",x"00",x"00",x"08",x"08",x"10", -- 0x02C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02C8
|
||||
x"00",x"00",x"00",x"3E",x"00",x"00",x"00",x"00", -- 0x02D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02D8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"08",x"00", -- 0x02E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02E8
|
||||
x"00",x"02",x"04",x"08",x"10",x"20",x"00",x"00", -- 0x02F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x02F8
|
||||
x"1C",x"22",x"26",x"2A",x"32",x"22",x"1C",x"00", -- 0x0300
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0308
|
||||
x"08",x"18",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x0310
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0318
|
||||
x"1C",x"22",x"02",x"1C",x"20",x"20",x"3E",x"00", -- 0x0320
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0328
|
||||
x"1C",x"22",x"02",x"04",x"02",x"22",x"1C",x"00", -- 0x0330
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0338
|
||||
x"04",x"0C",x"14",x"24",x"3E",x"04",x"04",x"00", -- 0x0340
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0348
|
||||
x"3E",x"20",x"3C",x"02",x"02",x"02",x"3C",x"00", -- 0x0350
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0358
|
||||
x"1C",x"20",x"20",x"3C",x"22",x"22",x"1C",x"00", -- 0x0360
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0368
|
||||
x"3E",x"02",x"04",x"08",x"10",x"20",x"20",x"00", -- 0x0370
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0378
|
||||
x"1C",x"22",x"22",x"1C",x"22",x"22",x"1C",x"00", -- 0x0380
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0388
|
||||
x"1C",x"22",x"22",x"1E",x"02",x"02",x"1C",x"00", -- 0x0390
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0398
|
||||
x"00",x"00",x"08",x"00",x"00",x"08",x"00",x"00", -- 0x03A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03A8
|
||||
x"00",x"00",x"08",x"00",x"00",x"08",x"08",x"10", -- 0x03B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03B8
|
||||
x"04",x"08",x"10",x"20",x"10",x"08",x"04",x"00", -- 0x03C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03C8
|
||||
x"00",x"00",x"3E",x"00",x"3E",x"00",x"00",x"00", -- 0x03D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03D8
|
||||
x"10",x"08",x"04",x"02",x"04",x"08",x"10",x"00", -- 0x03E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03E8
|
||||
x"1C",x"22",x"02",x"04",x"08",x"00",x"08",x"00", -- 0x03F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x03F8
|
||||
x"1C",x"22",x"02",x"1A",x"2A",x"2A",x"1C",x"00", -- 0x0400
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0408
|
||||
x"08",x"14",x"22",x"22",x"3E",x"22",x"22",x"00", -- 0x0410
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0418
|
||||
x"3C",x"12",x"12",x"1C",x"12",x"12",x"3C",x"00", -- 0x0420
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0428
|
||||
x"1C",x"22",x"20",x"20",x"20",x"22",x"1C",x"00", -- 0x0430
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0438
|
||||
x"3C",x"12",x"12",x"12",x"12",x"12",x"3C",x"00", -- 0x0440
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0448
|
||||
x"3E",x"20",x"20",x"3C",x"20",x"20",x"3E",x"00", -- 0x0450
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0458
|
||||
x"3E",x"20",x"20",x"3C",x"20",x"20",x"20",x"00", -- 0x0460
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0468
|
||||
x"1E",x"20",x"20",x"26",x"22",x"22",x"1C",x"00", -- 0x0470
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0478
|
||||
x"22",x"22",x"22",x"3E",x"22",x"22",x"22",x"00", -- 0x0480
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0488
|
||||
x"1C",x"08",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x0490
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0498
|
||||
x"02",x"02",x"02",x"02",x"22",x"22",x"1C",x"00", -- 0x04A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04A8
|
||||
x"22",x"24",x"28",x"30",x"28",x"24",x"22",x"00", -- 0x04B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04B8
|
||||
x"20",x"20",x"20",x"20",x"20",x"20",x"3E",x"00", -- 0x04C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04C8
|
||||
x"22",x"36",x"2A",x"2A",x"22",x"22",x"22",x"00", -- 0x04D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04D8
|
||||
x"22",x"32",x"2A",x"26",x"22",x"22",x"22",x"00", -- 0x04E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04E8
|
||||
x"1C",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x04F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x04F8
|
||||
x"3C",x"22",x"22",x"3C",x"20",x"20",x"20",x"00", -- 0x0500
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0508
|
||||
x"1C",x"22",x"22",x"22",x"2A",x"24",x"1A",x"00", -- 0x0510
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0518
|
||||
x"3C",x"22",x"22",x"3C",x"28",x"24",x"22",x"00", -- 0x0520
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0528
|
||||
x"1C",x"22",x"10",x"08",x"04",x"22",x"1C",x"00", -- 0x0530
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0538
|
||||
x"3E",x"08",x"08",x"08",x"08",x"08",x"08",x"00", -- 0x0540
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0548
|
||||
x"22",x"22",x"22",x"22",x"22",x"22",x"1C",x"00", -- 0x0550
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0558
|
||||
x"22",x"22",x"22",x"14",x"14",x"08",x"08",x"00", -- 0x0560
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0568
|
||||
x"22",x"22",x"22",x"2A",x"2A",x"36",x"22",x"00", -- 0x0570
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0578
|
||||
x"22",x"22",x"14",x"08",x"14",x"22",x"22",x"00", -- 0x0580
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0588
|
||||
x"22",x"22",x"14",x"08",x"08",x"08",x"08",x"00", -- 0x0590
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0598
|
||||
x"3E",x"02",x"04",x"08",x"10",x"20",x"3E",x"00", -- 0x05A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05A8
|
||||
x"38",x"20",x"20",x"20",x"20",x"20",x"38",x"00", -- 0x05B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05B8
|
||||
x"20",x"20",x"10",x"08",x"04",x"02",x"02",x"00", -- 0x05C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05C8
|
||||
x"0E",x"02",x"02",x"02",x"02",x"02",x"0E",x"00", -- 0x05D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05D8
|
||||
x"08",x"1C",x"2A",x"08",x"08",x"08",x"08",x"00", -- 0x05E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05E8
|
||||
x"00",x"08",x"10",x"3E",x"10",x"08",x"00",x"00", -- 0x05F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x05F8
|
||||
x"08",x"14",x"22",x"00",x"00",x"00",x"00",x"00", -- 0x0600
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0608
|
||||
x"00",x"00",x"1C",x"02",x"1E",x"22",x"1E",x"00", -- 0x0610
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0618
|
||||
x"20",x"20",x"2C",x"32",x"22",x"32",x"2C",x"00", -- 0x0620
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0628
|
||||
x"00",x"00",x"1C",x"22",x"20",x"22",x"1C",x"00", -- 0x0630
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0638
|
||||
x"02",x"02",x"1A",x"26",x"22",x"26",x"1A",x"00", -- 0x0640
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0648
|
||||
x"00",x"00",x"1C",x"22",x"3E",x"20",x"1C",x"00", -- 0x0650
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0658
|
||||
x"04",x"0A",x"08",x"1C",x"08",x"08",x"08",x"00", -- 0x0660
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0668
|
||||
x"00",x"00",x"1A",x"26",x"26",x"1A",x"02",x"1C", -- 0x0670
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0678
|
||||
x"20",x"20",x"2C",x"32",x"22",x"22",x"22",x"00", -- 0x0680
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0688
|
||||
x"00",x"08",x"00",x"18",x"08",x"08",x"1C",x"00", -- 0x0690
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0698
|
||||
x"00",x"02",x"00",x"02",x"02",x"02",x"22",x"1C", -- 0x06A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06A8
|
||||
x"20",x"20",x"24",x"28",x"30",x"28",x"24",x"00", -- 0x06B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06B8
|
||||
x"18",x"08",x"08",x"08",x"08",x"08",x"1C",x"00", -- 0x06C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06C8
|
||||
x"00",x"00",x"14",x"2A",x"2A",x"2A",x"2A",x"00", -- 0x06D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06D8
|
||||
x"00",x"00",x"2C",x"32",x"22",x"22",x"22",x"00", -- 0x06E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06E8
|
||||
x"00",x"00",x"1C",x"22",x"22",x"22",x"1C",x"00", -- 0x06F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x06F8
|
||||
x"00",x"00",x"2C",x"32",x"32",x"2C",x"20",x"20", -- 0x0700
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0708
|
||||
x"00",x"00",x"1A",x"26",x"26",x"1A",x"02",x"02", -- 0x0710
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0718
|
||||
x"00",x"00",x"2C",x"32",x"20",x"20",x"20",x"00", -- 0x0720
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0728
|
||||
x"00",x"00",x"1E",x"20",x"1C",x"02",x"3C",x"00", -- 0x0730
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0738
|
||||
x"10",x"10",x"38",x"10",x"10",x"12",x"0C",x"00", -- 0x0740
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0748
|
||||
x"00",x"00",x"22",x"22",x"22",x"26",x"1A",x"00", -- 0x0750
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0758
|
||||
x"00",x"00",x"22",x"22",x"22",x"14",x"08",x"00", -- 0x0760
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0768
|
||||
x"00",x"00",x"22",x"2A",x"2A",x"14",x"14",x"00", -- 0x0770
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0778
|
||||
x"00",x"00",x"22",x"14",x"08",x"14",x"22",x"00", -- 0x0780
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0788
|
||||
x"00",x"00",x"22",x"22",x"22",x"1E",x"02",x"1C", -- 0x0790
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x0798
|
||||
x"00",x"00",x"3E",x"04",x"08",x"10",x"3E",x"00", -- 0x07A0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07A8
|
||||
x"08",x"10",x"10",x"20",x"10",x"10",x"08",x"00", -- 0x07B0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07B8
|
||||
x"08",x"08",x"08",x"00",x"08",x"08",x"08",x"00", -- 0x07C0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07C8
|
||||
x"08",x"04",x"04",x"02",x"04",x"04",x"08",x"00", -- 0x07D0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07D8
|
||||
x"10",x"2A",x"04",x"00",x"00",x"00",x"00",x"00", -- 0x07E0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00", -- 0x07E8
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"3E",x"00", -- 0x07F0
|
||||
x"00",x"00",x"00",x"00",x"00",x"00",x"00",x"00" -- 0x07F8
|
||||
|
||||
);
|
||||
|
||||
begin
|
||||
|
||||
p_rom : process
|
||||
begin
|
||||
wait until rising_edge(CLK);
|
||||
DATA_R <= RAM(to_integer(unsigned(ADDR_R)));
|
||||
if WE = '1' then
|
||||
RAM(to_integer(unsigned(ADDR_W))) <= DATA_W;
|
||||
end if;
|
||||
end process;
|
||||
end RTL;
|
||||
@@ -0,0 +1,100 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version
|
||||
-- File Name: coco_rom_32K.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- MISTer conversion work by Stan Hodge and Alan Steremberg
|
||||
|
||||
-- generated with romgen v3.0 by MikeJ
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_ROM_32K is
|
||||
port (
|
||||
-- Main CPU Port
|
||||
ADDR : in std_logic_vector(14 downto 0);
|
||||
DATA : out std_logic_vector(7 downto 0);
|
||||
|
||||
CLK : in std_logic;
|
||||
WR_ADDR : in std_logic_vector(14 downto 0);
|
||||
WR_DATA : in std_logic_vector(7 downto 0);
|
||||
WRITE : in std_logic
|
||||
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_ROM_32K is
|
||||
|
||||
|
||||
type ROM_ARRAY is array(0 to 32767) of std_logic_vector(7 downto 0);
|
||||
signal ROM : ROM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
dp_rom: process(CLK)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if WRITE = '1' then
|
||||
ROM(to_integer(unsigned(WR_ADDR))) <= WR_DATA;
|
||||
else
|
||||
DATA <= ROM(to_integer(unsigned(ADDR)));
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
end RTL;
|
||||
@@ -0,0 +1,101 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version Mister
|
||||
-- File Name: coco_rom_8K.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- MISTer conversion work by Stan Hodge and Alan Steremberg
|
||||
|
||||
-- generated with romgen v3.0 by MikeJ
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_ROM_8K is
|
||||
port (
|
||||
-- Main CPU Port
|
||||
ADDR : in std_logic_vector(12 downto 0);
|
||||
DATA : out std_logic_vector(7 downto 0);
|
||||
|
||||
CLK : in std_logic;
|
||||
WR_ADDR : in std_logic_vector(12 downto 0);
|
||||
WR_DATA : in std_logic_vector(7 downto 0);
|
||||
WRITE : in std_logic
|
||||
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_ROM_8K is
|
||||
|
||||
|
||||
type ROM_ARRAY is array(0 to 8191) of std_logic_vector(7 downto 0);
|
||||
signal ROM : ROM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
dp_rom: process(CLK)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if WRITE = '1' then
|
||||
ROM(to_integer(unsigned(WR_ADDR))) <= WR_DATA;
|
||||
else
|
||||
DATA <= ROM(to_integer(unsigned(ADDR)));
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
end RTL;
|
||||
@@ -0,0 +1,117 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version 4.0
|
||||
-- File Name: coco_rom_cart.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
-- Revision: 4.0 07/10/16
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- CPU section copyrighted by John Kent
|
||||
-- The FDC co-processor copyrighted Daniel Wallner.
|
||||
-- SDRAM Controller copyrighted by XESS Corp.
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
-- Version : 4.1.2
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
-- 1.0 Full Release
|
||||
-- 2.0 Partial Release
|
||||
-- 3.0 Full Release
|
||||
-- 3.0.0.1 Update to fix DoD interrupt issue
|
||||
-- 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
-- 4.0.X.X Full Release
|
||||
-- 4.1.2.X Fixed 6502 code for drivewire, removed timer, fixed 6551 baud
|
||||
-- rate (& DE2-115 compiler symbol)
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- DE2-115 Conversion by Stan Hodge
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- MISTer conversion work by Stan Hodge and Alan Steremberg
|
||||
|
||||
-- generated with romgen v3.0 by MikeJ
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_ROM_CART is
|
||||
port (
|
||||
-- Main CPU Port
|
||||
ADDR : in std_logic_vector(15 downto 0);
|
||||
DATA : out std_logic_vector(7 downto 0);
|
||||
|
||||
CLK : in std_logic;
|
||||
WR_ADDR : in std_logic_vector(15 downto 0);
|
||||
WR_DATA : in std_logic_vector(7 downto 0);
|
||||
WRITE : in std_logic
|
||||
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_ROM_CART is
|
||||
|
||||
|
||||
type ROM_ARRAY is array(0 to 65535) of std_logic_vector(7 downto 0);
|
||||
signal ROM : ROM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
dp_rom: process(CLK)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if WRITE = '1' then
|
||||
ROM(to_integer(unsigned(WR_ADDR))) <= WR_DATA;
|
||||
else
|
||||
DATA <= ROM(to_integer(unsigned(ADDR)));
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
end RTL;
|
||||
@@ -0,0 +1,333 @@
|
||||
//
|
||||
// sdram
|
||||
// Copyright (c) 2015-2019 Sorgelig
|
||||
//
|
||||
// Simplified version, for circular frame reading, without refresh.
|
||||
//
|
||||
// Modified by Stan Hodge Oct 2021.
|
||||
// Refresh added back in. 8 Bit write and 32 bit reads. Optionally
|
||||
// you may take the data from the 16 bit read port in 2 clock cycles.
|
||||
//
|
||||
// MISTer sdram Alliance AS4C32M16SB-7TIN (x2)
|
||||
// https://www.mouser.com/datasheet/2/12/512M%20SDRAM_%20B%20die_AS4C32M16SB-7TCN-7TIN-6TIN_Rev%201-1265391.pdf
|
||||
//
|
||||
// Some parts of SDRAM code used from project:
|
||||
// http://hamsterworks.co.nz/mediawiki/index.php/Simple_SDRAM_Controller
|
||||
//
|
||||
// This source file is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published
|
||||
// by the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This source file is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
module sdram_32r8w
|
||||
(
|
||||
input init, // reset to initialize RAM
|
||||
input clk, // clock ~100MHz
|
||||
|
||||
inout reg [15:0] SDRAM_DQ, // 16 bit bidirectional data bus
|
||||
output reg [12:0] SDRAM_A, // 13 bit multiplexed address bus
|
||||
output SDRAM_DQML, // two byte masks
|
||||
output SDRAM_DQMH, //
|
||||
output reg [1:0] SDRAM_BA, // two banks
|
||||
output SDRAM_nCS, // a single chip select
|
||||
output SDRAM_nWE, // write enable
|
||||
output SDRAM_nRAS, // row address select
|
||||
output SDRAM_nCAS, // columns address select
|
||||
output SDRAM_CKE, // clock enable
|
||||
output SDRAM_CLK, // clock for chip
|
||||
|
||||
// CPU R/W port
|
||||
input [24:0] sdram_cpu_addr, // 25 bit address for 8bit mode.
|
||||
// output reg [31:0] sdram_ldout, // data output to cpu
|
||||
output reg [15:0] sdram_dout, // data output to cpu [for both ports]
|
||||
input [7:0] sdram_cpu_din, // data input from cpu
|
||||
input sdram_cpu_req, // request
|
||||
input sdram_cpu_rnw, // 1 - read, 0 - write
|
||||
output reg sdram_cpu_ack, // 1 = ack
|
||||
output reg sdram_cpu_ready, // dout is valid. Ready to accept new read/write.
|
||||
|
||||
// Video R port
|
||||
input [24:0] sdram_vid_addr, // 25 bit A0=0.
|
||||
input sdram_vid_req, // request
|
||||
output reg sdram_vid_ack, // 1 = ack
|
||||
output reg sdram_vid_ready, // dout is valid. Ready to accept new read/write.
|
||||
|
||||
output reg sdram_busy // doing something...
|
||||
|
||||
);
|
||||
|
||||
assign SDRAM_nCS = 0; // It would appear from the schematics that this is a toggle if you want more than 64MB ram (full 128MB)
|
||||
assign SDRAM_nRAS = command[2];
|
||||
assign SDRAM_nCAS = command[1];
|
||||
assign SDRAM_nWE = command[0];
|
||||
assign SDRAM_CKE = 1;
|
||||
assign {SDRAM_DQMH,SDRAM_DQML} = SDRAM_A[12:11]; // This works because A12 & A11 are unused. This makes it convenient to assert only during CAS
|
||||
assign sdram_dout = dq_reg;
|
||||
|
||||
// Burst length = 4
|
||||
localparam BURST_LENGTH = 2;
|
||||
localparam BURST_CODE = (BURST_LENGTH == 8) ? 3'b011 : (BURST_LENGTH == 4) ? 3'b010 : (BURST_LENGTH == 2) ? 3'b001 : 3'b000; // 000=1, 001=2, 010=4, 011=8
|
||||
localparam ACCESS_TYPE = 1'b0; // 0=sequential, 1=interleaved
|
||||
localparam CAS_LATENCY = 3'd3; // 2 for < 100MHz, 3 for >100MHz
|
||||
localparam OP_MODE = 2'b00; // only 00 (standard operation) allowed
|
||||
localparam NO_WRITE_BURST = 1'b1; // 0= write burst enabled, 1=only single access write
|
||||
localparam MODE = {3'b000, NO_WRITE_BURST, OP_MODE, CAS_LATENCY, ACCESS_TYPE, BURST_CODE};
|
||||
|
||||
localparam sdram_startup_cycles= 14'd12100;// 100us, plus a little more, @ 100MHz
|
||||
localparam startup_refresh_max = 14'b11111111111111;
|
||||
//localparam cycles_per_refresh = 14'd780; // (64000*100)/8192-1 Calc'd as (64ms @ 100MHz)/8192 rose
|
||||
localparam cycles_per_refresh = 14'd890; // (64000*100)/8192-1 Calc'd as (64ms @ 114.560MHz)/8192 rose (act 895)
|
||||
|
||||
// SDRAM commands
|
||||
wire [2:0] CMD_NOP = 3'b111;
|
||||
wire [2:0] CMD_ACTIVE = 3'b011;
|
||||
wire [2:0] CMD_READ = 3'b101;
|
||||
wire [2:0] CMD_WRITE = 3'b100;
|
||||
wire [2:0] CMD_PRECHARGE = 3'b010;
|
||||
wire [2:0] CMD_AUTO_REFRESH = 3'b001;
|
||||
wire [2:0] CMD_LOAD_MODE = 3'b000;
|
||||
|
||||
reg [13:0] refresh_count = startup_refresh_max - sdram_startup_cycles;
|
||||
reg [2:0] command;
|
||||
|
||||
localparam STATE_STARTUP = 0;
|
||||
localparam STATE_WAIT = 1;
|
||||
localparam STATE_WAIT1 = 2;
|
||||
localparam STATE_RW1 = 3;
|
||||
localparam STATE_IDLE = 4;
|
||||
localparam STATE_DLY1 = 5;
|
||||
localparam STATE_DLY2 = 6;
|
||||
localparam STATE_IDLE_7 = 17;
|
||||
localparam STATE_IDLE_6 = 16;
|
||||
localparam STATE_IDLE_5 = 15;
|
||||
localparam STATE_IDLE_4 = 14;
|
||||
localparam STATE_IDLE_3 = 13;
|
||||
localparam STATE_IDLE_2 = 12;
|
||||
localparam STATE_IDLE_1 = 11;
|
||||
|
||||
reg [15:0] dq_reg;
|
||||
|
||||
always @(posedge clk) begin
|
||||
reg [CAS_LATENCY+BURST_LENGTH:0] data_cpu_ready_delay;
|
||||
reg [CAS_LATENCY+BURST_LENGTH:0] data_vid_ready_delay;
|
||||
|
||||
reg saved_wr;
|
||||
reg saved_vid;
|
||||
reg [12:0] cas_addr;
|
||||
reg [31:0] saved_data;
|
||||
reg [4:0] state = STATE_STARTUP;
|
||||
|
||||
refresh_count <= refresh_count + 1'b1;
|
||||
|
||||
data_vid_ready_delay[CAS_LATENCY+BURST_LENGTH] <= 0;
|
||||
|
||||
data_cpu_ready_delay[CAS_LATENCY+BURST_LENGTH] <= 0;
|
||||
|
||||
data_cpu_ready_delay <= data_cpu_ready_delay>>1;
|
||||
data_vid_ready_delay <= data_vid_ready_delay>>1;
|
||||
|
||||
dq_reg <= SDRAM_DQ;
|
||||
|
||||
// if(data_ready_delay[1]) sdram_ldout[15:00] <= dq_reg;
|
||||
// if(data_ready_delay[0]) sdram_ldout[31:16] <= dq_reg;
|
||||
|
||||
sdram_cpu_ready <= 1'b0;
|
||||
sdram_vid_ready <= 1'b0;
|
||||
|
||||
if (data_cpu_ready_delay[2]) sdram_cpu_ready <= 1'b1; // Data valid for the first 16 bits
|
||||
if (data_cpu_ready_delay[1]) sdram_busy <= 1'b0;
|
||||
|
||||
if (data_vid_ready_delay[2]) sdram_vid_ready <= 1'b1; // Data valid for the first 16 bits
|
||||
if (data_vid_ready_delay[1]) sdram_vid_ready <= 1'b1; // Data valid for the second 16 bits
|
||||
|
||||
if (data_vid_ready_delay[0]) sdram_busy <= 1'b0;
|
||||
|
||||
|
||||
SDRAM_DQ <= 16'bZ;
|
||||
|
||||
command <= CMD_NOP;
|
||||
|
||||
if (!sdram_cpu_req)
|
||||
sdram_cpu_ack <= 1'b0;
|
||||
|
||||
if (!sdram_vid_req)
|
||||
sdram_vid_ack <= 1'b0;
|
||||
|
||||
case (state)
|
||||
STATE_STARTUP: begin
|
||||
SDRAM_A <= 0;
|
||||
SDRAM_BA <= 0;
|
||||
sdram_cpu_ready <= 0; //not ready
|
||||
sdram_vid_ready <= 0; //not ready
|
||||
sdram_busy <= 1'b1;
|
||||
|
||||
// All the commands during the startup are NOPS, except these
|
||||
if (refresh_count == startup_refresh_max-31) begin
|
||||
// ensure all rows are closed
|
||||
command <= CMD_PRECHARGE;
|
||||
SDRAM_A[10] <= 1; // all banks
|
||||
SDRAM_BA <= 2'b00;
|
||||
end
|
||||
if (refresh_count == startup_refresh_max-23) begin
|
||||
// these refreshes need to be at least tREF (66ns) apart
|
||||
command <= CMD_AUTO_REFRESH;
|
||||
end
|
||||
if (refresh_count == startup_refresh_max-15) begin
|
||||
command <= CMD_AUTO_REFRESH;
|
||||
end
|
||||
if (refresh_count == startup_refresh_max-7) begin
|
||||
// Now load the mode register
|
||||
command <= CMD_LOAD_MODE;
|
||||
SDRAM_A <= MODE;
|
||||
end
|
||||
|
||||
if (!refresh_count) begin
|
||||
state <= STATE_IDLE;
|
||||
sdram_busy <= 1'b0;
|
||||
refresh_count <= 0;
|
||||
end
|
||||
end
|
||||
|
||||
STATE_IDLE_7: state <= STATE_IDLE_6;
|
||||
STATE_IDLE_6: state <= STATE_IDLE_5;
|
||||
STATE_IDLE_5: state <= STATE_IDLE_4;
|
||||
STATE_IDLE_4: state <= STATE_IDLE_3;
|
||||
STATE_IDLE_3: state <= STATE_IDLE_2;
|
||||
STATE_IDLE_2: state <= STATE_IDLE_1;
|
||||
STATE_IDLE_1: begin
|
||||
state <= STATE_IDLE;
|
||||
sdram_busy <= 1'b0;
|
||||
// mask possible refresh to reduce colliding.
|
||||
if(refresh_count > cycles_per_refresh) begin
|
||||
state <= STATE_IDLE_7;
|
||||
command <= CMD_AUTO_REFRESH;
|
||||
refresh_count <= 0;
|
||||
sdram_busy <= 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
STATE_IDLE: begin
|
||||
saved_vid <= 1'b0;
|
||||
if(refresh_count > (cycles_per_refresh<<1))
|
||||
begin
|
||||
state <= STATE_IDLE_1;
|
||||
sdram_busy <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if(sdram_cpu_req & !sdram_cpu_ack) // request has to go away after ready=0
|
||||
begin
|
||||
// fix byte writes [no new command until data is actually written]
|
||||
if (~sdram_cpu_rnw)
|
||||
{cas_addr[12:9],SDRAM_BA,SDRAM_A,cas_addr[8:0]} <= {~sdram_cpu_addr[0], sdram_cpu_addr[0], 2'b10, sdram_cpu_addr[24:1]}; // Bytes by A0 for writes
|
||||
else
|
||||
{cas_addr[12:9],SDRAM_BA,SDRAM_A,cas_addr[8:0]} <= {2'b00, 2'b10, sdram_cpu_addr[24:1]}; // No bytes for reads...
|
||||
|
||||
saved_data <= {sdram_cpu_din, sdram_cpu_din};
|
||||
saved_wr <= ~sdram_cpu_rnw;
|
||||
command <= CMD_ACTIVE;
|
||||
state <= STATE_WAIT;
|
||||
sdram_busy <= 1'b1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (sdram_vid_req)
|
||||
begin
|
||||
{cas_addr[12:9],SDRAM_BA,SDRAM_A,cas_addr[8:0]} <= {2'b00, 2'b10, sdram_vid_addr[24:1]}; // No bytes for reads...
|
||||
command <= CMD_ACTIVE;
|
||||
saved_vid <= 1'b1;
|
||||
saved_wr <= 1'b0;
|
||||
sdram_busy <= 1'b1;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
STATE_WAIT: state <= STATE_WAIT1;
|
||||
STATE_WAIT1: begin
|
||||
if (saved_wr)
|
||||
begin
|
||||
if ((data_vid_ready_delay[5:1] == 5'b00000) && (data_cpu_ready_delay[5:1] == 5'b00000))
|
||||
state <= STATE_RW1; // added for clk > 100Mhz
|
||||
end
|
||||
else
|
||||
state <= STATE_RW1; // added for clk > 100Mhz
|
||||
end
|
||||
|
||||
STATE_RW1: begin
|
||||
SDRAM_A <= cas_addr;
|
||||
if (saved_vid)
|
||||
sdram_vid_ack <= 1'b1;
|
||||
else
|
||||
sdram_cpu_ack <= 1'b1;
|
||||
|
||||
if(saved_wr) begin
|
||||
command <= CMD_WRITE;
|
||||
SDRAM_DQ <= saved_data[15:0];
|
||||
// state <= STATE_IDLE;
|
||||
state <= STATE_DLY1;
|
||||
sdram_cpu_ready <= 1'b1; // write done
|
||||
sdram_busy <= 1'b0;
|
||||
end
|
||||
else begin
|
||||
command <= CMD_READ;
|
||||
state <= STATE_IDLE;
|
||||
if (saved_vid)
|
||||
begin
|
||||
data_vid_ready_delay[CAS_LATENCY+BURST_LENGTH] <= 1;
|
||||
state <= STATE_DLY1;
|
||||
end
|
||||
else
|
||||
data_cpu_ready_delay[CAS_LATENCY+BURST_LENGTH] <= 1;
|
||||
state <= STATE_DLY1;
|
||||
end
|
||||
end
|
||||
STATE_DLY1:
|
||||
state <= STATE_DLY2;
|
||||
STATE_DLY2:
|
||||
state <= STATE_IDLE;
|
||||
endcase
|
||||
|
||||
if (init) begin
|
||||
sdram_cpu_ack <= 1'b0;
|
||||
sdram_vid_ack <= 1'b0;
|
||||
state <= STATE_STARTUP;
|
||||
refresh_count <= startup_refresh_max - sdram_startup_cycles;
|
||||
end
|
||||
end
|
||||
|
||||
altddio_out
|
||||
#(
|
||||
.extend_oe_disable("OFF"),
|
||||
.intended_device_family("Cyclone V"),
|
||||
.invert_output("OFF"),
|
||||
.lpm_hint("UNUSED"),
|
||||
.lpm_type("altddio_out"),
|
||||
.oe_reg("UNREGISTERED"),
|
||||
.power_up_high("OFF"),
|
||||
.width(1)
|
||||
)
|
||||
sdramclk_ddr
|
||||
(
|
||||
.datain_h(1'b0),
|
||||
.datain_l(1'b1),
|
||||
.outclock(clk),
|
||||
.dataout(SDRAM_CLK),
|
||||
.aclr(1'b0),
|
||||
.aset(1'b0),
|
||||
.oe(1'b1),
|
||||
.outclocken(1'b1),
|
||||
.sclr(1'b0),
|
||||
.sset(1'b0)
|
||||
);
|
||||
|
||||
endmodule
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
module square_gen(
|
||||
input clk,
|
||||
input Q,
|
||||
input start,
|
||||
input [7:0] din,
|
||||
output reg done,
|
||||
output dout
|
||||
);
|
||||
|
||||
parameter STP = 24'd90687;
|
||||
|
||||
reg [23:0] div;
|
||||
reg [2:0] nbit;
|
||||
reg [7:0] data;
|
||||
reg [1:0] cnt;
|
||||
reg en, pulse;
|
||||
|
||||
initial begin
|
||||
en = 0;
|
||||
nbit = 0;
|
||||
cnt = 0;
|
||||
div = 0;
|
||||
end
|
||||
|
||||
assign dout = data[0] ? ~cnt[0] : ~cnt[1];
|
||||
|
||||
reg q_r;
|
||||
|
||||
always @(posedge clk) begin
|
||||
if (Q==1 && q_r ==0) begin
|
||||
if (start) div <= 24'd0;
|
||||
else if (en) { pulse, div } <= div + STP;
|
||||
end
|
||||
q_r<=Q;
|
||||
end
|
||||
|
||||
|
||||
reg pulse_r,start_r;
|
||||
|
||||
always @(posedge clk) begin
|
||||
if ((pulse_r ==0 && pulse==1) || (start_r ==0 && start==1)) begin
|
||||
if (start) begin
|
||||
en <= 1'b1;
|
||||
done <= 1'b0;
|
||||
data <= din;
|
||||
end
|
||||
else if (en) begin
|
||||
cnt <= cnt + 2'd1;
|
||||
if ({ ~data[0], 1'b1 } == cnt) begin
|
||||
cnt <= 2'd0;
|
||||
nbit <= nbit + 3'd1;
|
||||
data <= { 1'b0, data[7:1] };
|
||||
if (nbit == 3'd7) begin
|
||||
en <= 1'b0;
|
||||
done <= 1'b1;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
pulse_r<=pulse;
|
||||
start_r<=start;
|
||||
end
|
||||
|
||||
endmodule
|
||||
@@ -0,0 +1,111 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version 4.0
|
||||
-- File Name: coco_ram.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA
|
||||
--
|
||||
-- Revision: 4.0 07/10/16
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- CPU section copyrighted by John Kent
|
||||
-- The FDC co-processor copyrighted Daniel Wallner.
|
||||
-- SDRAM Controller copyrighted by XESS Corp.
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
-- Version : 4.1.2
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
-- 1.0 Full Release
|
||||
-- 2.0 Partial Release
|
||||
-- 3.0 Full Release
|
||||
-- 3.0.0.1 Update to fix DoD interrupt issue
|
||||
-- 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
-- 4.0.X.X Full Release
|
||||
-- 4.1.2.X Fixed 6502 code for drivewire, removed timer, fixed 6551 baud
|
||||
-- rate (& DE2-115 compiler symbol)
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- DE2-115 Conversion by Stan Hodge
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- MISTer conversion work by Stan Hodge and Alan Steremberg
|
||||
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_SRAM is
|
||||
port (
|
||||
CLK : in std_logic;
|
||||
ADDR : in std_logic_vector(15 downto 0);
|
||||
R_W : in std_logic;
|
||||
DATA_I : in std_logic_vector(7 downto 0);
|
||||
DATA_O : out std_logic_vector(7 downto 0)
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_SRAM is
|
||||
|
||||
type SRAM_ARRAY is array(0 to 65535) of std_logic_vector(7 downto 0);
|
||||
signal SRAM : SRAM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
P_SRAM : process(CLK,ADDR,R_W,DATA_I)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if R_W = '0' then
|
||||
SRAM(to_integer(unsigned(ADDR))) <= DATA_I;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
DATA_O <= SRAM(to_integer(unsigned(ADDR)));
|
||||
|
||||
end RTL;
|
||||
@@ -0,0 +1,110 @@
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Project Name: CoCo3FPGA Version 5.x
|
||||
-- File Name: coco_vid_ram_buf.vhd
|
||||
--
|
||||
-- CoCo3 in an FPGA (for MISTer)
|
||||
--
|
||||
-- Revision: 4.0 07/10/16
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- CPU section copyrighted by John Kent
|
||||
--
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- Color Computer 3 compatible system on a chip
|
||||
--
|
||||
-- Version : 5.xxx
|
||||
--
|
||||
-- Copyright (c) 2008 Gary Becker ([email protected])
|
||||
--
|
||||
-- All rights reserved
|
||||
--
|
||||
-- Redistribution and use in source and synthezised forms, with or without
|
||||
-- modification, are permitted provided that the following conditions are met:
|
||||
--
|
||||
-- Redistributions of source code must retain the above copyright notice,
|
||||
-- this list of conditions and the following disclaimer.
|
||||
--
|
||||
-- Redistributions in synthesized form must reproduce the above copyright
|
||||
-- notice, this list of conditions and the following disclaimer in the
|
||||
-- documentation and/or other materials provided with the distribution.
|
||||
--
|
||||
-- Neither the name of the author nor the names of other contributors may
|
||||
-- be used to endorse or promote products derived from this software without
|
||||
-- specific prior written permission.
|
||||
--
|
||||
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
-- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
|
||||
-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
-- POSSIBILITY OF SUCH DAMAGE.
|
||||
--
|
||||
-- Please report bugs to the author, but before you do so, please
|
||||
-- make sure that this is not a derivative work and that
|
||||
-- you have the latest version of this file.
|
||||
--
|
||||
-- The latest version of this file can be found at:
|
||||
-- http://groups.yahoo.com/group/CoCo3FPGA
|
||||
--
|
||||
-- File history :
|
||||
--
|
||||
-- 1.0 Full Release
|
||||
-- 2.0 Partial Release
|
||||
-- 3.0 Full Release
|
||||
-- 3.0.0.1 Update to fix DoD interrupt issue
|
||||
-- 3.0.1.0 Update to fix 32/40 CoCO3 Text issue and add 2 Meg max memory
|
||||
-- 4.0.X.X Full Release
|
||||
-- 4.1.2.X Fixed 6502 code for drivewire, removed timer, fixed 6551 baud
|
||||
-- rate (& DE2-115 compiler symbol)
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- Gary Becker
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- DE2-115 Conversion by Stan Hodge
|
||||
-- [email protected]
|
||||
--//////////////////////////////////////////////////////////////////////////////
|
||||
-- MISTer conversion work by Stan Hodge and Alan Steremberg
|
||||
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.std_logic_unsigned.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity COCO_VID_RAM_BUF is
|
||||
port (
|
||||
CLK : in std_logic;
|
||||
ADDR_I : in std_logic_vector(8 downto 0);
|
||||
ADDR_O : in std_logic_vector(8 downto 0);
|
||||
WE : in std_logic;
|
||||
DATA_I : in std_logic_vector(15 downto 0);
|
||||
DATA_O : out std_logic_vector(15 downto 0)
|
||||
);
|
||||
end;
|
||||
|
||||
architecture RTL of COCO_VID_RAM_BUF is
|
||||
|
||||
type SRAM_ARRAY is array(0 to 511) of std_logic_vector(15 downto 0);
|
||||
signal SRAM : SRAM_ARRAY;
|
||||
|
||||
begin
|
||||
|
||||
VID_RAM_BUF : process(CLK,ADDR_I,WE,DATA_I)
|
||||
begin
|
||||
if CLK'event and CLK='1' then
|
||||
if WE = '1' then
|
||||
SRAM(to_integer(unsigned(ADDR_I))) <= DATA_I;
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
DATA_O <= SRAM(to_integer(unsigned(ADDR_O)));
|
||||
|
||||
end RTL;
|
||||
+921
@@ -0,0 +1,921 @@
|
||||
// ====================================================================
|
||||
//
|
||||
// WD1793, WD1772, WD1773 replica (with write capability)
|
||||
//
|
||||
// Copyright (C) 2007,2008 Viacheslav Slavinsky
|
||||
// Copyright (C) 2016 Sorgelig
|
||||
//
|
||||
// Modifications for track size of 18 x 256 by Stan Hodge (SRH) 9/6/21
|
||||
// Modifications not to reset the track and sector registers by SRH 12/18/21
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify it
|
||||
// under the terms of the GNU General Public License as published by the Free
|
||||
// Software Foundation; either version 2 of the License, or (at your option)
|
||||
// any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
// more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License along
|
||||
// with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
//
|
||||
//============================================================================
|
||||
|
||||
module wd1793 #(parameter RWMODE=0, EDSK=1)
|
||||
(
|
||||
input clk_sys, // sys clock
|
||||
input ce, // ce at CPU clock rate
|
||||
input reset, // async reset
|
||||
input io_en,
|
||||
input rd, // i/o read
|
||||
input wr, // i/o write
|
||||
input [1:0] addr, // i/o port addr
|
||||
input [7:0] din, // i/o data in
|
||||
output [7:0] dout, // i/o data out
|
||||
output drq, // DMA request
|
||||
output intrq,
|
||||
output busy,
|
||||
|
||||
input wp, // write protect
|
||||
|
||||
input [2:0] size_code,
|
||||
input layout, // 0 = Track-Side-Sector, 1 - Side-Track-Sector
|
||||
input side,
|
||||
input ready,
|
||||
|
||||
// SD access (RWMODE == 1)
|
||||
input img_mounted, // signaling that new image has been mounted
|
||||
input [19:0] img_size, // size of image in bytes. 1MB MAX!
|
||||
output prepare,
|
||||
output[31:0] sd_lba,
|
||||
output reg sd_rd,
|
||||
output reg sd_wr,
|
||||
input sd_ack,
|
||||
input [8:0] sd_buff_addr,
|
||||
input [7:0] sd_buff_dout,
|
||||
output [7:0] sd_buff_din,
|
||||
input sd_buff_wr,
|
||||
|
||||
// RAM access (RWMODE == 0)
|
||||
input input_active,
|
||||
input [19:0] input_addr,
|
||||
input [7:0] input_data,
|
||||
input input_wr,
|
||||
output[19:0] buff_addr, // buffer RAM address
|
||||
output buff_read, // buffer RAM read enable
|
||||
input [7:0] buff_din // buffer RAM data input
|
||||
);
|
||||
|
||||
// Possible track configs:
|
||||
// 0: 26 x 128 = 3.3KB
|
||||
// 1: 16 x 256 = 4.0KB
|
||||
// 2: 9 x 512 = 4.5KB
|
||||
// 3: 5 x 1024 = 5.0KB
|
||||
// 4: 10 x 512 = 5.0KB
|
||||
// 5: 18 x 256 = 4.5KB (SRH)
|
||||
|
||||
assign dout = q;
|
||||
assign drq = s_drq;
|
||||
assign busy = s_busy;
|
||||
assign intrq = s_intrq;
|
||||
assign sd_lba = scan_active ? scan_addr[19:9] : buff_a[19:9] + sd_block;
|
||||
//assign sd_lba = scan_active ? scan_addr[19:9] : buff_a[19:8] + sd_block; (SRH) modified for 256 lba...[wrong]
|
||||
assign prepare = EDSK ? scan_active : img_mounted;
|
||||
assign buff_addr = {buff_a[19:9], 9'd0} + byte_addr;
|
||||
assign buff_read = ((addr == A_DATA) && buff_rd);
|
||||
|
||||
reg [7:0] sectors_per_track, edsk_spt = 0;
|
||||
wire [10:0] sector_size = 11'd128 << wd_size_code;
|
||||
reg [10:0] byte_addr;
|
||||
reg [19:0] buff_a;
|
||||
reg [1:0] wd_size_code;
|
||||
|
||||
wire [7:0] buff_dout;
|
||||
reg [1:0] sd_block = 0;
|
||||
reg format;
|
||||
generate
|
||||
if(RWMODE) begin
|
||||
wd1793_dpram sbuf
|
||||
(
|
||||
.clock(clk_sys),
|
||||
|
||||
.address_a({sd_block, sd_buff_addr}),
|
||||
.data_a(sd_buff_dout),
|
||||
.wren_a(sd_buff_wr & sd_ack),
|
||||
.q_a(sd_buff_din),
|
||||
|
||||
.address_b(scan_active ? {2'b00, scan_addr[8:0]} : byte_addr),
|
||||
.data_b(format ? 8'd0 : din),
|
||||
.wren_b(wre & buff_wr & (addr == A_DATA) & ~scan_active),
|
||||
.q_b(buff_dout)
|
||||
);
|
||||
reg buff_wr;
|
||||
end else begin
|
||||
assign buff_dout = 0;
|
||||
assign sd_buff_din = 0;
|
||||
end
|
||||
endgenerate
|
||||
|
||||
reg var_size = 0;
|
||||
reg [19:0] disk_size;
|
||||
reg layout_r;
|
||||
wire [19:0] hs = (layout_r & side) ? disk_size >> 1 : 20'd0;
|
||||
wire [7:0] dts = {disk_track[6:0], side} >> layout_r;
|
||||
always @(posedge clk_sys) begin
|
||||
case({var_size,size_code})
|
||||
0: buff_a <= hs + {{1'b0, dts, 4'b0000} + {dts, 3'b000} + {dts, 1'b0} + wdreg_sector - 1'd1, 7'd0};
|
||||
1: buff_a <= hs + {{dts, 4'b0000} + wdreg_sector - 1'd1, 8'd0};
|
||||
2: buff_a <= hs + {{dts, 3'b000} + dts + wdreg_sector - 1'd1, 9'd0};
|
||||
3: buff_a <= hs + {{dts, 2'b00} + dts + wdreg_sector - 1'd1, 10'd0};
|
||||
4: buff_a <= hs + {{dts, 3'b000} +{dts, 1'b0} + wdreg_sector - 1'd1, 9'd0};
|
||||
5: buff_a <= hs + {{dts, 4'b0000} +{dts, 1'b0} + wdreg_sector - 1'd1, 8'd0}; //(SRH)
|
||||
default: buff_a <= edsk_offset;
|
||||
endcase
|
||||
case({var_size,size_code})
|
||||
0: sectors_per_track <= 26;
|
||||
1: sectors_per_track <= 16;
|
||||
2: sectors_per_track <= 9;
|
||||
3: sectors_per_track <= 5;
|
||||
4: sectors_per_track <= 10;
|
||||
5: sectors_per_track <= 18; //(SRH)
|
||||
default: sectors_per_track <= edsk_spt;
|
||||
endcase
|
||||
case({var_size,size_code})
|
||||
0: wd_size_code <= 0;
|
||||
1: wd_size_code <= 1;
|
||||
2: wd_size_code <= 2;
|
||||
3: wd_size_code <= 3;
|
||||
4: wd_size_code <= 2;
|
||||
5: wd_size_code <= 1; //(SRH)
|
||||
default: wd_size_code <= edsk_sizecode;
|
||||
endcase
|
||||
end
|
||||
|
||||
reg [1:0] blk_size;
|
||||
always @* begin
|
||||
case(wd_size_code)
|
||||
0: blk_size = 0;
|
||||
1: blk_size = 0;
|
||||
2: blk_size = buff_a[8:0] ? 2'd1 : 2'd0;
|
||||
3: blk_size = buff_a[8:0] ? 2'd2 : 2'd1;
|
||||
endcase
|
||||
end
|
||||
|
||||
|
||||
// Register addresses
|
||||
localparam A_COMMAND = 0;
|
||||
localparam A_STATUS = 0;
|
||||
localparam A_TRACK = 1;
|
||||
localparam A_SECTOR = 2;
|
||||
localparam A_DATA = 3;
|
||||
|
||||
// States
|
||||
typedef enum
|
||||
{
|
||||
STATE_IDLE,
|
||||
|
||||
STATE_SEARCH,
|
||||
STATE_SEARCH_1,
|
||||
|
||||
STATE_WAIT_READ,
|
||||
STATE_WAIT_READ_1,
|
||||
STATE_WAIT_READ_2,
|
||||
|
||||
STATE_READ,
|
||||
STATE_READ_1,
|
||||
STATE_READ_2,
|
||||
STATE_READ_3,
|
||||
|
||||
STATE_WAIT_WRITE,
|
||||
STATE_WAIT_WRITE_1,
|
||||
STATE_WAIT_WRITE_2,
|
||||
|
||||
STATE_WRITE,
|
||||
STATE_WRITE_1,
|
||||
STATE_WRITE_2,
|
||||
|
||||
STATE_ABORT,
|
||||
STATE_WAIT,
|
||||
STATE_WAIT_2,
|
||||
STATE_ENDCOMMAND
|
||||
} io_state_t;
|
||||
|
||||
|
||||
// common status bits
|
||||
wire s_readonly = (wp | !RWMODE);
|
||||
reg s_crcerr;
|
||||
reg s_headloaded, s_seekerr, s_index; // mode 1
|
||||
reg s_lostdata, s_wrfault; // mode 2,3
|
||||
|
||||
// Command mode 0/1 for status register
|
||||
reg cmd_mode;
|
||||
|
||||
// allow write protect flag
|
||||
reg s_wpe;
|
||||
|
||||
// DRQ/BUSY are always going together
|
||||
reg [1:0] s_drq_busy;
|
||||
wire s_drq = s_drq_busy[1];
|
||||
wire s_busy = s_drq_busy[0];
|
||||
reg s_intrq;
|
||||
|
||||
reg [7:0] wdreg_track;
|
||||
reg [7:0] wdreg_sector;
|
||||
reg [7:0] wdreg_data;
|
||||
wire [7:0] wdreg_status = cmd_mode == 0 ?
|
||||
{~ready, s_readonly & s_wpe, s_headloaded, s_seekerr | ~ready, s_crcerr, !disk_track, s_index, s_busy}:
|
||||
{~ready, s_readonly & s_wpe, s_wrfault, s_seekerr | ~ready, s_crcerr, s_lostdata, s_drq, s_busy};
|
||||
|
||||
reg [7:0] read_addr[6];
|
||||
reg [7:0] q;
|
||||
always @* begin
|
||||
case (addr)
|
||||
A_STATUS: q = wdreg_status;
|
||||
A_TRACK: q = wdreg_track;
|
||||
A_SECTOR: q = wdreg_sector;
|
||||
A_DATA: q = (state == STATE_IDLE) ? wdreg_data : buff_rd ? (RWMODE ? buff_dout : buff_din) : read_addr[byte_addr[2:0]];
|
||||
endcase
|
||||
end
|
||||
|
||||
reg buff_rd;
|
||||
reg step_direction; // last step direction
|
||||
|
||||
reg [7:0] disk_track; // "real" heads position
|
||||
reg [10:0] data_length; // this many bytes to transfer during read/write ops
|
||||
io_state_t state = STATE_IDLE;
|
||||
|
||||
// Reusable expressions
|
||||
wire [7:0] next_track = (din[6] ? din[5] : step_direction) ? disk_track - 1'd1 : disk_track + 1'd1;
|
||||
wire [10:0] next_length = data_length - 1'b1;
|
||||
|
||||
// Watchdog
|
||||
reg watchdog_set;
|
||||
wire watchdog_bark = (wd_timer == 0);
|
||||
reg [15:0] wd_timer;
|
||||
always @(posedge clk_sys) begin
|
||||
if(ce) begin
|
||||
if(watchdog_set) wd_timer <= 4096;
|
||||
else if(wd_timer != 0) wd_timer <= wd_timer - 1'b1;
|
||||
end
|
||||
end
|
||||
|
||||
always @(posedge clk_sys) begin
|
||||
reg [23:0] cnt;
|
||||
if(ce) begin
|
||||
if(ready) begin
|
||||
if(cnt) cnt <= cnt - 1'b1;
|
||||
// else cnt <= 35000;
|
||||
else cnt <= 24'd1718400;
|
||||
end else cnt <= 0;
|
||||
s_index <= (cnt < 24'd1000);
|
||||
end
|
||||
end
|
||||
|
||||
wire rde = rd & io_en;
|
||||
wire wre = wr & io_en;
|
||||
always @(posedge clk_sys) begin
|
||||
reg old_wr, old_rd;
|
||||
|
||||
reg [2:0] cur_addr;
|
||||
reg read_data;
|
||||
reg write_data;
|
||||
reg rw_type;
|
||||
integer wait_time;
|
||||
reg [3:0] read_timer;
|
||||
reg [9:0] seektimer;
|
||||
reg [7:0] ra_sector;
|
||||
reg multisector;
|
||||
reg write;
|
||||
reg [5:0] ack;
|
||||
reg sd_busy;
|
||||
reg old_mounted;
|
||||
reg [3:0] scan_state;
|
||||
reg [1:0] scan_cnt;
|
||||
reg [1:0] blk_max;
|
||||
|
||||
if(RWMODE) begin
|
||||
old_mounted <= img_mounted;
|
||||
if(old_mounted && ~img_mounted) begin
|
||||
if(EDSK) begin
|
||||
scan_active<= 1;
|
||||
scan_addr <= 0;
|
||||
scan_state <= 0;
|
||||
scan_wr <= 0;
|
||||
sd_block <= 0;
|
||||
end
|
||||
disk_size <= img_size[19:0];
|
||||
layout_r <= layout;
|
||||
end
|
||||
end else begin
|
||||
scan_active <= input_active;
|
||||
scan_addr <= input_addr;
|
||||
scan_wr <= input_wr;
|
||||
if(scan_active & ~input_active) begin
|
||||
disk_size <= input_addr + 1'd1;
|
||||
layout_r <= layout;
|
||||
end
|
||||
end
|
||||
|
||||
if(reset & ~scan_active) begin
|
||||
read_data <= 0;
|
||||
write_data <= 0;
|
||||
multisector <= 0;
|
||||
step_direction <= 0;
|
||||
// disk_track <= 0;
|
||||
// wdreg_track <= 0;
|
||||
// wdreg_sector <= 0;
|
||||
wdreg_data <= 0;
|
||||
data_length <= 0;
|
||||
byte_addr <=0;
|
||||
buff_rd <= 0;
|
||||
if(RWMODE) buff_wr <= 0;
|
||||
state <= STATE_IDLE;
|
||||
cmd_mode <= 0;
|
||||
s_wpe <= 1;
|
||||
{s_headloaded, s_seekerr, s_crcerr, s_intrq} <= 0;
|
||||
{s_wrfault, s_lostdata} <= 0;
|
||||
s_drq_busy <= 0;
|
||||
watchdog_set <= 0;
|
||||
seektimer <= 'h3FF;
|
||||
{ack, sd_wr, sd_rd, sd_busy} <= 0;
|
||||
ra_sector <= 1;
|
||||
end else if(ce) begin
|
||||
|
||||
ack <= {ack[4:0], sd_ack};
|
||||
if(ack[5:4] == 'b01) {sd_rd,sd_wr} <= 0;
|
||||
if(ack[5:4] == 'b10) sd_busy <= 0;
|
||||
|
||||
if(RWMODE & scan_active) begin
|
||||
if(scan_addr >= img_size) scan_active <= 0;
|
||||
else begin
|
||||
case(scan_state)
|
||||
0: begin
|
||||
sd_rd <= 1;
|
||||
sd_busy <= 1;
|
||||
scan_wr <= 0;
|
||||
scan_state <= 1;
|
||||
end
|
||||
1: if(!sd_busy) begin
|
||||
scan_wr <= 1;
|
||||
scan_cnt <= 1;
|
||||
scan_state <= 2;
|
||||
end
|
||||
2: begin
|
||||
scan_cnt <= scan_cnt + 1'd1;
|
||||
if(!scan_cnt) begin
|
||||
scan_wr <= ~scan_wr;
|
||||
if(scan_wr) begin
|
||||
scan_addr <= scan_addr + 1'b1;
|
||||
if(&scan_addr[8:0]) begin
|
||||
scan_active <= var_size;
|
||||
scan_state <= 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
||||
old_wr <=wre;
|
||||
old_rd <=rde;
|
||||
|
||||
if((!old_rd && rde) || (!old_wr && wre)) cur_addr <= addr;
|
||||
|
||||
//Register read operations
|
||||
if(old_rd && !rde && (cur_addr == A_STATUS)) s_intrq <= 0;
|
||||
|
||||
//end of data reading
|
||||
if(old_rd && !rde && (cur_addr == A_DATA)) read_data <=1;
|
||||
|
||||
//end of data writing
|
||||
if(old_wr && !wre && (cur_addr == A_DATA)) write_data <=1;
|
||||
|
||||
case (state)
|
||||
/* Idle state or buffer to host transfer */
|
||||
STATE_IDLE:; // do nothing
|
||||
|
||||
STATE_SEARCH:
|
||||
begin
|
||||
if(!ready) begin
|
||||
s_seekerr <= 1;
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end else begin
|
||||
seektimer <= seektimer - 1'b1;
|
||||
if(!seektimer) begin
|
||||
byte_addr <= 0;
|
||||
if(var_size) begin
|
||||
if(~format) edsk_addr <= edsk_start;
|
||||
if(EDSK) spt_addr <= (side ? spt_size>>1 : 8'd0) + disk_track;
|
||||
state <= STATE_SEARCH_1;
|
||||
end else begin
|
||||
if(!wdreg_sector || (wdreg_sector > sectors_per_track)) begin
|
||||
if(~format) s_seekerr <= 1;
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end else begin
|
||||
state <= rw_type ? STATE_WAIT_READ : STATE_READ;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
STATE_SEARCH_1:
|
||||
begin
|
||||
if(rw_type & (edsk_track == disk_track) &
|
||||
(edsk_side == side) &
|
||||
(format | (edsk_sector == wdreg_sector))) begin
|
||||
state <= STATE_WAIT_READ;
|
||||
end
|
||||
else
|
||||
if(~rw_type & (edsk_track == disk_track) &
|
||||
(edsk_side == side)) begin
|
||||
read_addr[0] <= edsk_trackf;
|
||||
read_addr[1] <= edsk_sidef;
|
||||
read_addr[2] <= edsk_sector;
|
||||
read_addr[3] <= edsk_sizecode;
|
||||
state <= STATE_READ;
|
||||
end
|
||||
else
|
||||
if(edsk_next == edsk_start) begin
|
||||
if(~format) s_seekerr <= 1;
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end
|
||||
else
|
||||
begin
|
||||
edsk_addr <= edsk_next;
|
||||
end
|
||||
end
|
||||
// read before write in case if sector not aligned or smaller than 512b
|
||||
STATE_WAIT_READ:
|
||||
begin
|
||||
data_length <= sector_size;
|
||||
byte_addr <= buff_a[8:0];
|
||||
blk_max <= blk_size;
|
||||
sd_block <= 0;
|
||||
state <= RWMODE ? STATE_WAIT_READ_1 : write ? STATE_WRITE : STATE_READ;
|
||||
end
|
||||
STATE_WAIT_READ_1:
|
||||
begin
|
||||
sd_busy <= 1;
|
||||
sd_rd <= 1;
|
||||
state <= STATE_WAIT_READ_2;
|
||||
end
|
||||
STATE_WAIT_READ_2:
|
||||
begin
|
||||
if(!sd_busy) begin
|
||||
sd_block <= sd_block + 1'd1;
|
||||
state <= write ? STATE_WRITE : STATE_READ;
|
||||
if(sd_block < blk_max) state <= STATE_WAIT_READ_1;
|
||||
end
|
||||
end
|
||||
|
||||
STATE_READ:
|
||||
begin
|
||||
watchdog_set <= 1;
|
||||
read_timer <= 15;
|
||||
state <= STATE_READ_1;
|
||||
end
|
||||
STATE_READ_1:
|
||||
begin
|
||||
read_timer <= read_timer - 1'b1;
|
||||
if(!read_timer) begin
|
||||
read_data <= 0;
|
||||
watchdog_set <= 0;
|
||||
s_lostdata <= 0;
|
||||
s_drq_busy <= 2'b11;
|
||||
state <= STATE_READ_2;
|
||||
end
|
||||
end
|
||||
STATE_READ_2:
|
||||
begin
|
||||
if(watchdog_bark | (read_data & s_drq)) begin
|
||||
// reset drq until next byte is read, nothing is lost
|
||||
s_drq_busy <= 2'b01;
|
||||
s_lostdata <= watchdog_bark;
|
||||
|
||||
if(next_length == 0) begin
|
||||
// either read the next sector, or stop if this is track end
|
||||
if(multisector) begin
|
||||
wdreg_sector <= wdreg_sector + 1'b1;
|
||||
state <= STATE_SEARCH;
|
||||
end else begin
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end
|
||||
end else begin
|
||||
byte_addr <= byte_addr + 1'd1;
|
||||
data_length <= next_length;
|
||||
state <= STATE_READ;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
STATE_WAIT_WRITE:
|
||||
begin
|
||||
if(!ready) begin
|
||||
s_wrfault <= 1;
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end else begin
|
||||
sd_block <= 0;
|
||||
state <= STATE_WAIT_WRITE_1;
|
||||
end
|
||||
end
|
||||
STATE_WAIT_WRITE_1:
|
||||
begin
|
||||
sd_busy <= 1;
|
||||
sd_wr <= 1;
|
||||
state <= STATE_WAIT_WRITE_2;
|
||||
end
|
||||
STATE_WAIT_WRITE_2:
|
||||
begin
|
||||
if(!sd_busy) begin
|
||||
sd_block <= sd_block + 1'd1;
|
||||
if(sd_block < blk_max) state <= STATE_WAIT_WRITE_1;
|
||||
else begin
|
||||
if(format && var_size && !edsk_next) begin
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end else if(multisector) begin
|
||||
edsk_addr <= edsk_next;
|
||||
wdreg_sector <= wdreg_sector + 1'b1;
|
||||
state <= STATE_SEARCH;
|
||||
end else begin
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
STATE_WRITE:
|
||||
begin
|
||||
watchdog_set <= 1;
|
||||
read_timer <= 15;
|
||||
state <= STATE_WRITE_1;
|
||||
end
|
||||
STATE_WRITE_1:
|
||||
begin
|
||||
read_timer <= read_timer - 1'b1;
|
||||
if(!read_timer) begin
|
||||
write_data <= 0;
|
||||
watchdog_set <= 0;
|
||||
s_lostdata <= 0;
|
||||
s_drq_busy <= 2'b11;
|
||||
state <= STATE_WRITE_2;
|
||||
end
|
||||
end
|
||||
STATE_WRITE_2:
|
||||
begin
|
||||
if(watchdog_bark | (write_data & s_drq)) begin
|
||||
s_drq_busy <= 2'b01;
|
||||
s_lostdata <= watchdog_bark;
|
||||
|
||||
if(!next_length) state <= STATE_WAIT_WRITE;
|
||||
else begin
|
||||
byte_addr <= byte_addr + 1'd1;
|
||||
data_length <= next_length;
|
||||
state <= STATE_WRITE;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
// Abort current operation ($D0)
|
||||
STATE_ABORT:
|
||||
begin
|
||||
data_length <= 0;
|
||||
{s_wrfault,s_seekerr,s_crcerr,s_lostdata} <= 0;
|
||||
state <= STATE_ENDCOMMAND;
|
||||
end
|
||||
|
||||
STATE_WAIT:
|
||||
begin
|
||||
wait_time <= 4000;
|
||||
state <= STATE_WAIT_2;
|
||||
end
|
||||
STATE_WAIT_2:
|
||||
begin
|
||||
if(wait_time) wait_time <= wait_time - 1;
|
||||
else state <= STATE_ENDCOMMAND;
|
||||
end
|
||||
|
||||
// End any command.
|
||||
STATE_ENDCOMMAND:
|
||||
begin
|
||||
format <= 0;
|
||||
buff_rd <= 0;
|
||||
if(RWMODE) buff_wr <=0;
|
||||
state <= STATE_IDLE;
|
||||
s_drq_busy <= 2'b00;
|
||||
seektimer <= 'h3FF;
|
||||
s_intrq <= 1;
|
||||
end
|
||||
endcase
|
||||
|
||||
/* Register write operations */
|
||||
if (!old_wr & wre) begin
|
||||
case (addr)
|
||||
A_COMMAND:
|
||||
begin
|
||||
s_intrq <= 0;
|
||||
if((state == STATE_IDLE) | (din[7:4] == 'hD)) begin
|
||||
cmd_mode <= din[7];
|
||||
s_wpe <= ~din[7];
|
||||
case (din[7:4])
|
||||
'h0: // RESTORE
|
||||
begin
|
||||
// head load as specified, index, track0
|
||||
s_headloaded <= din[3];
|
||||
wdreg_track <= 0;
|
||||
disk_track <= 0;
|
||||
|
||||
// some programs like it when FDC gets busy for a while
|
||||
s_drq_busy <= 2'b01;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
'h1: // SEEK
|
||||
begin
|
||||
// set real track to datareg
|
||||
disk_track <= wdreg_data;
|
||||
s_headloaded <= din[3];
|
||||
|
||||
// fixed seek
|
||||
wdreg_track <= wdreg_data;
|
||||
|
||||
// get busy
|
||||
s_drq_busy <= 2'b01;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
'h2, // STEP
|
||||
'h3, // STEP & UPDATE
|
||||
'h4, // STEP-IN
|
||||
'h5, // STEP-IN & UPDATE
|
||||
'h6, // STEP-OUT
|
||||
'h7: // STEP-OUT & UPDATE
|
||||
begin
|
||||
// if direction is specified, store it for the next time
|
||||
if (din[6] == 1) step_direction <= din[5]; // 0: forward/in
|
||||
|
||||
// perform step
|
||||
disk_track <= next_track;
|
||||
|
||||
// update TRACK register too if asked to
|
||||
if (din[4]) wdreg_track <= next_track;
|
||||
|
||||
s_headloaded <= din[3];
|
||||
|
||||
// some programs like it when FDC gets busy for a while
|
||||
s_drq_busy <= 2'b01;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
'h8, 'h9, // READ SECTORS
|
||||
'hA, 'hB: // WRITE SECTORS
|
||||
begin
|
||||
// seek data
|
||||
// 5: 0: read, 1: write
|
||||
// 4: m: 0: one sector, 1: until the track ends
|
||||
// 3: S: SIDE
|
||||
// 2: E: some 15ms delay
|
||||
// 1: C: check side matching?
|
||||
// 0: 0
|
||||
|
||||
s_drq_busy <= 2'b01;
|
||||
{s_wrfault,s_seekerr,s_crcerr,s_lostdata} <= 0;
|
||||
|
||||
{write,buff_rd} <= din[5] ? 2'b10 : 2'b01;
|
||||
if(RWMODE) buff_wr <= din[5];
|
||||
|
||||
if(din[6]) wdreg_sector <= 1;
|
||||
|
||||
format <= din[6];
|
||||
multisector <= din[4];
|
||||
rw_type <= 1;
|
||||
write_data <= 0;
|
||||
read_data <= 0;
|
||||
edsk_start <= 0;
|
||||
edsk_addr <= 0;
|
||||
state <= STATE_SEARCH;
|
||||
s_wpe <= din[5];
|
||||
|
||||
if(s_readonly & din[5]) begin
|
||||
s_wrfault <= 1;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
end
|
||||
'hC: // READ ADDRESS
|
||||
begin
|
||||
// track, side, sector, sector size code, 2-byte checksum (crc?)
|
||||
s_drq_busy <= 2'b01;
|
||||
{s_wrfault,s_seekerr,s_crcerr,s_lostdata} <= 0;
|
||||
|
||||
{write,buff_rd} <= 0;
|
||||
if(RWMODE) buff_wr <=0;
|
||||
|
||||
format <= 0;
|
||||
multisector <= 0;
|
||||
rw_type <= 0;
|
||||
read_data <= 0;
|
||||
edsk_start <= edsk_next;
|
||||
data_length <= 6;
|
||||
|
||||
read_addr[0] <= disk_track;
|
||||
read_addr[1] <= {7'b0, side};
|
||||
read_addr[2] <= ra_sector;
|
||||
read_addr[3] <= wd_size_code;
|
||||
read_addr[4] <= 0;
|
||||
read_addr[5] <= 0;
|
||||
|
||||
if(ra_sector >= sectors_per_track) ra_sector <= 1;
|
||||
else ra_sector <= ra_sector + 1'd1;
|
||||
state <= STATE_SEARCH;
|
||||
end
|
||||
'hD: // interrupt
|
||||
begin
|
||||
cmd_mode <= 0;
|
||||
if(state != STATE_IDLE) state <= STATE_ABORT;
|
||||
else {s_wrfault,s_seekerr,s_crcerr,s_lostdata, s_drq_busy} <= 0;
|
||||
end
|
||||
'hF: // WRITE TRACK
|
||||
begin
|
||||
s_wpe <= din[5];
|
||||
{s_wrfault,s_seekerr,s_crcerr,s_lostdata} <= 0;
|
||||
s_drq_busy <= 2'b01;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
'hE: // READ TRACK
|
||||
begin
|
||||
{s_wrfault,s_crcerr,s_lostdata} <= 0;
|
||||
s_seekerr <= 1;
|
||||
s_drq_busy <= 2'b01;
|
||||
state <= STATE_WAIT;
|
||||
end
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
||||
A_TRACK: if (!s_busy) wdreg_track <= din;
|
||||
A_SECTOR: if (!s_busy) {ra_sector, wdreg_sector} <= {din,din};
|
||||
A_DATA: wdreg_data <= din;
|
||||
endcase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
reg scan_active = 0;
|
||||
reg [19:0] scan_addr;
|
||||
reg scan_wr;
|
||||
|
||||
reg [1:0] edsk_sizecode = 0; // sector size: 0=128K, 1=256K, 2=512K, 3=1024K
|
||||
reg edsk_side = 0; // Side number (0 or 1)
|
||||
reg [6:0] edsk_track = 0; // Track number
|
||||
reg [7:0] edsk_sector = 0; // Sector number 0..15
|
||||
reg [19:0] edsk_offset = 0;
|
||||
reg [7:0] edsk_trackf = 0, edsk_sidef = 0;
|
||||
|
||||
reg [10:0] edsk_addr, edsk_start;
|
||||
|
||||
reg [10:0] edsk_size = 0;
|
||||
wire[10:0] edsk_next = ((edsk_addr + 1'd1) >= edsk_size) ? 11'd0 : edsk_addr + 1'd1;
|
||||
|
||||
reg [7:0] spt_size = 0;
|
||||
|
||||
generate
|
||||
if(EDSK) begin
|
||||
wire [7:0] scan_data = RWMODE ? buff_dout : input_data;
|
||||
reg [53:0] edsk[1992];
|
||||
reg [7:0] spt[166];
|
||||
|
||||
reg [7:0] spt_addr;
|
||||
always @(posedge clk_sys) begin
|
||||
{edsk_track,edsk_side,edsk_trackf,edsk_sidef,edsk_sector,edsk_sizecode,edsk_offset} <= edsk[edsk_addr];
|
||||
edsk_spt <= spt[spt_addr];
|
||||
end
|
||||
|
||||
reg [7:0] tpos;
|
||||
reg [7:0] tsize;
|
||||
reg [7:0] tsizes[166];
|
||||
always @(posedge clk_sys) tsize <= tsizes[tpos];
|
||||
|
||||
wire[127:0] edsk_sig = "EXTENDED CPC DSK";
|
||||
wire[127:0] sig_pos = edsk_sig >> (8'd120-(scan_addr[7:0]<<3));
|
||||
|
||||
always @(posedge clk_sys) begin
|
||||
reg old_active, old_wr;
|
||||
reg [13:0] hdr_pos, bcnt;
|
||||
reg [7:0] idStatus;
|
||||
reg [6:0] track;
|
||||
reg side;
|
||||
reg [7:0] sector;
|
||||
reg [1:0] sizecode;
|
||||
reg [7:0] crc1;
|
||||
reg [7:0] crc2;
|
||||
reg [7:0] sectors;
|
||||
reg [15:0] track_size, track_pos;
|
||||
reg [19:0] offset, offset1;
|
||||
reg [7:0] size_lo;
|
||||
reg [10:0] secpos;
|
||||
reg [7:0] trackf, sidef;
|
||||
|
||||
old_active <= scan_active;
|
||||
if(scan_active & ~old_active) begin
|
||||
edsk_size <=0;
|
||||
spt_size <=0;
|
||||
track_pos <=0;
|
||||
var_size <=1;
|
||||
end
|
||||
|
||||
old_wr <= scan_wr;
|
||||
if(scan_wr & ~old_wr & scan_active) begin
|
||||
if((scan_addr[19:0] < 16) & (sig_pos[7:0] != scan_data)) var_size <= 0;
|
||||
if(var_size) begin
|
||||
if( scan_addr == 48) spt_size <= scan_data; else
|
||||
if((scan_addr == 49) & (scan_data == 2)) spt_size <= spt_size << 1; else
|
||||
if( scan_addr == 52) begin
|
||||
track_size <= {scan_data, 8'd0};
|
||||
track_pos <= 0;
|
||||
tpos <= 1;
|
||||
end else
|
||||
if((scan_addr > 52) & (scan_addr < 218)) begin
|
||||
tsizes[scan_addr - 52] <= scan_data;
|
||||
spt[scan_addr - 52] <= 0;
|
||||
end else
|
||||
if((scan_addr >= 256) && track_size) begin
|
||||
track_pos <= track_pos + 1'd1;
|
||||
case(track_pos)
|
||||
00: offset <= scan_addr + 9'd256;
|
||||
16: track <= scan_data[6:0];
|
||||
17: side <= scan_data[0];
|
||||
21: sectors <= scan_data;
|
||||
22: spt[(side ? (spt_size >> 1) : 8'd0) + track] <= sectors;
|
||||
default:
|
||||
if((track_pos >= 24) && sectors) begin
|
||||
case(track_pos[2:0])
|
||||
0: begin
|
||||
trackf <= scan_data;
|
||||
secpos <= edsk_size;
|
||||
offset1 <= offset;
|
||||
end
|
||||
1: sidef <= scan_data;
|
||||
2: sector <= scan_data;
|
||||
3: sizecode<= scan_data[1:0];
|
||||
6: size_lo <= scan_data;
|
||||
7: begin
|
||||
if({scan_data, size_lo}) begin
|
||||
edsk[secpos] <= {track,side,trackf,sidef,sector,sizecode,offset1};
|
||||
edsk_size <= edsk_size + 1'd1;
|
||||
offset <= offset + {scan_data, size_lo};
|
||||
end
|
||||
sectors <= sectors - 1'd1;
|
||||
end
|
||||
default:;
|
||||
endcase
|
||||
end
|
||||
endcase
|
||||
if(track_pos >= (track_size - 1'd1)) begin
|
||||
track_size <= {tsize, 8'd0};
|
||||
track_pos <= 0;
|
||||
tpos <= tpos + 1'd1;
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
endgenerate
|
||||
|
||||
endmodule
|
||||
|
||||
module wd1793_dpram #(parameter DATAWIDTH=8, ADDRWIDTH=11)
|
||||
(
|
||||
input clock,
|
||||
|
||||
input [ADDRWIDTH-1:0] address_a,
|
||||
input [DATAWIDTH-1:0] data_a,
|
||||
input wren_a,
|
||||
output reg [DATAWIDTH-1:0] q_a,
|
||||
|
||||
input [ADDRWIDTH-1:0] address_b,
|
||||
input [DATAWIDTH-1:0] data_b,
|
||||
input wren_b,
|
||||
output reg [DATAWIDTH-1:0] q_b
|
||||
);
|
||||
|
||||
logic [DATAWIDTH-1:0] ram[0:(1<<ADDRWIDTH)-1];
|
||||
|
||||
always_ff@(posedge clock) begin
|
||||
if(wren_a) begin
|
||||
ram[address_a] <= data_a;
|
||||
q_a <= data_a;
|
||||
end else begin
|
||||
q_a <= ram[address_a];
|
||||
end
|
||||
end
|
||||
|
||||
always_ff@(posedge clock) begin
|
||||
if(wren_b) begin
|
||||
ram[address_b] <= data_b;
|
||||
q_b <= data_b;
|
||||
end else begin
|
||||
q_b <= ram[address_b];
|
||||
end
|
||||
end
|
||||
|
||||
endmodule
|
||||
Reference in new issue
Block a user