Skip to content

Commit

Permalink
Updating AxiStreamRingBuffer.vhd
Browse files Browse the repository at this point in the history
adding support for COMMON_CLK_G when (dataClk=axilClk) case
  • Loading branch information
ruck314 committed Sep 27, 2023
1 parent aeef7c7 commit f85aebb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions axi/axi-stream/rtl/AxiStreamRingBuffer.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ entity AxiStreamRingBuffer is
RST_ASYNC_G : boolean := false;
SYNTH_MODE_G : string := "inferred";
MEMORY_TYPE_G : string := "block";
COMMON_CLK_G : boolean := false; -- true if dataClk=axilClk
DATA_BYTES_G : positive := 16;
RAM_ADDR_WIDTH_G : positive := 9;
-- AXI Stream Configurations
Expand Down Expand Up @@ -172,6 +173,7 @@ begin
U_Ram : entity surf.SimpleDualPortRamXpm
generic map (
TPD_G => TPD_G,
COMMON_CLK_G => COMMON_CLK_G,
MEMORY_TYPE_G => MEMORY_TYPE_G,
READ_LATENCY_G => 2,
DATA_WIDTH_G => 8*DATA_BYTES_G,
Expand All @@ -193,6 +195,7 @@ begin
U_Ram : entity surf.SimpleDualPortRamAlteraMf
generic map (
TPD_G => TPD_G,
COMMON_CLK_G => COMMON_CLK_G,
MEMORY_TYPE_G => MEMORY_TYPE_G,
READ_LATENCY_G => 2,
DATA_WIDTH_G => 8*DATA_BYTES_G,
Expand Down

0 comments on commit f85aebb

Please sign in to comment.