summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-03-18 08:47:06 -0700
committerJulian Blake Kongslie2022-03-18 08:47:06 -0700
commite7e45a05a6dff3ea89e04d93342dede80840c181 (patch)
tree72b1837b84eba31e455a9be46422288de4cbe97f
parentAdd a few notes. (diff)
downloadmultipdp8-e7e45a05a6dff3ea89e04d93342dede80840c181.tar.xz
Trivial change to make it a little easier to understand the mem arbiter.
-rw-r--r--hdl/mem_arbiter.sv2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdl/mem_arbiter.sv b/hdl/mem_arbiter.sv
index ba3bd7d..c34faa8 100644
--- a/hdl/mem_arbiter.sv
+++ b/hdl/mem_arbiter.sv
@@ -55,7 +55,7 @@ module mem_arbiter
55 55
56 for (int i = 0; i < `NUM_PDPS+1; ++i) begin 56 for (int i = 0; i < `NUM_PDPS+1; ++i) begin
57 automatic int j = selector + i; 57 automatic int j = selector + i;
58 if (j > `NUM_PDPS) j = j - `NUM_PDPS-1; 58 if (j > `NUM_PDPS) j = j - (`NUM_PDPS+1);
59 if (!ram_valid && hold_valid[j]) begin 59 if (!ram_valid && hold_valid[j]) begin
60 ram_valid = 1; 60 ram_valid = 1;
61 ram_data = hold_data[j]; 61 ram_data = hold_data[j];