Skip to content

Commit

Permalink
work around small ghdl synthesis bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Feb 28, 2021
1 parent b3e9a7d commit eae0c01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/window_ctrl/line_buffer.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ begin

if (rising_edge(isl_clk)) then
if (isl_valid = '1') then
if (usig_addr_cnt /= C_BRAM_SIZE - 2) then
-- type cast to avoid ghdl synthesis error:
-- error: synth_static_dyadic_predefined: unhandled IIR_PREDEFINED_IEEE_NUMERIC_STD_NE_UNS_NAT
-- TODO: report bug
if (to_integer(usig_addr_cnt) /= C_BRAM_SIZE - 2) then
usig_addr_cnt <= usig_addr_cnt + 1;
else
usig_addr_cnt <= (others => '0');
Expand Down

0 comments on commit eae0c01

Please sign in to comment.