While reviewing the code that the FPGA group has produced, I saw something that looks bad. It is not likely to affect the functionality, but it is not good coding style and may use extra resources.
They are using Verilog which is not my first HDL language and I am not as familiar with it as I am VHDL. But because the case statement is not fully specified the code below appears to me to produce more complex logic than needed.
always @ (negedge rst_n or posedge clk) begin if (!rst_n)begin mask_wr