util_dac_unpack: Don't use localparam symbols in input/output signals

When using a localparam for the width of a input/output signal the tools
won't be able to infer the size of the signal. This results in the signal
always being only 1 bit wide which causes the design to not work.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2014-09-29 19:55:16 +02:00 committed by Istvan Csomortani
parent 04e4458ee1
commit 3ab0f417b4
1 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,6 @@ module util_dac_unpack (
parameter CHANNELS = 8; // valid values are 4 and 8
parameter DATA_WIDTH = 16;
localparam DMA_WIDTH = CHANNELS * DATA_WIDTH;
input clk;
@ -117,11 +116,12 @@ module util_dac_unpack (
input dac_valid_07;
output [DATA_WIDTH-1:0] dac_data_07;
input fifo_valid;
output dma_rd;
input [DMA_WIDTH-1:0] dma_data;
input fifo_valid;
output dma_rd;
input [CHANNELS*DATA_WIDTH-1:0] dma_data;
localparam DMA_WIDTH = CHANNELS*DATA_WIDTH;
wire [CHANNELS-1:0] dac_enable;
wire [CHANNELS-1:0] dac_valid;