How do you pad zeros to a discrete element-based input?
Mostrar comentarios más antiguos
Hello, For my Simulink code, I am attempting to pad my input data with zeroes. The format should be as follows:
0000000data0000000data...
However, the data is not taken in by frame, and I cannot convert it since I want to use HDL generation. How is this achieved?
Respuesta aceptada
Más respuestas (1)
Bharath Venkataraman
el 4 de Sept. de 2017
0 votos
If your input data is a frame, you can pad zeros and then use the To Sample block for the HDL input.
If you are dealing with samples, I suggest using a counter block followed by a switch block. When the counter is < specified length, pass in zeroes, otherwise send in the data.
1 comentario
Daniel Yang
el 4 de Sept. de 2017
Categorías
Más información sobre Signal Attributes and Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!