I have a module that needs to read a config.txt file(18 heaxadecimal values) and then store in a mem variable.Attaching the code I have written below.
There is no data being read and there is no error.
initial
begin
@(posedge AxiReset_N);
$readmemh("axi_enh_config.mem",mem); //Reading the contents of config file to mem variable
end
The mem file looks like :
reg [`CONFIG_FILE_BIT_SIZE-1:0] mem [MEM_SIZE]; //Memory variable to save contents of config file. where `CONFIG_FILE_BIT_SIZE = 72
I have a module that needs to read a config.txt file(18 heaxadecimal values) and then store in a mem variable.Attaching the code I have written below.
There is no data being read and there is no error.
initial
begin
@(posedge AxiReset_N);
$readmemh("axi_enh_config.mem",mem); //Reading the contents of config file to mem variable
end
The mem file looks like :
reg [`CONFIG_FILE_BIT_SIZE-1:0] mem [MEM_SIZE]; //Memory variable to save contents of config file. where `CONFIG_FILE_BIT_SIZE = 72
Add axi_enh_config.mem file here to understand it’s content. Also did you make sure