hdl-coder

Feedback loop in Simulink/HDL Coder

我们两清 提交于 2019-12-04 07:12:01
问题 I have a system in Simulink/HDL coder (see below image please). I have 3 outputs and 3 inputs. I want my system to run 10 times. After each iteration it should select the outputs and use them as inputs. How I can do that? 回答1: Build a loop using a memory and a initial value block for each signal. The memory block allows you to access the previous iteration signal and the initial value block is used to set the input for the first iteration. A simple example looping back one signal can be found

Feedback loop in Simulink/HDL Coder

故事扮演 提交于 2019-12-02 13:35:26
I have a system in Simulink/HDL coder (see below image please). I have 3 outputs and 3 inputs. I want my system to run 10 times. After each iteration it should select the outputs and use them as inputs. How I can do that? Build a loop using a memory and a initial value block for each signal. The memory block allows you to access the previous iteration signal and the initial value block is used to set the input for the first iteration. A simple example looping back one signal can be found here in the documentation In your case it would look like this: To get 10 iterations, set your simulation