Sonata

Published on April 2017 | Categories: Documents | Downloads: 39 | Comments: 0 | Views: 478
of 2
Download PDF   Embed   Report

Comments

Content


SONATA VHDL SIMULATON TUTORIAL

Connect to server at 139.179.2.8 using cgywin-X.

Copy .bash_profile from /home/atak to your home directory by the command:

cp /home/atak/.bash_profile .

Run sonata by writing sonata in the terminal, the tool will be opened as shown in the figure
below.



click file->New Workspace, “create new workspace” window will be opened. Fill the
entries as follows:

workspace name: my_vhdl_sim
workspace location: /home/your_user_name/my_vhdl_sim

here your_user_name is your account name!


Now you are ready to add vhdl fıles to your Project. Click Project->Add Files, a window will
be opened for selecting files to be added. Browse to the folder “home/atak/vhdl_sim”, select
the two vhdl files “bitreverse.vhd” and “tt_bitreverse.vhd” and click open. (you can use the
control key for multiple selection).

After adding VHDL files to your Project, the two files will appear in the workspace window.
Click the + sign which is on the left of “library=>my_vhdl_sim…”, the two files will be
shown then.

For each file you will notice an entity and architecture. Double click on the files to see the
vhdl code in the main window. Spend some time to understand the VHDL codes. The
“bitreverse.vhd” files contain a process which performs a bit reversal operation.
“tt_bitreverse.vhd” is the testbench file to test the “bitreverse.vhd”.

Click compile-> compile all, this will compile all vhdl files in the design. you should see the
message “finished compilation session” in the console window of sonata.

Click simulate-> select TopLevel, select “tt_bitreverse(behavioral)” from the window
opened.

The sonata’s main window has a field for simulation run time in the middle of the toolbar.
Write “1000ns” and click the arrow left to the field(shown below).



a waveform window will be opened.

Double click on tt_bitreverse in hierarchy window(on the left), you will notice the signals in
the tt_bitreverse module in the scope window(left-bottom window) as shown below.



add all the signals in the scope window to the waveform window (by dragging or right
clicking and then clicking “add selected to waveform”)

restart the simulation by clicking simulate->restart and then click .

Observe the signals in the waveform window.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close