Skip to content

Commit

Permalink
make the cell module private
Browse files Browse the repository at this point in the history
  • Loading branch information
tommydcjung committed Nov 6, 2024
1 parent f964cef commit 8306eb6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 32 deletions.
43 changes: 43 additions & 0 deletions bsg_misc/bsg_alloc_wavefront.sv
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,46 @@ endmodule


`BSG_ABSTRACT_MODULE(bsg_alloc_wavefront)



// private module for bsg_alloc_wavefront;
module bsg_alloc_wavefront_cell
(
input x_i
, input y_i
, input priority_i
, input req_i
, output logic y_o
, output logic x_o
, output logic grant_o
);

wire yp = y_i | priority_i;
wire xp = x_i | priority_i;

wire grant = yp & xp & req_i;
assign grant_o = grant;

assign x_o = xp & ~grant;
assign y_o = yp & ~grant;

endmodule


`BSG_ABSTRACT_MODULE(bsg_alloc_wavefront_cell)















31 changes: 0 additions & 31 deletions bsg_misc/bsg_alloc_wavefront_cell.sv

This file was deleted.

1 change: 0 additions & 1 deletion testing/bsg_misc/bsg_alloc_wavefront/sv.filelist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ get_random.cpp
$BASEJUMP_STL_DIR/bsg_test/bsg_nonsynth_clock_gen.sv
$BASEJUMP_STL_DIR/bsg_test/bsg_nonsynth_reset_gen.sv
$BASEJUMP_STL_DIR/bsg_misc/bsg_alloc_wavefront.sv
$BASEJUMP_STL_DIR/bsg_misc/bsg_alloc_wavefront_cell.sv
$BASEJUMP_STL_DIR/bsg_misc/bsg_cycle_counter.sv
$BASEJUMP_STL_DIR/bsg_misc/bsg_transpose.sv
$BASEJUMP_STL_DIR/bsg_misc/bsg_arb_round_robin.sv
Expand Down

0 comments on commit 8306eb6

Please sign in to comment.