Simulate y86 program as per Computer Systems: A Programmer's Perspective 3e Student Site - simulator

I would like to simulate y86 program in a simulation environment. I followed the Chapter 4 processor architecture from this link. I downloaded the sim.tar file from source distribution. I unzipped the file using following commands on linux.
linux> tar xf sim.tar
linux> cd sim
linux> make clean
linux> make
I got misc, pipe, ptest, seq, y86-code subfolder under sim folder.
Under seq subfolder there is a file called seq-full.hcl which I want to simulate on simulation environment.
I got some instruction from README file under Chapter 4: Processor Architecture Y86-64 tools and documentation -> README tab. Here is the link README. I also got some instruction simulator guide link from the same tab.
But I did not understand how could I run the seq-full.hcl after reading so many study materials.
If you read simguide study material you can find different section there. The 1st section is installing. I went through the commands as I mentioned early but this gave me a sim folder and sub folder under sim folder.
The section 3.3 - Simulator Command Line Options this is not clear to me.
If anyone has any idea how to install the simulator and run program on it please let me know.
Thank you.

Related

Can't find a way to get graphic tablet drivers working on mint

So i was trying to install the XP Pen Driver for my Deco 01 v2 graphics tablet on my Linux Mint 19.2 Tina when i came to encounter the following error:
./Pentablet_Driver: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by ./Pentablet_Driver)
I went on to install qt 5.10, still the same error. Others suggested to just change the path wth sudo gedit /etc/ld.so.conf.d/randomLibs.conf which didn't change a thing.
Link to drivers:
https://www.xp-pen.com/download-440.html
The manufacturer has a page describing how to set up their software on Linux with pictures. However, when following them, you end up with a folder name somewhere along the line that has spaces in it, which causes issues.
So a modified set of instructions might look like this:
Connect your XP-Pen product to the computer.
Download the Linux Beta driver from XP-Pen official website.
When the download is complete, extract the compressed folder.
Rename the extracted folder to something without spaces.
Inside the renamed folder is another compressed folder which should be extracted.
Inside the final extracted folder, ensure "Pentablet_Driver.sh" has execution permissions by right clicking on it and going to "Properties->Permissions" and verifying that "Allow executing file as program" is checked.
Open the terminal. (CTRL+ALT+T)
Type "sudo ", then drag Pentablet_Driver.sh from the file browser onto the terminal.
Type the password to complete.
Make sure that you write exactly
sudo ./Pentablet_Driver.sh
instead
sudo ./Pentablet_Driver
I had the same error until I noticed that I forgot to add .sh at the end.

unknown project file: "gtkada"

I got GPS community edition, but it can't create GtkADA projects. So I cloned and built GtkADA using the GPR projects, but when I try to open a GtkADA example or start a new GtkADA project from GPS, I get the error:
unknown project file: "gtkada"
Edit:
Windows 10 x64, trying to "get into" Ada.
Edit2: Got farther.
I tried setting GPR_PROJECT_PATH to include the following paths:
drive:\gitrepos\gtkada\src
drive:\gitrepos\gtkada\src\lib
drive:\gitrepos\gtkada\src\lib\gtkada\relocatable
drive:\gitrepos\gtkada\src\obj
I am trying to run the base widget example, downloaded from https://www.adacore.com/code-samples for GtkAda.
Now I get:
file "gdk-gc.ads" not found
Indeed I cannot find this file in either the GNAT or GtkAda repo.
Edit2: I am still having difficulty.
Edit3: Other people on freenode#ada were saying the OpenGL part of GtkAda is broken, and many people simply disable it.
I had the same problem and couldn't find Gtkada (about gdk-gc.ads I can't help you).
Therefore I wrote the relative path from my project file to GtkAda.gpr
with "../../lib/gnat/gtkada"; -- on linux (I installed my gtkada into my gnat folder)
In your case, if you installed it on C:\GtkAda you should search for GtkAda.gpr, then copy paste its path.
(Not sure if absolute path works. You will maybe need to tell your project to search outside of its folders by using ".." until you are in C:, then paste your path.)
PS: Adacore provides a GtkAda installer for windows: https://www.adacore.com/download/more
Edit: On my windows, I simply used the installer then
with "gtkada" worked.

Omnet++ Simulation failing to run makefile

