Login  Register

Re: Running Test Script wipes out Chip parts

Posted by scipio on Jan 18, 2020; 9:58am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Running-Test-Script-wipes-out-Chip-parts-tp4034131p4034133.html

Thanks - for benefit of any other dummy, what I am doing is:

1.Start Hardware Simulator
2. Load Not.dhl
3. Load Not.txt (Notepad file) - looks good!
4. Load Script Not.tst (notice that API is now not correct eg 1 cahnged to 0)
5. Run Not.tst

Then as you say it goes to default which does not contain my PARTS implemenation.

So I think my problem is this default file, Not.dhl.

I can't open it so how do I use Notepad to edit it?


On 18/01/2020 07:36, ivant [via Nand2Tetris Questions and Answers Forum] wrote:
What do you mean by "wipes out"? Wipes it from where?

I'm not sure if I'm getting this right, but I think you do the following:
1. Load the chip
2. Load the test script
3. Run the test script

If that's the case, then the problem is that the test script itself expects to find the chip definition in the file Not.hdl and it loads it from there. The default file contains just the skeleton, without any actual implementation. What you need to do is to edit this file and then load only the test script and run it. It should take care of the rest.


If you reply to this email, your message will be added to the discussion below:
http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/Running-Test-Script-wipes-out-Chip-parts-tp4034131p4034132.html
To unsubscribe from Running Test Script wipes out Chip parts, click here.
NAML