|
1 | 1 | // ***************************************************************************
|
2 | 2 | // ***************************************************************************
|
3 |
| -// Copyright 2014 - 2017 (c) Analog Devices, Inc. All rights reserved. |
| 3 | +// Copyright 2014 - 2023 (c) Analog Devices, Inc. All rights reserved. |
4 | 4 | //
|
5 | 5 | // In this HDL repository, there are many different and unique modules, consisting
|
6 | 6 | // of various HDL (Verilog or VHDL) components. The individual modules are
|
@@ -309,7 +309,6 @@ module request_arb #(
|
309 | 309 | wire [ID_WIDTH+3-1:0] rewind_req_data;
|
310 | 310 |
|
311 | 311 | reg src_throttler_enabled = 1'b1;
|
312 |
| - wire src_throttler_enable; |
313 | 312 | wire rewind_state;
|
314 | 313 |
|
315 | 314 | /* Unused for now
|
@@ -772,6 +771,26 @@ module request_arb #(
|
772 | 771 | .m_axis_level(),
|
773 | 772 | .m_axis_empty());
|
774 | 773 |
|
| 774 | + wire src_throttler_enable; |
| 775 | + |
| 776 | + sync_event #( |
| 777 | + .ASYNC_CLK(ASYNC_CLK_REQ_SRC) |
| 778 | + ) sync_rewind ( |
| 779 | + .in_clk(req_clk), |
| 780 | + .in_event(rewind_state), |
| 781 | + .out_clk(src_clk), |
| 782 | + .out_event(src_throttler_enable)); |
| 783 | + |
| 784 | + always @(posedge src_clk) begin |
| 785 | + if (src_resetn == 1'b0) begin |
| 786 | + src_throttler_enabled <= 'b1; |
| 787 | + end else if (rewind_req_valid) begin |
| 788 | + src_throttler_enabled <= 'b0; |
| 789 | + end else if (src_throttler_enable) begin |
| 790 | + src_throttler_enabled <= 'b1; |
| 791 | + end |
| 792 | + end |
| 793 | + |
775 | 794 | end else begin
|
776 | 795 |
|
777 | 796 | assign s_axis_ready = 1'b0;
|
@@ -878,24 +897,6 @@ module request_arb #(
|
878 | 897 | end
|
879 | 898 | endfunction
|
880 | 899 |
|
881 |
| - sync_event #( |
882 |
| - .ASYNC_CLK(ASYNC_CLK_REQ_SRC) |
883 |
| - ) sync_rewind ( |
884 |
| - .in_clk(req_clk), |
885 |
| - .in_event(rewind_state), |
886 |
| - .out_clk(src_clk), |
887 |
| - .out_event(src_throttler_enable)); |
888 |
| - |
889 |
| - always @(posedge src_clk) begin |
890 |
| - if (src_resetn == 1'b0) begin |
891 |
| - src_throttler_enabled <= 'b1; |
892 |
| - end else if (rewind_req_valid) begin |
893 |
| - src_throttler_enabled <= 'b0; |
894 |
| - end else if (src_throttler_enable) begin |
895 |
| - src_throttler_enabled <= 'b1; |
896 |
| - end |
897 |
| - end |
898 |
| - |
899 | 900 | /*
|
900 | 901 | * Make sure that we do not request more data than what fits into the
|
901 | 902 | * store-and-forward burst memory.
|
|
0 commit comments