URL
https://opencores.org/ocsvn/light8080/light8080/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 65 |
Rev 68 |
Line 269... |
Line 269... |
fprintf(file, "\n");
|
fprintf(file, "\n");
|
fprintf(file, "//-----------------------------------------------------------------------------\n");
|
fprintf(file, "//-----------------------------------------------------------------------------\n");
|
fprintf(file, "always @(posedge clk)\n");
|
fprintf(file, "always @(posedge clk)\n");
|
fprintf(file, "begin\n");
|
fprintf(file, "begin\n");
|
fprintf(file, " if (we)\n");
|
fprintf(file, " if (we)\n");
|
|
fprintf(file, " begin\n");
|
fprintf(file, " ram[addr] <= din;\n");
|
fprintf(file, " ram[addr] <= din;\n");
|
|
fprintf(file, " dout <= din;\n");
|
|
fprintf(file, " end\n");
|
|
fprintf(file, " else\n");
|
fprintf(file, " dout <= ram[addr];\n");
|
fprintf(file, " dout <= ram[addr];\n");
|
fprintf(file, "end\n");
|
fprintf(file, "end\n");
|
fprintf(file, "\n");
|
fprintf(file, "\n");
|
fprintf(file, "endmodule\n");
|
fprintf(file, "endmodule\n");
|
fprintf(file, "//-----------------------------------------------------------------------------\n");
|
fprintf(file, "//-----------------------------------------------------------------------------\n");
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.