Nand2Tetris Questions and Answers Forum
›
Hardware
›
Chapter 1
Login
Register
Search
everywhere
only in this topic
Advanced Search
Need help understanding And16.hdl
Classic
List
Threaded
♦
♦
Locked
8 messages
Options
Loading...
Subscribe via email
Move topic
Pin topic
Unpin topic
Lock topic
Unlock topic
Delete this topic
Delete this topic
Change title and meta tags
Embed post
Permalink
Mshada
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 12:23am
Need help understanding And16.hdl
11 posts
This post was updated on
Mar 09, 2010; 11:18pm
.
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 12:41am
Re: Need help understanding And16.hdl
100 posts
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 3:29am
Re: Need help understanding And16.hdl
11 posts
This post was updated on
Mar 09, 2010; 11:17pm
.
do I have to do something like
[code removed by request]
a programming loop?
Thanks.
culchie
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 2:22pm
Re: Need help understanding And16.hdl
100 posts
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 7:54pm
Re: Need help understanding And16.hdl
25 posts
This post was updated on
Sep 12, 2011; 1:55am
.
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 10:05pm
Re: Need help understanding And16.hdl
566 posts
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 09, 2010; 11:16pm
Re: Need help understanding And16.hdl
11 posts
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
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 10, 2010; 1:31am
Re: Need help understanding And16.hdl
25 posts
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