OpenCores
URL https://opencores.org/ocsvn/light8080/light8080/trunk

Subversion Repositories light8080

[/] [light8080/] [trunk/] [c/] [ram_image.v] - Diff between revs 67 and 68

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 67 Rev 68
Line 1048... Line 1048...
 
 
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
always @(posedge clk)
always @(posedge clk)
begin
begin
    if (we)
    if (we)
 
    begin
        ram[addr] <= din;
        ram[addr] <= din;
 
        dout <= din;
 
    end
 
    else
    dout <= ram[addr];
    dout <= ram[addr];
end
end
 
 
endmodule
endmodule
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.