Doubly linked list using SystemVerilog

Can anyone explain how to create a doubly linked list using system verilog with functions to insert elements and delete elements.

1 Like

you can use structure as a node with data and 2 addresses pointing to prev and next node, And use associative array of structures as a linked list to store in a sparse matrix manner,
or
you can use class and memory assignments to the class.