[Libre-soc-bugs] [Bug 671] convert spec pseudocode to use XLEN width

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Aug 22 17:00:44 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=671

--- Comment #4 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
works perfectly:

     RA[XLEN:XLEN - 1]

fails with a syntax error:

     RA[XLEN:XLEN-1]

because it's interpreted as a number - "-1"

which matches against *two* tokens:

    {VARIABLE}{NUMBER}

*not*

    {VARIABLE}{MINUSOPERATOR}{NUMBER}

doh that's very annoying, and i'm not sure how to fix it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list