Skip to content

Commit db9535f

Browse files
Fix up xpm constraints on thresholds
1 parent d605c83 commit db9535f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hdl/ip/vhd/fifos/dcfifo_mixed_xpm.vhd

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ entity dcfifo_mixed_xpm is
6464
end entity;
6565

6666
architecture xpm of dcfifo_mixed_xpm is
67+
constant read_depth : natural := wfifo_write_depth * wdata_width / rdata_width;
6768

6869
constant read_mode : string := sel(showahead_mode, "fwft", "std");
6970
constant read_latency : integer := sel(showahead_mode, 0, 1);
7071
constant prog_empty_thresh : integer := sel(showahead_mode, 3 + 2, 3);
71-
constant prog_full_thresh : integer := sel(showahead_mode, 3 + 2 + cdc_stages, 3 + cdc_stages);
72+
constant prog_full_thresh : integer := sel(showahead_mode, 3 + 2*(wfifo_write_depth/read_depth) + cdc_stages, 3 + cdc_stages);
7273

7374
begin
7475

0 commit comments

Comments
 (0)