-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33abba6
commit 471fa99
Showing
5 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// SPDX-License-Identifier: SHL-0.51 | ||
// | ||
// Thomas Benz <[email protected]> | ||
// Tobias Senti <[email protected]> | ||
// Tobias Senti <[email protected]> | ||
|
||
`include "common_cells/assertions.svh" | ||
`include "common_cells/registers.svh" | ||
|
@@ -35,7 +35,7 @@ module idma_improved_fifo #( | |
); | ||
// Bit Width of the read and write pointers | ||
// One additional bit to detect overflows | ||
localparam PointerWidth = $clog2(Depth) + 1; | ||
localparam int unsigned PointerWidth = $clog2(Depth) + 1; | ||
|
||
//-------------------------------------- | ||
// Prevent Depth 0 | ||
|
@@ -112,7 +112,7 @@ module idma_improved_fifo #( | |
write_ptr_d[PointerWidth-2:0] = '0; | ||
write_ptr_d[PointerWidth-1] = !write_ptr_q[PointerWidth-1]; | ||
end else begin | ||
// Increment pointer | ||
// Increment pointer | ||
write_ptr_d = write_ptr_q + 'd1; | ||
end | ||
end | ||
|
@@ -122,7 +122,7 @@ module idma_improved_fifo #( | |
// Flip Flops | ||
`FF( read_ptr_q, read_ptr_d, '0, clk_i, rst_ni) | ||
`FF(write_ptr_q, write_ptr_d, '0, clk_i, rst_ni) | ||
|
||
`FFL(data_q, data_d, clock_gate || testmode_i, '0, clk_i, rst_ni) | ||
|
||
// no full push | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters