Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] software read-only, hardware write-only not working with write enable #118

Open
1 task done
miguel9554 opened this issue Aug 26, 2024 · 0 comments
Open
1 task done

Comments

@miguel9554
Copy link

miguel9554 commented Aug 26, 2024

Describe the bug

When generating a register map which contains a SW RO HW WO with HW write-enable, tool fails.

Expected behavior

A SW RO HW WO write-enable should result in a storage element, written everytime write enable is asserted. This case is not mentioned in table 12 of the systemRDL spec, so in principle is not prohibited by the spec.

image

Additional context

Following regmap results in the error:

regfile fir_filter_regfile {
    default regwidth = 32;
    reg {
        field { sw = r; hw = w; we=true; fieldwidth = 32; } swr_hww_we_field;
    } test_reg;
};
Generating SystemVerilog RAL model (regblock)...
peakrdl regblock -o output/rtl --cpuif axi4-lite fir_filter_regmap.rdl
fir_filter_regfile.rdl:4:33: error: Use of 'we' property on field 'swr_hww_we_field' that does not implement storage does not make sense
        field { sw = r; hw = w; we=true; fieldwidth = 32; } swr_hww_we_field;
                                ^^
fatal: Elaborate aborted due to previous errors
make: *** [Makefile:36: output/rtl/fir_filter_regmap.sv] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
@miguel9554 and others