Nand2Tetris Questions and Answers Forum
›
Hardware
›
Chapter 1
Search
everywhere
only in this topic
Advanced Search
Need help understanding And16.hdl
Classic
List
Threaded
♦
♦
Locked
8 messages
Mshada
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Need help understanding And16.hdl
This post was updated on
.
here's what i have, but it's not working, it fails the comparison @ line 4 of the compare file.
it outputs
0000000000000001
where it should be
1111111111111111
can anyone see what I've done wrong?
Thanks.
[code removed by request]
(nand'd improperly)
culchie
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
Looks like you're only manipulating the least significant bits, ie a[0] and b[0].
You're not doing anything to manipulate bits 1 to 15
Mshada
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
This post was updated on
.
do I have to do something like
[code removed by request]
a programming loop?
Thanks.
culchie
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
AFAIK you have to do it bit by bit as would be the case if you were physically wiring it
Todun
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
This post was updated on
.
I have the same issue with Mshada. Is there a for-loop functionality like in VHDL or is the only solution to the problem to list the internal-chip-part for each bit as follows: ... ?
[
Working HDL code removed by admin.
]
Thanks!
ybakos
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
You must wire them manually as you've done.
BTW, don't post entire HDL implementations of chips.
Mshada
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
Ok, i was thinking of it too much like software and not like hardware.
Seeing as they where failed chips, i didn't see the problem, but I'll remove them.
Todun
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Need help understanding And16.hdl
In reply to
this post
by ybakos
Sorry about posting the HDL. I did not know there was a rules-section. That was my first ever post here...btw, thanks for the feedback.
Free forum by Nabble
Edit this page