Introduce Coco 3 Plus for MiSTer
Add original-firmware Sound & Speech, four configurable Multi-Pak sockets, bounded per-slot ROM allocation and a nine-page menu organized around devices and media. Repair inherited clock/reset/CPU-memory/video paths and add explicit conditional external-I/O timing contracts. Preserve native Main startup-file ordering, saved layouts, stock-core separation and the coco3plus media profile. Provide native Windows tool downloads, pinned ToolShed ROM assembly, fresh Quartus builds, functional and fitted timing checks, reviewed release packaging and passwordless SSH installation with backups. Retain original component notices, document contribution copyright and keep SSC ROM inputs outside Git. Validation: Quartus17.0.2 Build602 seed5, zero errors; 15 functional jobs, 368 both-corner timing scopes and eight tooling-integrity checks pass. The renamed build reaches Disk BASIC, PRINT1+1 returns2 and SSC loads ready. Physical cold power cycling and conditional board-delay assumptions remain separate. Full original upstream histories are preserved before this single consolidated implementation commit.
This commit is contained in:
1 parent
8b8cf72d1f
commit
cb40fed3b9
126 files changed
+12795
-528
No files matched your search
@@ -0,0 +1,36 @@
|
||||
`timescale 1ns/1ps
|
||||
module reset_domains_tb;
|
||||
reg clk_sys=0,CLK_114=0,run_sys=1,run_fast=1,RESET_RAW_N=1;
|
||||
always #10 if(run_sys) clk_sys=~clk_sys;
|
||||
always #5 if(run_fast) CLK_114=~CLK_114;
|
||||
wire RESET_N,RESET_POS_N,RESET_FAST_N,WD_RESET_N;
|
||||
actual_reset_domains dut(clk_sys,CLK_114,RESET_RAW_N,RESET_N,RESET_POS_N,RESET_FAST_N);
|
||||
actual_wd_release disk(clk_sys,RESET_N,WD_RESET_N);
|
||||
reg observing=0;
|
||||
always @(posedge RESET_N) if(observing && clk_sys!==0) $fatal(1,"main reset released on wrong phase");
|
||||
always @(posedge RESET_POS_N) if(observing && clk_sys!==1) $fatal(1,"positive reset released on wrong phase");
|
||||
always @(posedge RESET_FAST_N) if(observing && CLK_114!==1) $fatal(1,"fast reset released on wrong phase");
|
||||
always @(posedge WD_RESET_N) if(observing && clk_sys!==1) $fatal(1,"disk reset released on wrong phase");
|
||||
integer phase;
|
||||
initial begin
|
||||
repeat(5) @(negedge clk_sys);observing=1;
|
||||
for(phase=0;phase<7;phase=phase+1) begin
|
||||
#(phase+1);RESET_RAW_N=0;#1;
|
||||
if({RESET_N,RESET_POS_N,RESET_FAST_N,WD_RESET_N}!==0) $fatal(1,"asynchronous domain assertion missing");
|
||||
@(negedge clk_sys);run_sys=0;run_fast=0;
|
||||
#13;RESET_RAW_N=1;#40;
|
||||
if({RESET_N,RESET_POS_N,RESET_FAST_N,WD_RESET_N}!==0) $fatal(1,"stopped clocks released reset");
|
||||
run_sys=1;
|
||||
@(negedge clk_sys);#1;if(RESET_N!==0) $fatal(1,"main released after only one edge");
|
||||
@(negedge clk_sys);#1;if(RESET_N!==1 || RESET_FAST_N!==0) $fatal(1,"main/fast release ordering wrong");
|
||||
@(posedge clk_sys);#1;if(WD_RESET_N!==0) $fatal(1,"disk released after one edge");
|
||||
@(posedge clk_sys);#1;if(WD_RESET_N!==1) $fatal(1,"disk release missing");
|
||||
run_fast=1;
|
||||
@(posedge CLK_114);#1;if(RESET_FAST_N!==0) $fatal(1,"fast released after one edge");
|
||||
@(posedge CLK_114);#1;if(RESET_FAST_N!==1) $fatal(1,"fast release missing");
|
||||
end
|
||||
$display("PASS actual domain and WD reset chains: seven phases, asynchronous assertion, two consuming edges, independently stopped clocks and release phases");
|
||||
$finish;
|
||||
end
|
||||
initial begin #10000;$fatal(1,"domain reset timeout");end
|
||||
endmodule
|
||||
Reference in new issue
Block a user