Nand2Tetris Questions and Answers Forum
›
Hardware
›
Chapter 1
Login
Register
Search
everywhere
only in this topic
Advanced Search
Porblem with And.HDL
Classic
List
Threaded
♦
♦
Locked
5 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
wfalby
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
Feb 27, 2010; 10:07pm
Porblem with And.HDL
3 posts
This post was updated on
Sep 12, 2011; 1:58am
.
I typed in the following:
[
Correct HDL code removed by admin.
]
I then run the And.tst script and it returns an error: Comparison failure at line 5. The output is always 0.
Where's my error?
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
Feb 27, 2010; 10:13pm
Re: Porblem with And.HDL
566 posts
Put your Nand declaration on one line. Maybe you're using tabs instead of spaces and it's messing up the parser.
wfalby
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
Feb 28, 2010; 7:04pm
Re: Porblem with And.HDL
3 posts
Thanks for your response. I tried putting it all on one line and got the same error. I made sure only spaces were used. I'm running Vista Home Premium and used both Notepad and Wordpad. Does the HDL look correct?
Shimon Schocken
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
Feb 28, 2010; 9:05pm
Re: Porblem with And.HDL
Administrator
30 posts
The HDL looks fine, but it's not the entire HDL file. Email your .hdl file to me and I'll take a look. -- Shimon
wfalby
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 03, 2010; 2:10am
Re: Porblem with And.HDL
3 posts
Shimon:
Did you receive the HDL file?
wfalby
Free forum by Nabble
Edit this page