Araxnid
Newbie level 6
- Joined
- Aug 14, 2012
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,366
Hello everyone.
I was working with spi module and encoutered some problem -
My code - SPI module(it's not finished yet):
and my top_module file:
So, XILINX ISE saying me that:
WARNING:Xst:1305 - Output <ser_OUTPUT> is never assigned. Tied to value 0.
WARNING:Xst:646 - Signal <ser_OTPUT> is assigned but never used. This unconnected signal will be trimmed during the optimization process.
WARNING:Xst:1780 - Signal <counter> is never used or assigned. This unconnected signal will be trimmed during the optimization process.
WARNING:Xst:653 - Signal <par_INPUT> is used but never assigned. This sourceless signal will be automatically connected to value 0.
I cant understand why its thinking that ser_OUTPUT is never assigned? Its assigned to load, and load shifts every clk cycle.... test_signal is special signal from my board which will pull down CS and activate SPI module. Can anyone explain what im doing wrong with this? Thanks.
I was working with spi module and encoutered some problem -
My code - SPI module(it's not finished yet):
Code:
module ParallelToSerial(
input CLK,
input [15:0]par_INPUT,
input enable,
output ser_OUTPUT,
output SCLK,
output CS
);
reg [15:0]load;
reg [6:0]counter;
assign ser_OTPUT=load[0];
assign SCLK=CLK;
assign CS = enable;
always @(negedge enable) begin
load=par_INPUT;
end
always @(posedge CLK) begin
if (enable==1'b0) begin
load=load[0] & load[15:1];
end
end
endmodule
and my top_module file:
Code:
module top_module(
input CLK,
output MOSI,
input test_signal,
output SCLK,
output CS
);
reg enable = 1'b1;
reg par_INPUT = 16'd3054;
always @(posedge CLK) begin
if (test_signal==1'b1) begin
enable = 1'b0;
end
end
ParallelToSerial u1(.CLK(CLK),.par_INPUT(par_INPUT),.enable(enable),.ser_OUTPUT(MOSI),.SCLK(SCLK),.CS(CS));
endmodule
So, XILINX ISE saying me that:
WARNING:Xst:1305 - Output <ser_OUTPUT> is never assigned. Tied to value 0.
WARNING:Xst:646 - Signal <ser_OTPUT> is assigned but never used. This unconnected signal will be trimmed during the optimization process.
WARNING:Xst:1780 - Signal <counter> is never used or assigned. This unconnected signal will be trimmed during the optimization process.
WARNING:Xst:653 - Signal <par_INPUT> is used but never assigned. This sourceless signal will be automatically connected to value 0.
I cant understand why its thinking that ser_OUTPUT is never assigned? Its assigned to load, and load shifts every clk cycle.... test_signal is special signal from my board which will pull down CS and activate SPI module. Can anyone explain what im doing wrong with this? Thanks.