Nand2Tetris Questions and Answers Forum
›
Hardware
›
Chapter 1
Search
everywhere
only in this topic
Advanced Search
Porblem with And.HDL
Classic
List
Threaded
♦
♦
Locked
5 messages
wfalby
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Porblem with And.HDL
This post was updated on
.
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
♦
♦
|
Re: Porblem with And.HDL
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
♦
♦
|
Re: Porblem with And.HDL
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
♦
♦
|
Re: Porblem with And.HDL
Administrator
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
♦
♦
|
Re: Porblem with And.HDL
Shimon:
Did you receive the HDL file?
wfalby
Free forum by Nabble
Edit this page