Closed rlindsberg closed 6 years ago
@gitgnmn Should I work on this or you have already written tb?
So I'm working on this test bench
You do that. I jumped straight to adder8 since you seemed to be so fast with the b4_ripple_adder, which should be done now.
@gitgnmn It seems that you have been outside and bicycling...
It's from https://www.electronicshub.org/carry-look-ahead-adder/ but I guess that's a circuit "improved" for speed. I should have made the simpler one given as an example during the lecture. But I saw that one first after I had coded all that... spaghetti. If you want to change it for something more understandable than that's ok.
Did you wrote the code based on this scheme?
yes
Wow! That's impressive!
I used this one
I ran a testbench of your code, without carry-in nor carry-out through. Here are the changes I made:
And here is the result:
8+1 should give 1001, 15+3 should give 0010. But... 🙈🙈🙈
So not totally unexpected, I most have forgotten/misstyped something. -.-
Will you try to fix it or should I take a look at it tomorrow?
Still good that I could get some value out of it! My testbench just gives me UUUUUUUU. It's too complicated to follow the data path of the component and actually hard code how the signals should move. Isn't it a structural model then?
I'm rewriting it now. I will ask you for review when I finish. You can work on the README.md if you want :)
"Isn't it a structural model then?" I'd think so concidering the detail level. It is quite literally describing the component on the gate level.
Yes, but we're supposed to create a functional model 😅
https://github.com/rlindsberg/1331IL-VHDL-Design/blob/9486a7691ebf25ab2e86c60470e4a16806d4c9c7/alabb1/Carry_lookahead_adder/tb_b4_carry_lookahead_adder.vhd#L5-L12