HDL File edited in text editor won't show changes when chip uploaded

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

HDL File edited in text editor won't show changes when chip uploaded

Margaret
I have opened and edited the hdl file in two different text editors, both for a mac, and it doesn't seem to be saving anything because when I edit the HDL file and load the chip, it still says "Parts: // Put your code here:". Any suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
Are you sure you are saving the file after you edit it?

Have you tried opening up the file in your text editor after you have saved and closed it?

Are you sure you are trying to load the same file that you modified? In other words, is it possible that you are editing and saving a file in on folder in your text editor but then opening up a file by the same name but in a different folder in the Hardware Simulator?
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

Margaret
I am saving it as I have closed it and reopened it and it was indeed edited. I did make sure to open the file from the same path and there isn’t an option to save as in the text editor so I don’t even know how I would save it to any other location if I wanted to.

A lot of the other answers I found were regarding the encoding, but I am not sure of Mac is different in the right encoding to use  I also removed white space as that was a suggestion.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
Are you sure that the text editor you are using actually is a text editor (versus something like a word processor)?

Attach your edited file and I will take a look at it.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

Margaret
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
When I open that file I get just the original file -- no edits. That's just opening it with the browser. If I save it to disk and open it with Notepad++ I get the same thing.

Try using your editor to save your file to a different, unique file name such as myNot16.hdl and then open that file in the Hardware Simulator.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

drnanjo17
I am about to get zero on my homework because I am having exactly the same problem. I've tried editing the file inside IntelliJ, outside of IntelliJ, renaming it, placing it in other directories. Nothing works. I have the code for most of it but since the assignment says to show the chip running, I'm screwed. This shouldn't happen.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
Attach your edited file and I'll take a look.

Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

drnanjo17
Mux.hdl

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
What happens, exactly, when you open this file in the simulator (and try to run it, if you get that far)?
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

drnanjo17
Nothing happens. The edits show in IntelliJ and EditPad but when I load it into the Hardware Simulator, it looks as if it wasn't edited at all, and nothing happens when it runs. The code edits are visible outside of the Simulator, not in it. And the simulator seems to not recognize that edits have been done.
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
When I load your file into the simulator it shows all the edits.

Have you tried renaming the file to something completely unique (so that you know that it is the only file on your computer with that name) and then opening that file?

Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

drnanjo17
In reply to this post by drnanjo17
All the other IDEs and software on my computer work normally and show and process edits.

Maybe it's something about the install. Maybe something is broken.

It's late and I don't want to uninstall and re-install tonight but if I don't drop the class, maybe I should try that.

NJM
Reply | Threaded
Open this post in threaded view
|

Re: HDL File edited in text editor won't show changes when chip uploaded

WBahn
Administrator
The most likely thing is that you are not opening the file that you think you are opening. That's why I'm suggesting that you change the name of the file to something unique and then open that file in the simulator. Forget editors. Just rename the file, or make a copy of it in the same folder with a different name, and try to open the new file.