Skip to content

Callback should get the field instance path #306

@parthkalgaonkar

Description

@parthkalgaonkar

I want to interface this with peakrdl-regblock and cocotb. The end goal is to have the callbacks write into the field via a deposit on the appropriate flop in simulation.

The relevant section of peakrdl-regblock's output looks a bit like this:

    always_ff @(posedge clk or negedge arst_n) begin
        if(~arst_n) begin
            field_storage.SOURCE_MASK_REG.source_mask.value <= 15'h0;
        end else begin
            if(field_combo.SOURCE_MASK_REG.source_mask.load_next) begin
                field_storage.SOURCE_MASK_REG.source_mask.value <= field_combo.SOURCE_MASK_REG.source_mask.next;
            end
        end
    end

The problem I'm facing is this: The callback only gets the address, width and data as arguments, but the flop in RTL must be referred by name. This name information is not available to the callback. Is it possible to get the field instance in the callback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions