HardwareSimulator Calculator icon not becoming active

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HardwareSimulator Calculator icon not becoming active

noob69
I have downloaded software from software page where it says "Download the Nand2tetris Software Suite Version 2.6 (about 730K)"
However, when I run downloaded Hardware Simulator it says "2.5" in the title and whatever I do after loading sample HDL files and changing input pin value the calculator icon never becomes active and does not calculate anything!

How to solve this problem?
Reply | Threaded
Open this post in threaded view
|

Re: HardwareSimulator Calculator icon not becoming active

WBahn
Administrator
Post the contents of one of the sample .hdl files you are using. If necessary, we can delete it later.
Reply | Threaded
Open this post in threaded view
|

Re: HardwareSimulator Calculator icon not becoming active

MJoergen
This post was updated on .
I have the same problem. I'm using Xor.hdl as a test. After loading the Xor.hdl, and changing the inputs (a and b), the calculator icon is (still) not available.

I also tried running the corresponding test script Xor.tst, and it fails at line 3.

I can add that I've tried using both Windows 10 and Linux Mint 20. On Linux, I'm using the following version of Java:

openjdk 11.0.14.1 2022-02-08
OpenJDK Runtime Environment (build 11.0.14.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

I'm using the file nand2tetris.zip downloaded from the website. It has a size of 731739 bytes and an md5sum of 592f4146796d204e022b151ff8eb6c13

The screen shot is:


The Xor.hdl file I'm using is:

// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/01/Xor.hdl

/**
 * Exclusive-or gate:
 * out = not (a == b)
 */

CHIP Xor {
    IN a, b;
    OUT out;

    PARTS:
    Not (in=a, out=nota);
    Not (in=b, out=notb);
    And (a=a, b=notb, out=aAndNotb);
    And (a=nota, b=b, out=notaAndb);
    Or  (a=aAndNotb, b=notaAndb, out=out);
}
Reply | Threaded
Open this post in threaded view
|

Re: HardwareSimulator Calculator icon not becoming active

rleininger
Using the .hdl file you provided, the Hardware Simulator performs as described in the tutorial on my system.



After starting the app and loading the Xor.hdl file, I changed the "a" input from 0 to 1.  The Output pins and Internal pins were "grayed" and the Eval button was immediately enabled.  Clicking the enabled button changed the output as expected and the Eval button was disabled.

I am running the sim on Windows 10.  I loaded the simulation files over a year ago, but I believe this is the same version you are running.  My java environment is very old.

Also, the test script supplied for the project completes without error using this HDL file.  I'm afraid this is not much help, but it's apparently not related to the HDL file.