I'm currently an undergraduate researcher and I've been tasked with researching knowledge defined networking. The research in particular deals with very advanced code that's way beyond my minimal knowledge of omnet. The first instruction to build the network is to run the makefile (found here: https://bpaste.net/show/d26a592a563a) to generate the "networkRL" needed by the python script.
I've imported all of the files needed for the simulation but whenever I try to run the makefile I get an error:
"Error starting process.
Cannot run program "C:\Users\Sierra\DRL\omnet\router\makefile": Launching failed"
Or when I try to run the entire simulation it asks:
"Enter parameter 'NetworkAll.node0.tcontroller.folderName':"
I'm not sure if these are simple problems to solve and I'm just inexperienced, but any help would be greatly appreciated. I can post all of the source, ned, and header files if necessary. I didn't want to pack this entire post with 15+ code links if the makefile was the only one needed to solve this issue.
I'm using OMNeT version 4.6 on Windows 10 if that information is relevant
The term "run the makefile" means: run make in the directory where makefile is located. In OMNeT++ one can do this in two ways.
First way:
Open mingwenv.cmd from OMNeT++ main directory.
In the mingw console go to main directory of the project, for example:
cd /C/Users/Sierra/DRL/
In the mingw console type:
make
Second way:
In OMNeT++ choose File | Import.. |Existing Project into Workspace and select the project.
Build the project choosing Project | Build Project.
According the second error: open omnetpp.ini and set value for folderName parameter, for example:
**.folderName = "/c/some/directory"
or
**.node0.tcontroller.folderName = "/c/some/directory"

Development on KDE platform

I'm interested in learning about kde environment. So I read the contribution page on wiki, git cloned the kompare repo and built it. But an attempt to execute the binary gave me an error saying Could not load our KompareNavigationPart. The console showed the following error about kservice:
> ./kompare
kf5.kxmlgui: cannot find .rc file "kompareui.rc" for component "kompare"
kf5.kservice.services: KMimeTypeTrader: couldn't find service type "Kompare/ViewPart"
Please ensure that the .desktop file for it is installed; then run kbuildsycoca5.
kf5.kxmlgui: cannot find .rc file "kompareui.rc" for component "kompare"
Aborting aboutToFinish handling.
I couldn't find anything about it in the readme or the project wiki. I've installed the kde-development-meta package on arch linux. Can anyone help me get started with development on kde platform?
Short answer: Use "cmake -DCMAKE_INSTALL_PREFIX=/usr" and "make install".
Long answer: It looks like you tried to run from the build directory, but the KDE plugin loader does not look there by default. You could adjust the various path variables to additionally point to your build directory. The variables are mentioned at https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source#Set_up_the_runtime_environment
You can also use "make install" to install to a run-time directory. If you did not change the defaults of cmake via -D option, this will be "/usr/local/", and in this case you also have to adjust the various path variables to include that directory, unless your distribution already configured this for you.

How to burn .hex intel format file on cc2530 EB

Hello there I am a newbie working on the SMARTRF-05EB - Evaluation Board, I have installed SDCC and Contiki-2.6 in the Linux Virtual Machine. I am able to build all the examples present in this directory contiki-2.6/contiki/examples/cc2530dk , but I am clueless as to how to flash the final .hex image file on EB.
Is there a way to burn it from Linux directly using some command or do I have to switch back to Windows and use TI's Flash Programmer to burn the application image. When I try to flash the application using the Flash Programmer I get this message highlighted in RED : "Flash Image overlaps with the bootloader"
Can someone please let me know about how to correctly place the application code on a particular address so that I can save the bootloader from being corrupted by my application .hex file.
I would like to flash say for example the simple "hello world" .hex file.
Thanks
Hello there I had to figure it out by going through the documentation..so the commmand that I used in getting a successful output on the hardware was this
1) root#ubuntu:/home/contiki/contiki-2.6/examples/cc2530dk# make TARGET=cc2530dk clean
2) root#ubuntu:/home/contiki/contiki-2.6/examples/cc2530dk# make TARGET=cc2530dk
also in the previous directory, cd to hello-world and execute the 2 commands as below:
1) root#ubuntu:/home/contiki/contiki-2.6/examples/hello-world# make TARGET=cc2530dk clean
2) root#ubuntu:/home/contiki/contiki-2.6/examples/hello-world# make TARGET=cc2530dk
These 2 commands help in building the .hex for the SMART05-EB and then use the TI's SMARTRF STUDIO software or TI's Flash Programmer for burning the hex image on the SoC. Open up TeraTerm or anyother Serial Communication software and then choose the port with settings 115200 8-N-1 and you should be able to get the output on screen. I have issues in building the other examples in other directory - for eg ping-ipv6, so would be posting a new question regarding such examples.
Thanks
After compiling the code for the example you are working with it 'll create a platform specific file Ex. for sky (hello-world.sky) in you case it 'll be hello-world.cc2538dk. Just use the following command to convert it to ihex file
msp430-objcopy udp-multicast.exp2420 -O ihex udp-multicast.ihex
You can now rename the ihex file to hex file and upload the hex file to your mote using TI flash program (http://processors.wiki.ti.com/index.php/MSP430_Flasher_-_Command_Line_Programmer). From windows use the following command to upload the file.
MSP430Flasher.exe -n "MSP430F5438A" -m SBW4 -w your_hex_file.hex -i COMxx [VCC]

Resources