10-15-2013 06:17 AM
Hello, how can i release time domain zero-padding in SysGen ?
for example, i have 64 samples and i need to pad it with zeros.
ty
10-15-2013 07:59 AM
Imagine that you are getting a new sample coming in every clock cycle. When you receive 64 samples, you need to switch to a signal driven by gnd for N more samples (depending on how many zeros you need).
So you would need:
- The ability to count to 64+N
- Ability to compare the count value to the value of 64
- A circuit component that would allow you to switch between two signal sources
10-15-2013 07:24 AM - edited 10-15-2013 07:55 AM
What do you think you should do? If you have a signal and you want to insert zeros at the end of a signal, what would you need?
10-15-2013 07:47 AM
idk :(
10-15-2013 07:59 AM
Imagine that you are getting a new sample coming in every clock cycle. When you receive 64 samples, you need to switch to a signal driven by gnd for N more samples (depending on how many zeros you need).
So you would need:
- The ability to count to 64+N
- Ability to compare the count value to the value of 64
- A circuit component that would allow you to switch between two signal sources
10-15-2013 08:46 AM
Am I right to understand you?
10-15-2013 09:04 AM
10-15-2013 11:42 PM
Thank you very much,
but i have some problems:
i start running some simulations and obtained the different results from simulink and sysgen's padding. How can i fix that?
10-16-2013 01:56 AM
Hi,
that's probably due to the buffer and unbuffer blocks which cause some extra initial latency in the simulink path.
While the behavior looks similar there might be differences in the sampling between the two approaches too.
The tools do exactly what you tell them to do.
But are you able to tell the tools exactly what you want them to do?
That's the big challenge we all have to face every day. :-)
So don't be disappointed. Every little detail can change the behavior of some circuit and trying to describe the same behavior in two different ways (Simulink vs. Xilinx blockset) is not easy and sometimes actually very tricky.
Have a nice simulation
Eilert
10-16-2013 04:05 AM
Ofc, i understand that :)
I'm trying to implement a simulink model in sysgen.
ty
10-16-2013 06:36 AM
Any ideas?
10-17-2013 07:45 AM
Hello again.
I solved the problem - using the Dual Port RAM with sample time N on port A, and sample time 2N (or other) on port B.
Data comes into dual port ram, then out from port B and then to multiplexer with data\zeros.
Thanks all.