Skip to content
Snippets Groups Projects
Commit 073d50d9 authored by Alex Forencich's avatar Alex Forencich
Browse files

Round up default KEEP_WIDTH settings when DATA_WIDTH is not a multiple of 8

parent 96716b05
No related branches found
No related tags found
No related merge requests found
Showing
with 23 additions and 23 deletions
...@@ -205,7 +205,7 @@ Parametrizable priority encoder. ...@@ -205,7 +205,7 @@ Parametrizable priority encoder.
DATA_WIDTH : width of tdata signal DATA_WIDTH : width of tdata signal
KEEP_ENABLE : enable tkeep signal (default DATA_WIDTH>8) KEEP_ENABLE : enable tkeep signal (default DATA_WIDTH>8)
KEEP_WIDTH : width of tkeep signal (default DATA_WIDTH/8) KEEP_WIDTH : width of tkeep signal (default (DATA_WIDTH+7)/8)
LAST_ENABLE : enable tlast signal LAST_ENABLE : enable tlast signal
ID_ENABLE : enable tid signal ID_ENABLE : enable tid signal
ID_WIDTH : width of tid signal ID_WIDTH : width of tid signal
......
...@@ -39,14 +39,14 @@ module axis_adapter # ...@@ -39,14 +39,14 @@ module axis_adapter #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8), parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on input interface // tkeep signal width (words per cycle) on input interface
parameter S_KEEP_WIDTH = (S_DATA_WIDTH/8), parameter S_KEEP_WIDTH = ((S_DATA_WIDTH+7)/8),
// Width of output AXI stream interface in bits // Width of output AXI stream interface in bits
parameter M_DATA_WIDTH = 8, parameter M_DATA_WIDTH = 8,
// Propagate tkeep signal on output interface // Propagate tkeep signal on output interface
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8), parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on output interface // tkeep signal width (words per cycle) on output interface
parameter M_KEEP_WIDTH = (M_DATA_WIDTH/8), parameter M_KEEP_WIDTH = ((M_DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -40,7 +40,7 @@ module axis_arb_mux # ...@@ -40,7 +40,7 @@ module axis_arb_mux #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// input tid signal width // input tid signal width
......
...@@ -75,7 +75,7 @@ module {{name}} # ...@@ -75,7 +75,7 @@ module {{name}} #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// input tid signal width // input tid signal width
......
...@@ -43,7 +43,7 @@ module axis_async_fifo # ...@@ -43,7 +43,7 @@ module axis_async_fifo #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -43,14 +43,14 @@ module axis_async_fifo_adapter # ...@@ -43,14 +43,14 @@ module axis_async_fifo_adapter #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8), parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on input interface // tkeep signal width (words per cycle) on input interface
parameter S_KEEP_WIDTH = (S_DATA_WIDTH/8), parameter S_KEEP_WIDTH = ((S_DATA_WIDTH+7)/8),
// Width of output AXI stream interface in bits // Width of output AXI stream interface in bits
parameter M_DATA_WIDTH = 8, parameter M_DATA_WIDTH = 8,
// Propagate tkeep signal on output interface // Propagate tkeep signal on output interface
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8), parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on output interface // tkeep signal width (words per cycle) on output interface
parameter M_KEEP_WIDTH = (M_DATA_WIDTH/8), parameter M_KEEP_WIDTH = ((M_DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -40,7 +40,7 @@ module axis_broadcast # ...@@ -40,7 +40,7 @@ module axis_broadcast #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -75,7 +75,7 @@ module {{name}} # ...@@ -75,7 +75,7 @@ module {{name}} #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -42,7 +42,7 @@ module axis_crosspoint # ...@@ -42,7 +42,7 @@ module axis_crosspoint #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -81,7 +81,7 @@ module {{name}} # ...@@ -81,7 +81,7 @@ module {{name}} #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -40,7 +40,7 @@ module axis_demux # ...@@ -40,7 +40,7 @@ module axis_demux #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -75,7 +75,7 @@ module {{name}} # ...@@ -75,7 +75,7 @@ module {{name}} #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -43,7 +43,7 @@ module axis_fifo # ...@@ -43,7 +43,7 @@ module axis_fifo #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
...@@ -43,14 +43,14 @@ module axis_fifo_adapter # ...@@ -43,14 +43,14 @@ module axis_fifo_adapter #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8), parameter S_KEEP_ENABLE = (S_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on input interface // tkeep signal width (words per cycle) on input interface
parameter S_KEEP_WIDTH = (S_DATA_WIDTH/8), parameter S_KEEP_WIDTH = ((S_DATA_WIDTH+7)/8),
// Width of output AXI stream interface in bits // Width of output AXI stream interface in bits
parameter M_DATA_WIDTH = 8, parameter M_DATA_WIDTH = 8,
// Propagate tkeep signal on output interface // Propagate tkeep signal on output interface
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8), parameter M_KEEP_ENABLE = (M_DATA_WIDTH>8),
// tkeep signal width (words per cycle) on output interface // tkeep signal width (words per cycle) on output interface
parameter M_KEEP_WIDTH = (M_DATA_WIDTH/8), parameter M_KEEP_WIDTH = ((M_DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -39,7 +39,7 @@ module axis_frame_len # ...@@ -39,7 +39,7 @@ module axis_frame_len #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Width of length counter // Width of length counter
parameter LEN_WIDTH = 16 parameter LEN_WIDTH = 16
) )
......
...@@ -39,7 +39,7 @@ module axis_frame_length_adjust # ...@@ -39,7 +39,7 @@ module axis_frame_length_adjust #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -39,7 +39,7 @@ module axis_frame_length_adjust_fifo # ...@@ -39,7 +39,7 @@ module axis_frame_length_adjust_fifo #
// If disabled, tkeep assumed to be 1'b1 // If disabled, tkeep assumed to be 1'b1
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -40,7 +40,7 @@ module axis_mux # ...@@ -40,7 +40,7 @@ module axis_mux #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -75,7 +75,7 @@ module {{name}} # ...@@ -75,7 +75,7 @@ module {{name}} #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tid signal // Propagate tid signal
parameter ID_ENABLE = 0, parameter ID_ENABLE = 0,
// tid signal width // tid signal width
......
...@@ -38,7 +38,7 @@ module axis_pipeline_fifo # ...@@ -38,7 +38,7 @@ module axis_pipeline_fifo #
// Propagate tkeep signal // Propagate tkeep signal
parameter KEEP_ENABLE = (DATA_WIDTH>8), parameter KEEP_ENABLE = (DATA_WIDTH>8),
// tkeep signal width (words per cycle) // tkeep signal width (words per cycle)
parameter KEEP_WIDTH = (DATA_WIDTH/8), parameter KEEP_WIDTH = ((DATA_WIDTH+7)/8),
// Propagate tlast signal // Propagate tlast signal
parameter LAST_ENABLE = 1, parameter LAST_ENABLE = 1,
// Propagate tid signal // Propagate tid signal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment