I am sorry for my poor explanation of the problem, i'll try my best to rephrase it so, hopefully, it will be easier to understand my request.
My assignment is to implement a Sysyolic Array. This is composed of various blocks called processing elements which have the job to pass the two inputs they recieve to the elements on their right and under them, multiply their inputs, add them and store them thanks to a feedback register. Being "a" and "b" the inputs and being "c11" the first processing element, it has to implement the following equation: \[ c_{11}=\sum_{k=1}^3 a_{1k} * b_{k1} \]
The task requires that the multiplier, the feedback register and the adder are implemented using the behavioural architecture, meanwhile, every single processing element has to be built using the structural architecture.
My doubts hinge on how to connect, in the structural architecture, the output of the feedback register to the input of the sum. I guess the same signal has to be the output of the feedback register and the second input of the sum, that's what i am trying to do with the signal w0 and w1.
In my code i also added two initial registers just to pass the inputs to the next processing elements and a second output "results" of the feedback register which has to contain the results of the calculi going on inside the processing element.
I testbenched every components of the code and they work fine but, when i testbenched the whole processing element, the output "results" remains "0", making me think that the connection between the feedback register and the adder is wrong.
In the first attached picture i show how, in the struct architecture of the processing element, i linked the different components, while on the second one i show the architecture of the systolic array with the differents processing elements (to give a better idea of it, my task is to implement it just for 3x3 matrix, so it's easier than that).
I hope that this post sounds clearer than the last one, i am sorry but i am kinda new to the VHDL language.
I thanks everyone who have spent and are spending their time on this post, trying to solve my problems, i am grateful for it