Block changing of monitor addresses when enabled

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2023-03-06 13:34:11 +01:00 committed by Daniel Lublin
parent 66ebe5089a
commit 6f327d2ff9
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -382,11 +382,15 @@ module tk1(
end
if (address == ADDR_CPU_MON_FIRST) begin
cpu_mon_first_we = 1'h1;
if (!cpu_mon_en_reg) begin
cpu_mon_first_we = 1'h1;
end
end
if (address == ADDR_CPU_MON_LAST) begin
cpu_mon_last_we = 1'h1;
if (!cpu_mon_en_reg) begin
cpu_mon_last_we = 1'h1;
end
end
end