Skip to content
Snippets Groups Projects
Commit b07bcb88 authored by dwf1m12's avatar dwf1m12
Browse files

Improve the datestamp in bootrom.v generator to YYMMDDHHMM

parent 37fa394f
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ module SROM_Ax32
output wire [31:0] RDATA); //Read Data
localparam MEMDEPTH = (1 << (ADDRWIDTH)-1)-1;
localparam romgenfile = "bootmem.v";
localparam romgenfile = "bootrom.v";
// Reg declarations
reg [7:0] rombyte0 [0:MEMDEPTH];
......@@ -40,11 +40,11 @@ module SROM_Ax32
function [31:0] NoX32; input [31:0] n; NoX32 = (((^n) === 1'bx) ? 32'h0 : n); endfunction
integer fd; // file descriptor for file output
integer i;
reg [23:0] today [0:1];
reg [39:0] today [0:1];
initial
begin
$system("date +%y%m%d >date_file"); //format yymmdd
$system("date +%y%m%d%H%M >date_file"); //format yymmdd
$readmemh("date_file", today);
$display("data_file: %x", today[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment