Skip to content

Fix FUNCTIMECTL: convert init_mem from function to task in sim tops#7

Open
velcroapple wants to merge 1 commit into
cornell-brg:mainfrom
velcroapple:main
Open

Fix FUNCTIMECTL: convert init_mem from function to task in sim tops#7
velcroapple wants to merge 1 commit into
cornell-brg:mainfrom
velcroapple:main

Conversation

@velcroapple

Copy link
Copy Markdown

Verilator 5.048 enforces IEEE 1800-2023 13.4: functions cannot invoke tasks
(FUNCTIMECTL). init_mem, written as a function in BlimpV7/V8/Vdemo top-level
simulators, called fl_mem.init_mem (a task), triggering a hard error.

Converted init_mem to a task and updated the DPI-C export accordingly.
Full test suite passes (make check).

Fixes the "Functions vs. Tasks" item in docs/overview/todo.rst

Verilator 5.048 correctly enforces IEEE 1800-2023 §13.4: functions cannot
invoke tasks (FUNCTIMECTL). init_mem in BlimpV7/V8/Vdemo top-level simulators
called fl_mem.init_mem (a task), triggering a hard error.

Converted init_mem to a task and updated the DPI-C export accordingly.
Fixes the known issue in docs/overview/todo.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant