Skip to content

Commit

Permalink
disable $Cxxxxxx debug writes #802
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed May 18, 2024
1 parent 4fa2304 commit 53edb57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vhdl/sdram_controller.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ architecture tacoma_narrows of sdram_controller is
signal clock_invert_on_write_int : std_logic := '0';
signal clock_invert_on_write : std_logic := '0';
signal clock_invert : std_logic := '0';

signal debug_register_enabled : boolean := false;

begin

Expand Down Expand Up @@ -542,7 +544,7 @@ begin
elsif read_latched = '1' or write_latched = '1' then
if latched_addr(26) = '1' then
report "NONRAMACCESS: Non-RAM access detected";
if write_latched = '1' then
if write_latched = '1' and debug_register_enabled then
-- Repeat SDRAM initialisation sequence whenver a non-RAM
-- address is written.
-- XXX Used to debug whether SDRAM initialisation is sometimes
Expand Down

0 comments on commit 53edb57

Please sign in to comment.