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,40 @@
|
||||
`timescale 1ns/1ps
|
||||
// Real platform CE generator and I2S serializer, including the 48/96 kHz switch.
|
||||
module external_audio_tb;
|
||||
reg clk=0, reset=1, rate=0;
|
||||
always #20.341 clk=~clk;
|
||||
wire bclk,lrclk,data;
|
||||
audio_pin_contract dut(clk,reset,rate,bclk,lrclk,data);
|
||||
integer cycle=0, last_change=-10000, last_rise=-10000;
|
||||
integer setup_min=10000, hold_min=10000, rises=0, changes=0;
|
||||
reg checking=0;
|
||||
always @(posedge clk) cycle=cycle+1;
|
||||
always @(data or lrclk) if(checking) begin
|
||||
if(cycle-last_rise < hold_min) hold_min=cycle-last_rise;
|
||||
if(cycle-last_rise < 3) $fatal(1,"I2S receiver hold slot lost: %0d",cycle-last_rise);
|
||||
last_change=cycle;changes=changes+1;
|
||||
end
|
||||
always @(posedge bclk) if(checking) begin
|
||||
if(cycle-last_change < setup_min) setup_min=cycle-last_change;
|
||||
if(cycle-last_change < 5) $fatal(1,"I2S receiver setup slot lost: %0d",cycle-last_change);
|
||||
last_rise=cycle;rises=rises+1;
|
||||
end
|
||||
initial begin
|
||||
dut.ce_phase.cnt=0;
|
||||
dut.divider_phase.div=0;
|
||||
repeat(10) @(negedge clk);
|
||||
reset=0;
|
||||
repeat(100) @(negedge clk);
|
||||
checking=1;
|
||||
repeat(30000) @(negedge clk);
|
||||
rate=1;
|
||||
repeat(30000) @(negedge clk);
|
||||
rate=0;
|
||||
repeat(30000) @(negedge clk);
|
||||
checking=0;
|
||||
if(rises<5000 || changes<1000 || setup_min!=5 || hold_min!=3)
|
||||
$fatal(1,"Incomplete I2S transition coverage rises=%0d changes=%0d setup=%0d hold=%0d",rises,changes,setup_min,hold_min);
|
||||
$display("PASS audio pin slots: %0d rises, %0d changes; setup >=%0d cycles, hold >=%0d cycles",rises,changes,setup_min,hold_min);
|
||||
$finish;
|
||||
end
|
||||
endmodule
|
||||
Reference in new issue
Block a user