Question 1. What Is The Function Of Simics?
Simics is used as an emulator that executes binary files. It is used to start the binaries of the hardware at high speed that are not being changed and provide high performance. It emulates the host environment to run the guest operating system. It is a virtualization platform that simulates to develop software for embedded hardwares.
Question 2. What Is The Difference Between Emulation And Virtualization?
- Emulation is a process of converting the target processor into software, whereas virtualization converts the physical processor into multiple modules that runs the processor.
- Emulation is a slow process, whereas virtualization is faster than emulation.
- Emulation can be worked around any processor, whereas virtualization requires the right processor to be virtualized.
Question 3. How To Load Simics Inside An Operating System?
The command that is used to run SIMICS is the load-unix command and the calling command will be like this
SimICS> load-unix “/bin/ls” “/bin/ls”
SimICS> run /bin/ls
Number of cycles executed (CPU 0): 606012
load-unix allow the terminal to read an executable file into SIMICS and then full path of the bin directory allow to pull the executable files.
Question 4. How To Run Interactive Program Using Simics?
SIMICS can be used to run interactive program through the command line interface. The program should be passed with a parameter “-tty”, it is a flag and by doing this any program that is being executed gets its own window in which it will be running. The input that is being entered will be passed to the program for further processing.
The command is as follows:
SimICS> load-unix -tty “/bin/telnet” “www.google.com 80”
SimICS> load-unix “idle”
This program loads the program and executes it by using the telnet it actually used for file transfer and for communicating with other servers.
Question 5. Why “simics-backend” Is Used In Simics?
Simics-backend is a binary that is used to create a symbolic link from the front end which will be interacting with the user. Simics-backend is a stable command that allows user to debug and profile the simics. This handle the backend calls that is being made by the simic when a user enters any input that has to be displayed on the screen.
Question 6. How Does Simics Handle System Calls?
Simics handle the system calls internally and doesn’t let the user know about the inner functionalities of it. It represents the System V model that includes style data structures like page tables, inode, processes, etc. By doing so will make the simics to handle the system calls like fork (), exec (), open (), etc. As simic is used to emulate the operating system so it is not recommended to touch the binaries and the libraries that are present with the simics.
Question 7. What Is The Command That Will Tell How The System Calls Handled?
Simics handle the system calls internally and doesn’t show any error if it working correctly. But if there is any error occurs during some system call then it will print an error to show it. There is a possibility that after showing the error it may not resume the running of the program. The command that can be used to know about the simics system call is “unix-supported-syscalls”. Run the command in trace mode by using the “-tr” parameter.
Question 8. What Is The Use Of Instructions And Cycles In Simics?
Simics see the execution of binaries as a normal execution of instructions. Each instruction in turn takes some cycles ot complete till it doesn’t give some execution or an interrupt doesn’t occur. Memory instructions are the instructions that take long time to complete. If a positive value is return by the processor then the instruction gets successfully executed. So, the cycle just introduces about the instructions that is going to be executed at a time.
Question 9. What Are Advantages Of Connecting Simics With Real Network?
There are lots of advantages of connecting simics with real network. These advantages are as follows:
- Ease to download file from the server using FTP, TFTP or any other protocol
- Accessing of other system remotely from anywhere using telnet or test software.
- Ease to share information between different systems at a single time
- Let users to remain organized and allow the resources to be shared.
Question 10. How To Access Host Ethernet Interface In Simics?
Simics require low level access to the networking to share is resources between the host and guest system. It requires port forwarding to be used to transfer the packets. It provides a simulation of the host Ethernet’s interface to send and receive the data packets. As, operating system doesn’t allow the use of simulator for Ethernet interfaces, network has to be manually configured to be used.
There are two ways it can be configured.
- Use of openif that allows the access to the simulated host Ethernet’s interface.
- Use of TAP or virtual Ethernet this allows permissions to be set for each user for the accessing and transferring of the files.
System Administration Interview Questions
Software Engineering Tutorial
Computer Hardware Interview Questions
Software Engineering Interview Questions
Hardware and Networking Interview Questions