verilog_always
Member level 2
example_driver
hi ,
In the code I had written I am not able to get wdata_req from the ddr2 controller so it always remains in the state 1. why this is happening?Below is the driver which feds to ddr2 controller IP core and then to FPGA. In the output I am not getting the wdata_req from the ddr2 and I am not able to move another state
s0: begin
state <= (ddr2_ready)? s1:s0;
wr_req <= (ddr2_ready)? 1'b1 : 1'b0;
addr <= {19'd0,counter};
rd_req <= 1'b0;
size <= 2'b01;
end
s1: begin
wr_req <= 1'd0;
if(ddr_wdata_req)
begin
wdata <= {28'd0, counter};
counter <= counter + 4'd4;
state <= (counter == 4'd12) ? s2 : s0;
be <= 4'hf;
end
else
begin
state <= s1;
end
end
hi ,
In the code I had written I am not able to get wdata_req from the ddr2 controller so it always remains in the state 1. why this is happening?Below is the driver which feds to ddr2 controller IP core and then to FPGA. In the output I am not getting the wdata_req from the ddr2 and I am not able to move another state
s0: begin
state <= (ddr2_ready)? s1:s0;
wr_req <= (ddr2_ready)? 1'b1 : 1'b0;
addr <= {19'd0,counter};
rd_req <= 1'b0;
size <= 2'b01;
end
s1: begin
wr_req <= 1'd0;
if(ddr_wdata_req)
begin
wdata <= {28'd0, counter};
counter <= counter + 4'd4;
state <= (counter == 4'd12) ? s2 : s0;
be <= 4'hf;
end
else
begin
state <= s1;
end
end