X
Xenon02
Guest
Hello !
I've got another question about always_ff and always_comb.
Here always_comb is separated and always_ff is also separated.
And this is a loop ? That always_ff provides new input ? and then always_comb is again calculated ?
This is my teacher code but I don't get it why s_x = o_y and in always_ff it is o_y <= s_x.
And o_y isn't defined at the beggining which is wierd.
But here :
Does it change alot if always_comb is inside of always_ff ?
Second question.
How can always_comb be inside of always_ff ? It's like inside of a flipflop there is whole calculations which is wierd. I can't imagine it how it works. Because I only imagine always_ff as D-flipflop and something like o_y <= i_x means the same as i_x input of D flipflop and o_y output Q of D flipflop. So that always_comb is inside of D flipflop looks wierd for me.
I've got another question about always_ff and always_comb.
Here always_comb is separated and always_ff is also separated.
And this is a loop ? That always_ff provides new input ? and then always_comb is again calculated ?
This is my teacher code but I don't get it why s_x = o_y and in always_ff it is o_y <= s_x.
And o_y isn't defined at the beggining which is wierd.
But here :
Does it change alot if always_comb is inside of always_ff ?
Second question.
How can always_comb be inside of always_ff ? It's like inside of a flipflop there is whole calculations which is wierd. I can't imagine it how it works. Because I only imagine always_ff as D-flipflop and something like o_y <= i_x means the same as i_x input of D flipflop and o_y output Q of D flipflop. So that always_comb is inside of D flipflop looks wierd for me.