06-21-2021 03:44 PM
Please post code instead of snapshots of your screen - it make it easier for others to help you - by cut/pasting your code. Without, I need to type from your picture..
localparams are fine within module header as you originally had.
Your problem is a simple syntax error:
module apb_reg_if #( parameter ..., localparam ..., ) ( /* portlist here */ );
You're missing the '#' to start the parameter declaration.
(Darned forums software won't let me bold inline code...)