Skip to content

Commit

Permalink
fix wrong unknown check
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed May 30, 2024
1 parent 1542ac7 commit f8daa10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pzcorebus_common/pzcorebus_sva_checker.sv
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ module pzcorebus_response_sva_checker

if (!SRESP_IF_ONLY) begin : g_sresp_state
always @(posedge i_clk, sresp_ack, sresp) begin
if (!$isunknown(sresp)) begin
if (!($isunknown(sresp.response) || $isunknown(sresp.id))) begin
sresp_start = sresp_ack && (!sresp_busy[sresp.response][sresp.id]);
sresp_unknown = sresp_start && (!mcmd_queue[sresp.response].exists(sresp.id));
end
Expand All @@ -349,8 +349,10 @@ module pzcorebus_response_sva_checker
end

always @(posedge i_clk, sresp_ack, sresp) begin
if ((!$isunknown(sresp)) && mcmd_queue[sresp.response].exists(sresp.id)) begin
mcmd = mcmd_queue[sresp.response][sresp.id][0];
if (!($isunknown(sresp.response) || $isunknown(sresp.id))) begin
if (mcmd_queue[sresp.response].exists(sresp.id)) begin
mcmd = mcmd_queue[sresp.response][sresp.id][0];
end
end
end

Expand Down

0 comments on commit f8daa10

Please sign in to comment.