Skip to content

ROM simulation model using $readmemb for binary file will NOT work #253

@tvd040562

Description

@tvd040562

Describe the bug
ROM simulation model using $readmemb for binary file will NOT work. It should use $fread for binary file to initialize the memory array

Version
Which commit are you using?
v1.2.48

To Reproduce
What did you do to demonstrate the bug?
Simulation

Expected behavior
initial begin
int FILE_ID_L = $fopen("sineL.bin", "rb");
$fread(mem, FILE_ID_L);
$fclose(FILE_ID_L);
end

Logs
If applicable, add logs or output to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions