Hello, I am a super duper newbie to computers in pretty much any form. I am a PhD biologist teaching high school and a mom... but my student recommended this course for summer.
I just had a great time thinking and figuring what the heck I am doing for the first part of the first project. Forums and resources help along with some research online about basic logic gates. This is quite outside of my way of thinking and will surely challenge me at every step and take me a million hours!
I basically can not believe I got an implementation for my Not gate to work! I am pretty excited, but I can not get other implementations option that I think should also be fine to work.
Hardware Simulator is looking for an additional ) or ' in the line.
I will delete my implementation when you reply.
Any guidance on how to begin to understand this would be awesome. I am pretty certain that these types of questions are going to continue to get in my way. If you think they will unravel as I move on to the other gates that response is useful too. I'm 5 hours in and pretty thrilled to at least have Not, and a plan for And.
Lines starting with two slashes // are comments. They are ignored by the hardware simulator. In your Not.hdl file you actually commented out the implementation, so it's not working. Remove the two slashes from the line after PARTS: and try again.
As Ivan pointed out, // marks comments. If you remove the // then you will get an error:
In HDL file D:\TECS\projects\01\x\Not.hdl, Line 16, A pin name is expected: load Not.hdl
This error is happening when the HardwareSimulator is loading your Not chip. When it sees the "1" in "b=1" it is expecting to see a pin/wire name, which all begin with a-z.
What you are looking for is "b=true". "true" and "false" are built in constants 1 and 0.
Another common problem, if your HDL looks good but the test outputs are always 0, is that you may have made copies of the skeleton files for the HDL into a subdirectory, say projects/01/myhdl, and made your edits there. If you then run the .tst file in the projects/01 directory, it will be loading the skeleton file instead of your edited HDL.
You can scroll through the HDL code in the simulator's HDL window and see if your changes are in fact there.