From 53edb57d1a6abcc91eba32ed9f5310ba6d1adaed Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Sat, 18 May 2024 17:05:42 +0930 Subject: [PATCH] disable $Cxxxxxx debug writes #802 --- src/vhdl/sdram_controller.vhdl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vhdl/sdram_controller.vhdl b/src/vhdl/sdram_controller.vhdl index ab9875f99..85e8dbb62 100644 --- a/src/vhdl/sdram_controller.vhdl +++ b/src/vhdl/sdram_controller.vhdl @@ -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 @@ -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