Automatic code converter from matlab to verilog/hdl code is available. Choose: File ->New-> Code Generation Project and save the project it in the form of hdl code generation format. Now perform the basic steps to obtain the final code in VHDL/Verilog code format.
thank you very much for sending code. but i think this may valid for 4*4 matrix multiplication, then how to write for big size matrices (for example 256*256) ?