Skip to content

Commit

Permalink
Merge pull request #43 from taichi-ishitani/introducing_tbcm
Browse files Browse the repository at this point in the history
introduced tbcm submodule (close #42)
  • Loading branch information
taichi-ishitani authored Oct 25, 2018
2 parents 06aa223 + 72b8992 commit 9ef11a4
Show file tree
Hide file tree
Showing 33 changed files with 132 additions and 426 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "env/axi_vip"]
path = env/axi_vip
url = [email protected]:taichi-ishitani/tvip-axi.git
[submodule "rtl/bcm"]
path = rtl/bcm
url = [email protected]:taichi-ishitani/tbcm.git
4 changes: 2 additions & 2 deletions env/router/tnoc_router_internal_if_adapter.sv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module tnoc_rounter_internal_if_adapter

assign request = flit_in_if.valid & flit_in_if.vc_available;
assign free = flit_in_if.ready;
tnoc_round_robin_arbiter #(CHANNELS, 1) u_arbiter (
tbcm_round_robin_arbiter #(CHANNELS, 1) u_arbiter (
.clk (clk ),
.rst_n (rst_n ),
.i_request (request ),
Expand Down Expand Up @@ -50,7 +50,7 @@ module tnoc_rounter_internal_if_adapter

assign request = flit_internal_in_if.valid & flit_internal_in_if.vc_available;
assign free = flit_internal_in_if.ready;
tnoc_round_robin_arbiter #(CHANNELS, 1) u_arbiter (
tbcm_round_robin_arbiter #(CHANNELS, 1) u_arbiter (
.clk (clk ),
.rst_n (rst_n ),
.i_request (request ),
Expand Down
1 change: 1 addition & 0 deletions rtl/bcm
Submodule bcm added at 4b1af9
4 changes: 0 additions & 4 deletions rtl/common/compile.f
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
+incdir+${TNOC_HOME}/rtl/common
${TNOC_HOME}/rtl/common/tnoc_enums_pkg.sv
${TNOC_HOME}/rtl/common/tnoc_fifo.sv
${TNOC_HOME}/rtl/common/tnoc_mux.sv
${TNOC_HOME}/rtl/common/tnoc_demux.sv
${TNOC_HOME}/rtl/common/tnoc_round_robin_arbiter.sv
${TNOC_HOME}/rtl/common/tnoc_flit_if.sv
${TNOC_HOME}/rtl/common/tnoc_flit_if_mux.sv
${TNOC_HOME}/rtl/common/tnoc_flit_if_demux.sv
Expand Down
13 changes: 0 additions & 13 deletions rtl/common/tnoc_demux.sv

This file was deleted.

179 changes: 0 additions & 179 deletions rtl/common/tnoc_fifo.sv

This file was deleted.

2 changes: 1 addition & 1 deletion rtl/common/tnoc_flit_if_arbiter.sv
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module tnoc_flit_if_arbiter
) ? '1 : '0;
end

tnoc_round_robin_arbiter #(
tbcm_round_robin_arbiter #(
.REQUESTS (ENTRIES ),
.KEEP_RESULT (1 )
) u_arbiter (
Expand Down
27 changes: 15 additions & 12 deletions rtl/common/tnoc_flit_if_demux.sv
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,33 @@ module tnoc_flit_if_demux
assign vc_available[i] = flit_out_if[i].vc_available;
end

tnoc_demux #(
tbcm_demux #(
.WIDTH (CHANNELS ),
.ENTRIES (ENTRIES )
.ENTRIES (ENTRIES ),
.ONE_HOT (1 )
) u_valid_demux (
.i_select (i_select ),
.i_value (flit_in_if.valid ),
.o_value (valid )
.i_data (flit_in_if.valid ),
.o_data (valid )
);

tnoc_mux #(
tbcm_mux #(
.WIDTH (CHANNELS ),
.ENTRIES (ENTRIES )
.ENTRIES (ENTRIES ),
.ONE_HOT (1 )
) u_raedy_mux (
.i_select (i_select ),
.i_value (ready ),
.o_value (flit_in_if.ready )
.i_data (ready ),
.o_data (flit_in_if.ready )
);

tnoc_mux #(
tbcm_mux #(
.WIDTH (CHANNELS ),
.ENTRIES (ENTRIES )
.ENTRIES (ENTRIES ),
.ONE_HOT (1 )
) u_vc_available_mux (
.i_select (i_select ),
.i_value (vc_available ),
.o_value (flit_in_if.vc_available )
.i_data (vc_available ),
.o_data (flit_in_if.vc_available )
);
endmodule
33 changes: 18 additions & 15 deletions rtl/common/tnoc_flit_if_fifo.sv
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ module tnoc_flit_if_fifo
assign flit_in_if.vc_available[i] = ~almost_full[i];
assign flit_out_if.valid[i] = ~empty[i];

tnoc_fifo #(
.WIDTH (TNOC_FLIT_WIDTH ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT )
tbcm_fifo #(
.DATA_TYPE (tnoc_flit ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT ),
.FLAG_FF_OUT (1 )
) u_fifo (
.clk (clk ),
.rst_n (rst_n ),
Expand All @@ -64,11 +65,12 @@ module tnoc_flit_if_fifo
assign flit_in_if.vc_available = ~almost_full;
assign flit_out_if.valid = ~empty;

tnoc_fifo #(
.WIDTH (TNOC_FLIT_WIDTH ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT )
tbcm_fifo #(
.DATA_TYPE (tnoc_flit ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT ),
.FLAG_FF_OUT (1 )
) u_fifo (
.clk (clk ),
.rst_n (rst_n ),
Expand Down Expand Up @@ -98,11 +100,12 @@ module tnoc_flit_if_fifo
assign push_data.flit = flit_in_if.flit[0];
assign pop = |(flit_out_if.valid & flit_out_if.ready);

tnoc_fifo #(
.WIDTH ($bits(s_fifo_data) ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT )
tbcm_fifo #(
.DATA_TYPE (s_fifo_data ),
.DEPTH (DEPTH ),
.THRESHOLD (THRESHOLD ),
.DATA_FF_OUT (DATA_FF_OUT ),
.FLAG_FF_OUT (1 )
) u_fifo (
.clk (clk ),
.rst_n (rst_n ),
Expand Down
Loading

0 comments on commit 9ef11a4

Please sign in to comment.