mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2025-02-17 23:30:31 +00:00
Add settings module power-on reset
This commit is contained in:
parent
d92e235e25
commit
4788ad7fe0
@ -1,6 +1,8 @@
|
|||||||
module CNT(
|
module CNT(
|
||||||
/* FSB clock and E clock inputs */
|
/* FSB clock and E clock inputs */
|
||||||
input CLK, input C8M, input E,
|
input CLK, input C8M, input E,
|
||||||
|
/* Power-on reset */
|
||||||
|
output reg nPOR,
|
||||||
/* Refresh request */
|
/* Refresh request */
|
||||||
output reg RefReq, output reg RefUrg,
|
output reg RefReq, output reg RefUrg,
|
||||||
/* Reset, button */
|
/* Reset, button */
|
||||||
@ -110,7 +112,6 @@ module CNT(
|
|||||||
always @(posedge CLK) LTimerTick <= TimerTick && LTimerTC;
|
always @(posedge CLK) LTimerTick <= TimerTick && LTimerTC;
|
||||||
|
|
||||||
/* C8M duty cycle check and power-on reset */
|
/* C8M duty cycle check and power-on reset */
|
||||||
reg nPOR = 0;
|
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
if (C8Mr[3:0]==4'b0000 || C8Mr[3:0]==4'b1111) nPOR <= 0;
|
if (C8Mr[3:0]==4'b0000 || C8Mr[3:0]==4'b1111) nPOR <= 0;
|
||||||
else if (C8Mr[1:0]==2'b01) nPOR <= 1;
|
else if (C8Mr[1:0]==2'b01) nPOR <= 1;
|
||||||
|
12
cpld/SET.v
12
cpld/SET.v
@ -1,5 +1,6 @@
|
|||||||
module SET(
|
module SET(
|
||||||
input CLK,
|
input CLK,
|
||||||
|
input nPOR,
|
||||||
input BACT,
|
input BACT,
|
||||||
input [11:1] A,
|
input [11:1] A,
|
||||||
input SetCSWR,
|
input SetCSWR,
|
||||||
@ -15,7 +16,16 @@ module SET(
|
|||||||
reg SetWRr; always @(posedge CLK) SetWRr <= BACT && SetCSWR;
|
reg SetWRr; always @(posedge CLK) SetWRr <= BACT && SetCSWR;
|
||||||
|
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
if (SetWRr) begin
|
if (!nPOR) begin
|
||||||
|
SlowTimeout[3:0] <= 4'hF;
|
||||||
|
SlowIACK <= 1;
|
||||||
|
SlowVIA <= 1;
|
||||||
|
SlowIWM <= 1;
|
||||||
|
SlowSCC <= 1;
|
||||||
|
SlowSCSI <= 1;
|
||||||
|
SlowSnd <= 1;
|
||||||
|
SlowClockGate <= 1;
|
||||||
|
end else if (SetWRr) begin
|
||||||
SlowTimeout[3:0] <= A[11:8];
|
SlowTimeout[3:0] <= A[11:8];
|
||||||
SlowIACK <= A[7];
|
SlowIACK <= A[7];
|
||||||
SlowVIA <= A[6];
|
SlowVIA <= A[6];
|
||||||
|
@ -56,6 +56,9 @@ module WarpSE(
|
|||||||
wire nRESout;
|
wire nRESout;
|
||||||
assign nRES = !nRESout ? 1'b0 : 1'bZ;
|
assign nRES = !nRESout ? 1'b0 : 1'bZ;
|
||||||
|
|
||||||
|
/* Power-on reset */
|
||||||
|
wire nPOR;
|
||||||
|
|
||||||
/* AS cycle detection */
|
/* AS cycle detection */
|
||||||
wire ASrf, BACT, BACTr;
|
wire ASrf, BACT, BACTr;
|
||||||
|
|
||||||
@ -208,6 +211,7 @@ module WarpSE(
|
|||||||
wire [3:0] SlowTimeout;
|
wire [3:0] SlowTimeout;
|
||||||
SET set(
|
SET set(
|
||||||
.CLK(FCLK),
|
.CLK(FCLK),
|
||||||
|
.nPOR(nPOR),
|
||||||
.BACT(BACT),
|
.BACT(BACT),
|
||||||
.A(A_FSB[11:1]),
|
.A(A_FSB[11:1]),
|
||||||
.SetCSWR(SetCSWR),
|
.SetCSWR(SetCSWR),
|
||||||
@ -227,6 +231,8 @@ module WarpSE(
|
|||||||
.CLK(FCLK),
|
.CLK(FCLK),
|
||||||
.C8M(C8M),
|
.C8M(C8M),
|
||||||
.E(E),
|
.E(E),
|
||||||
|
/* Power-on reset */
|
||||||
|
.nPOR(nPOR),
|
||||||
/* Refresh request */
|
/* Refresh request */
|
||||||
.RefReq(RefReq),
|
.RefReq(RefReq),
|
||||||
.RefUrg(RefUrg),
|
.RefUrg(RefUrg),
|
||||||
|
@ -4,13 +4,13 @@ Copyright (c) 1995-2013 Xilinx, Inc. All rights reserved.
|
|||||||
|
|
||||||
|
|
||||||
Total REAL time to Xst completion: 0.00 secs
|
Total REAL time to Xst completion: 0.00 secs
|
||||||
Total CPU time to Xst completion: 0.10 secs
|
Total CPU time to Xst completion: 0.08 secs
|
||||||
|
|
||||||
--> Parameter xsthdpdir set to xst
|
--> Parameter xsthdpdir set to xst
|
||||||
|
|
||||||
|
|
||||||
Total REAL time to Xst completion: 0.00 secs
|
Total REAL time to Xst completion: 0.00 secs
|
||||||
Total CPU time to Xst completion: 0.10 secs
|
Total CPU time to Xst completion: 0.08 secs
|
||||||
|
|
||||||
--> Reading design: WarpSE.prj
|
--> Reading design: WarpSE.prj
|
||||||
|
|
||||||
@ -75,7 +75,9 @@ wysiwyg : NO
|
|||||||
=========================================================================
|
=========================================================================
|
||||||
* HDL Compilation *
|
* HDL Compilation *
|
||||||
=========================================================================
|
=========================================================================
|
||||||
|
Compiling verilog file "../SET.v" in library work
|
||||||
Compiling verilog file "../RAM.v" in library work
|
Compiling verilog file "../RAM.v" in library work
|
||||||
|
Module <SET> compiled
|
||||||
Compiling verilog file "../IOBS.v" in library work
|
Compiling verilog file "../IOBS.v" in library work
|
||||||
Module <RAM> compiled
|
Module <RAM> compiled
|
||||||
Compiling verilog file "../IOBM.v" in library work
|
Compiling verilog file "../IOBM.v" in library work
|
||||||
@ -106,6 +108,8 @@ Analyzing hierarchy for module <IOBS> in library <work>.
|
|||||||
|
|
||||||
Analyzing hierarchy for module <IOBM> in library <work>.
|
Analyzing hierarchy for module <IOBM> in library <work>.
|
||||||
|
|
||||||
|
Analyzing hierarchy for module <SET> in library <work>.
|
||||||
|
|
||||||
Analyzing hierarchy for module <CNT> in library <work>.
|
Analyzing hierarchy for module <CNT> in library <work>.
|
||||||
|
|
||||||
Analyzing hierarchy for module <FSB> in library <work>.
|
Analyzing hierarchy for module <FSB> in library <work>.
|
||||||
@ -129,6 +133,9 @@ Module <IOBS> is correct for synthesis.
|
|||||||
Analyzing module <IOBM> in library <work>.
|
Analyzing module <IOBM> in library <work>.
|
||||||
Module <IOBM> is correct for synthesis.
|
Module <IOBM> is correct for synthesis.
|
||||||
|
|
||||||
|
Analyzing module <SET> in library <work>.
|
||||||
|
Module <SET> is correct for synthesis.
|
||||||
|
|
||||||
Analyzing module <CNT> in library <work>.
|
Analyzing module <CNT> in library <work>.
|
||||||
Module <CNT> is correct for synthesis.
|
Module <CNT> is correct for synthesis.
|
||||||
|
|
||||||
@ -239,11 +246,28 @@ WARNING:Xst:646 - Signal <IOS0> is assigned but never used. This unconnected sig
|
|||||||
Unit <IOBM> synthesized.
|
Unit <IOBM> synthesized.
|
||||||
|
|
||||||
|
|
||||||
|
Synthesizing Unit <SET>.
|
||||||
|
Related source file is "../SET.v".
|
||||||
|
Found 1-bit register for signal <SlowSCC>.
|
||||||
|
Found 1-bit register for signal <SlowIACK>.
|
||||||
|
Found 1-bit register for signal <SlowIWM>.
|
||||||
|
Found 1-bit register for signal <SlowSnd>.
|
||||||
|
Found 4-bit register for signal <SlowTimeout>.
|
||||||
|
Found 1-bit register for signal <SlowSCSI>.
|
||||||
|
Found 1-bit register for signal <SlowVIA>.
|
||||||
|
Found 1-bit register for signal <SlowClockGate>.
|
||||||
|
Found 1-bit register for signal <SetWRr>.
|
||||||
|
Summary:
|
||||||
|
inferred 1 D-type flip-flop(s).
|
||||||
|
Unit <SET> synthesized.
|
||||||
|
|
||||||
|
|
||||||
Synthesizing Unit <CNT>.
|
Synthesizing Unit <CNT>.
|
||||||
Related source file is "../CNT.v".
|
Related source file is "../CNT.v".
|
||||||
Found 1-bit register for signal <RefUrg>.
|
Found 1-bit register for signal <RefUrg>.
|
||||||
Found 1-bit register for signal <RefReq>.
|
Found 1-bit register for signal <RefReq>.
|
||||||
Found 1-bit register for signal <nBR_IOB>.
|
Found 1-bit register for signal <nBR_IOB>.
|
||||||
|
Found 1-bit register for signal <nPOR>.
|
||||||
Found 1-bit register for signal <QoSEN>.
|
Found 1-bit register for signal <QoSEN>.
|
||||||
Found 1-bit register for signal <nRESout>.
|
Found 1-bit register for signal <nRESout>.
|
||||||
Found 1-bit register for signal <AoutOE>.
|
Found 1-bit register for signal <AoutOE>.
|
||||||
@ -253,15 +277,13 @@ Synthesizing Unit <CNT>.
|
|||||||
Found 2-bit register for signal <IS>.
|
Found 2-bit register for signal <IS>.
|
||||||
Found 12-bit up counter for signal <LTimer>.
|
Found 12-bit up counter for signal <LTimer>.
|
||||||
Found 1-bit register for signal <LTimerTick>.
|
Found 1-bit register for signal <LTimerTick>.
|
||||||
Found 1-bit register for signal <nPOR>.
|
|
||||||
Found 1-bit register for signal <QoSCSr>.
|
Found 1-bit register for signal <QoSCSr>.
|
||||||
Found 4-bit down counter for signal <QS>.
|
Found 4-bit down counter for signal <QS>.
|
||||||
Found 1-bit register for signal <SndQoSCSr>.
|
|
||||||
Found 4-bit up counter for signal <Timer>.
|
Found 4-bit up counter for signal <Timer>.
|
||||||
Found 1-bit register for signal <TimerTick>.
|
Found 1-bit register for signal <TimerTick>.
|
||||||
Summary:
|
Summary:
|
||||||
inferred 3 Counter(s).
|
inferred 3 Counter(s).
|
||||||
inferred 11 D-type flip-flop(s).
|
inferred 10 D-type flip-flop(s).
|
||||||
Unit <CNT> synthesized.
|
Unit <CNT> synthesized.
|
||||||
|
|
||||||
|
|
||||||
@ -302,11 +324,11 @@ Macro Statistics
|
|||||||
12-bit up counter : 1
|
12-bit up counter : 1
|
||||||
4-bit down counter : 1
|
4-bit down counter : 1
|
||||||
4-bit up counter : 2
|
4-bit up counter : 2
|
||||||
# Registers : 62
|
# Registers : 70
|
||||||
1-bit register : 58
|
1-bit register : 65
|
||||||
2-bit register : 2
|
2-bit register : 2
|
||||||
3-bit register : 1
|
3-bit register : 1
|
||||||
4-bit register : 1
|
4-bit register : 2
|
||||||
# Tristates : 7
|
# Tristates : 7
|
||||||
1-bit tristate buffer : 7
|
1-bit tristate buffer : 7
|
||||||
|
|
||||||
@ -374,6 +396,8 @@ Optimizing unit <IOBS> ...
|
|||||||
implementation constraint: INIT=r : Sent
|
implementation constraint: INIT=r : Sent
|
||||||
implementation constraint: INIT=r : TS_FSM_FFd1
|
implementation constraint: INIT=r : TS_FSM_FFd1
|
||||||
|
|
||||||
|
Optimizing unit <SET> ...
|
||||||
|
|
||||||
Optimizing unit <IOBM> ...
|
Optimizing unit <IOBM> ...
|
||||||
implementation constraint: INIT=s : IOS_FSM_FFd7
|
implementation constraint: INIT=s : IOS_FSM_FFd7
|
||||||
implementation constraint: INIT=r : DoutOE
|
implementation constraint: INIT=r : DoutOE
|
||||||
@ -388,7 +412,6 @@ Optimizing unit <CNT> ...
|
|||||||
implementation constraint: INIT=r : Timer_2
|
implementation constraint: INIT=r : Timer_2
|
||||||
implementation constraint: INIT=r : IS_0
|
implementation constraint: INIT=r : IS_0
|
||||||
implementation constraint: INIT=r : IS_1
|
implementation constraint: INIT=r : IS_1
|
||||||
implementation constraint: INIT=r : nPOR
|
|
||||||
implementation constraint: INIT=r : Timer_3
|
implementation constraint: INIT=r : Timer_3
|
||||||
implementation constraint: INIT=r : Timer_0
|
implementation constraint: INIT=r : Timer_0
|
||||||
implementation constraint: INIT=r : Timer_1
|
implementation constraint: INIT=r : Timer_1
|
||||||
@ -423,22 +446,23 @@ Design Statistics
|
|||||||
# IOs : 80
|
# IOs : 80
|
||||||
|
|
||||||
Cell Usage :
|
Cell Usage :
|
||||||
# BELS : 647
|
# BELS : 691
|
||||||
# AND2 : 194
|
# AND2 : 209
|
||||||
# AND3 : 27
|
# AND3 : 26
|
||||||
# AND4 : 12
|
# AND4 : 13
|
||||||
# AND5 : 3
|
# AND5 : 3
|
||||||
# AND8 : 2
|
# AND8 : 2
|
||||||
# GND : 6
|
# GND : 7
|
||||||
# INV : 262
|
# INV : 278
|
||||||
# OR2 : 106
|
# OR2 : 116
|
||||||
# OR3 : 9
|
# OR3 : 10
|
||||||
# OR4 : 4
|
# OR4 : 4
|
||||||
# OR5 : 1
|
# OR5 : 1
|
||||||
|
# OR6 : 1
|
||||||
# XOR2 : 21
|
# XOR2 : 21
|
||||||
# FlipFlops/Latches : 102
|
# FlipFlops/Latches : 113
|
||||||
# FD : 61
|
# FD : 61
|
||||||
# FDCE : 36
|
# FDCE : 47
|
||||||
# FDCP : 1
|
# FDCP : 1
|
||||||
# FDP : 4
|
# FDP : 4
|
||||||
# IO Buffers : 73
|
# IO Buffers : 73
|
||||||
@ -450,11 +474,11 @@ Cell Usage :
|
|||||||
|
|
||||||
|
|
||||||
Total REAL time to Xst completion: 5.00 secs
|
Total REAL time to Xst completion: 5.00 secs
|
||||||
Total CPU time to Xst completion: 5.10 secs
|
Total CPU time to Xst completion: 4.96 secs
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Total memory usage is 262560 kilobytes
|
Total memory usage is 263392 kilobytes
|
||||||
|
|
||||||
Number of errors : 0 ( 0 filtered)
|
Number of errors : 0 ( 0 filtered)
|
||||||
Number of warnings : 3 ( 0 filtered)
|
Number of warnings : 3 ( 0 filtered)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user