mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed memory size in configs for rv32ic and rv64ic.
Removed warning on call to $fscanf.
This commit is contained in:
parent
61beedf275
commit
818c0abc89
@ -68,8 +68,8 @@
|
||||
|
||||
`define BOOTTIMBASE 32'h00000000
|
||||
`define BOOTTIMRANGE 32'h00003FFF
|
||||
`define TIMBASE 32'h80000000
|
||||
`define TIMRANGE 32'h0007FFFF
|
||||
`define TIMBASE 32'h80000000
|
||||
`define TIMRANGE 32'h07FFFFFF
|
||||
`define CLINTBASE 32'h02000000
|
||||
`define CLINTRANGE 32'h0000FFFF
|
||||
`define GPIOBASE 32'h10012000
|
||||
|
@ -72,8 +72,8 @@
|
||||
|
||||
`define BOOTTIMBASE 32'h00000000
|
||||
`define BOOTTIMRANGE 32'h00003FFF
|
||||
`define TIMBASE 32'h80000000
|
||||
`define TIMRANGE 32'h0007FFFF
|
||||
`define TIMBASE 32'h80000000
|
||||
`define TIMRANGE 32'h07FFFFFF
|
||||
`define CLINTBASE 32'h02000000
|
||||
`define CLINTRANGE 32'h0000FFFF
|
||||
`define GPIOBASE 32'h10012000
|
||||
|
@ -110,6 +110,8 @@ module FunctionName(reset, clk, ProgramAddrMapFile, ProgramLabelMapFile);
|
||||
integer ProgramAddrMapLineCount, ProgramLabelMapLineCount;
|
||||
longint ProgramAddrMapLine;
|
||||
string ProgramLabelMapLine;
|
||||
integer status;
|
||||
|
||||
|
||||
// preload
|
||||
// initial begin
|
||||
@ -123,7 +125,7 @@ module FunctionName(reset, clk, ProgramAddrMapFile, ProgramLabelMapFile);
|
||||
// read line by line to count lines
|
||||
if (ProgramAddrMapFP) begin
|
||||
while (! $feof(ProgramAddrMapFP)) begin
|
||||
$fscanf(ProgramAddrMapFP, "%h\n", ProgramAddrMapLine);
|
||||
status = $fscanf(ProgramAddrMapFP, "%h\n", ProgramAddrMapLine);
|
||||
|
||||
ProgramAddrMapLineCount = ProgramAddrMapLineCount + 1;
|
||||
end
|
||||
@ -141,7 +143,7 @@ module FunctionName(reset, clk, ProgramAddrMapFile, ProgramLabelMapFile);
|
||||
|
||||
if (ProgramLabelMapFP) begin
|
||||
while (! $feof(ProgramLabelMapFP)) begin
|
||||
$fscanf(ProgramLabelMapFP, "%s\n", ProgramLabelMapLine);
|
||||
status = $fscanf(ProgramLabelMapFP, "%s\n", ProgramLabelMapLine);
|
||||
ProgramLabelMapMemory[ProgramLabelMapLineCount] = ProgramLabelMapLine;
|
||||
ProgramLabelMapLineCount = ProgramLabelMapLineCount + 1;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user