Skip to content

Commit

Permalink
[!] minor modification to avoid double assignment into variables path…
Browse files Browse the repository at this point in the history
…_id. No functional changes but somehow it should help with issue #46
  • Loading branch information
sergeykhbr committed Jul 12, 2023
1 parent 426af3d commit 76da1f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions sc/rtl/riverlib/cache/cache_top.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ void CacheTop::comb() {
vb_ctrl_bus = 0ull;
vb_data_bus = 0ull;
vb_queue_bus = 0ull;
ctrl_path_id = 0;
data_path_id = 0;
ctrl_path_id = CTRL_PATH;
data_path_id = DATA_PATH;
v_queue_we = 0;
v_queue_re = 0;
v_req_mem_path_o = 0;
Expand All @@ -407,13 +407,11 @@ void CacheTop::comb() {
v_queue_re = i_req_mem_ready;
v_queue_we = (i.req_mem_valid || d.req_mem_valid);

ctrl_path_id = CTRL_PATH;
vb_ctrl_bus = (ctrl_path_id,
i.req_mem_type,
i.req_mem_size,
i.req_mem_addr);

data_path_id = DATA_PATH;
vb_data_bus = (data_path_id,
d.req_mem_type,
d.req_mem_size,
Expand Down
6 changes: 2 additions & 4 deletions sv/rtl/riverlib/cache/cache_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ begin: comb_proc
vb_ctrl_bus = 55'h00000000000000;
vb_data_bus = 55'h00000000000000;
vb_queue_bus = 55'h00000000000000;
ctrl_path_id = 0;
data_path_id = 0;
ctrl_path_id = CTRL_PATH;
data_path_id = DATA_PATH;
v_queue_we = 0;
v_queue_re = 0;
v_req_mem_path_o = 0;
Expand All @@ -284,13 +284,11 @@ begin: comb_proc
v_queue_re = i_req_mem_ready;
v_queue_we = (i.req_mem_valid || d.req_mem_valid);

ctrl_path_id = CTRL_PATH;
vb_ctrl_bus = {ctrl_path_id,
i.req_mem_type,
i.req_mem_size,
i.req_mem_addr};

data_path_id = DATA_PATH;
vb_data_bus = {data_path_id,
d.req_mem_type,
d.req_mem_size,
Expand Down

0 comments on commit 76da1f3

Please sign in to comment.