PCI 9656RDK- LITE Hardware Reference Manual v1.4
16
© 2006 PLX Technology, Inc. All rights reserved.
s2: if ((!lwdrdn) && (!blastn))
begin
sramoen <=1;
sramcsn <=1;
oer <='b1;
oeb <='b1;
state <=s0;
end
else
begin
if (sram_adds[9:2]=='hff)
begin
oeb <='b0;
sram_adds[9:2] <= sram_adds[9:2]+1;
state <=s3;
end
else
begin
sram_adds[9:2] <= sram_adds[9:2]+1;
sramoen <=0;
sramcsn <=0;
oer <='b0;
oeb <='b1;
state <=s2;
end
end
s3: begin
sramcsn <=1;
oer
<='b1;
oeb
<='b1;
state
<=s0;
end
default: state <=s0;
endcase
always @(posedge clk)
begin
if
(lhold)
lholda <= lhold;
else
lholda <= 0;
if (!lhold && lbr[1])
lbg[1] <= lbr[1];
else
lbg[1] <= 0;
if (!lhold && !lbr[1] && lbr[0])
lbg[0] <= lbr[0];
else
lbg[0] <= 0;
end
endmodule