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

Subversion Repositories light8080

[/] [light8080/] [trunk/] [tools/] [ihex2vlog/] [ihex2vlog.c] - Diff between revs 65 and 68

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");

powered by: WebSVN 2.1.0

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