An A2L File can be generated using an ELF File or PDB File in Simulink. You can refer to the following documentation detailing the procedure to generate an A2L File:
For further details about customizing the generated a2l file, you can refer to the documentation linked below: