Skip to content

Commit

Permalink
posedge PHI counter
Browse files Browse the repository at this point in the history
  • Loading branch information
ogamespec committed Jul 29, 2023
1 parent b126edd commit 4d2de74
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions BreaksAPU/APUPlayer/FormAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions BreaksAPU/APUSim/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ namespace APUSim

// TBD: Other APU revisions

// The software PHI counter is triggered by the falling edge.
// The software PHI counter is triggered by the raising edge.
// This is purely a software design for convenience, and has nothing to do with APU hardware circuitry.

if (IsNegedge(prev_phi, new_phi))
if (IsPosedge(prev_phi, new_phi))
{
apu->phi_counter++;
}
Expand Down
4 changes: 2 additions & 2 deletions BreaksPPU/PPUPlayer/FormAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BreaksPPU/PPUPlayer/FormAbout.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAA4IAAAEYCAIAAACGCd86AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAA7ttJREFUeF7s/Xe8FEXa/o8/f/++y3SamXNIioiKAZWcJUuOkrPkDCJBBCQJigKK
wQAADsEBuJFr7QAA7ttJREFUeF7s/Xe8FEXa/o8/f/++y3SamXNIioiKAZWcJUuOkrPkDCJBBCQJigKK
mHPOOee8q7u6urq7rq45EUwourvP80n87qq7p6f6rq6e6p6eOefAzOv9urio01XTM9NddZ379Mz81/8v
e6o+/19MWsak6hDhd7WIVgFUV2DUq1Dj1K9QRsiTX6HskCno8IUsSS5k8aoxyIJehyERKwIk1GlBAqSK
aDE0HuLeoI+iLdFzfL6wsifd76niC6PyuVcuxJcS8eiXfZGKqHw02CRCPFfZl0gRla9pxMUm3NchRYrx
Expand Down
2 changes: 1 addition & 1 deletion Common/SharpTools/IIR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public void Reconfigure (float SampleRate, float cutoff_freq)
delta = 1.0f / SampleRate;
float time_const = (float)(1.0 / (2.0 * Math.PI * cutoff_freq));
alpha = delta / (time_const + delta);
Console.WriteLine("IIR Reconfigured delta: {0}, alpha: {0}", delta, alpha);
Console.WriteLine("IIR Reconfigured delta: {0}, alpha: {1}", delta, alpha);
}

public void Input (float sample)
Expand Down

0 comments on commit 4d2de74

Please sign in to comment.