In Modelsim right click on the source file that contains the declaration of the Megacore. Then, select the Properties option.
There select the Verilog & SystemVerilog tab, then click on the Library File button in the lower part and select the file where the component is declared.
Here be careful to select the .v file as it needs to compile it and add it to the work directory.
Luis E. Ardila
Sunday, April 5, 2015
Tuesday, May 27, 2014
using github
- create local folder with files
- create github repository
- git clone https://github.com/username/project.git
- git add .
- git commit -m 'Initial Commit'
- git remote add origin https://github.com/username/project.git
- git push origin master
Thursday, May 8, 2014
Installing HandBrake to cut videos in linux
follow this forum in how to install it:
here are two official HandBrake PPAs,
ppa:stebbins/handbrake-releases
and ppa:stebbins/handbrake-snapshots
.
The former contains stable releases, which are updated about once a year. These releases tend to be rather out-dated when their end-of-life is approaching. The current stable version (0.9.8) was released on 2012-07-18.
The latter contains nightly builds, which are updated daily (or nightly, as it were). These are of course less stable, and undocumented to boot, but they are good software nonetheless. Additionally, as the stable release ages, the developers tend to start recommending users to try the nightly builds instead.
To add one of these to your sources, simply run:
sudo add-apt-repository ppa:stebbins/handbrake-releases
or
sudo add-apt-repository ppa:stebbins/handbrake-snapshots
depending on which you want. To install HandBrake, run:
sudo apt-get update
sudo apt-get install handbrake-gtk
Alternatively, if you would prefer the CLI over the GUI, replace the last line with:
sudo apt-get install handbrake-cli
How to rotate a video 90 degress using HandBreak?
HandBrakeCLI -i /home/luisardila/Desktop/Comm/Luis.mp4 -o /home/luisardila/Desktop/Comm/Luis_90.mp4 --rotate=4
SSH shorcut
in your computer edit the following file:
- nano .ssh/config
Host=rpi (Choose a name you will remember)now you can source the file
Hostname=192.168.2.7 (your RPi ip address)
User=pi (User name on RPi, default=pi)
- source .ssh/config
- ssh rpi
Enabling SSH and WiFi dongle on Raspberry Pi
This was done from a fresh RPi, therefore the first thing we do is updating all the applications, then upgrading. Following step we enable the SSH and then we install the application that manage the wifi conection. Finally we enable the wifi con conect automatically once power has come up, therefore enabling an SSH conection after a remote reboot.
1. Follow this video tutorials for SSH
On your computer do:
5. To disable the power saving feature of the wifi module we follow this page
1. Follow this video tutorials for SSH
- apt-get update
- apt-get upgrade
- reboot
- sudo raspi-config
- reboot
- sudo ip addr show
Now you should be able to SSH to you RPi using the IP address shown in the line that starts with "inet 192.168.X.Y ....."
On your computer do:
- ssh pi@192.168.X.Y (Y is your wired address)
- type password for "pi" user (Note the default is "raspberry")
- sudo apt-get install wicd-curses
- sudo wicd-curses
Select your wifi network, if it doesn't show then hit the key "P" (preferences)
and type "wlan0" in the field "wireless interface" hit F10 to save
Select your Wifi network, hit the right arrow to configure:
check static IP
type the IP address following the same skim as your router gateway: i.e:
IP: 192.168.X.Z (Z is going to be your static wireless address- pick any number)
Mask: 255.255.255.0
Gateway: 192.168.X.R (R is the ip address of your router)
at the bottom on key type your wifi password
hit F10 to save
After some seconds it will connect, you can unplug the wired cable and verify a remote SSH to the new wireless IP address
- ssh pi@192.168.X.Z
- type password
3. Now to allow the wifi conection to come up automatically after a remote reboot do:
- sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
#Remove the wired network because it
#slows down boot if it's not connected.
#auto eth0
#iface eth0 inet dhcp
allow-hotplug wlan04. You are all done, SSH to your wirelessly connected RPi and reboot to test the feature of auto connection after booting.
auto wlan0
iface wlan0 inet static
address 192.168.1.20 #(IP address of RaspyFi)
netmask 255.255.255.0
gateway 192.168.1.2 #(IP of router)
wpa-ssid MyWirelessNetwork
wpa-psk MyPassword
5. To disable the power saving feature of the wifi module we follow this page
The problem seems to be that the adapter has power management features enabled by default. This can be checked by running the command:
cat /sys/module/8192cu/parameters/rtw_power_mgnt
A value of 0 means disabled, 1 means min. power management, 2 means max. power management. To disable this, you need to create a new file:
sudo nano /etc/modprobe.d/8192cu.conf
and add the following:
# Disable power management
options 8192cu rtw_power_mgnt=0
Once you save the file and reboot your RPi, the WiFi should stay on indefinitely.
Wednesday, December 11, 2013
PROM memories on the Boards
RDO:
BPI Flash single FPGA > Virtex6 > xcf128x [16 M]
LVDS2FIBER:
Xilinx Flash/PROM > Platform Flash > xcf32p [32 M]
BPI Flash single FPGA > Virtex6 > xcf128x [16 M]
LVDS2FIBER:
Xilinx Flash/PROM > Platform Flash > xcf32p [32 M]
Friday, November 1, 2013
Creating ssh keys for daq slow control linux machine
Personal history of typed commands using cygwin
284 ssh-keygen
285 cd .ssh
287 pwd
288 cd /home/
290 cd .ssh
291 pwd
294 cd /home/leardila-perez/.ssh
295 cd /cygdrive/home/leardila-perez/.ssh
296 cd /home/
297 ls
300 pwd
301 mkdir .ssh
302 ls
303 ls -la
304 ssh-keygen
305 pwd
306 ls .ssh
307 ls -ld .ssh
308 cd .ssh
309 ssh-keygen
310 ls
311 chmod 700 .
312 ls -l
313 cat id_rsa.pub
314 ssh -Y leardilap@ssd-sc
315 ssh -Y ssd@ssd-sc
316 pwd
317 cd
318 pwd
319 man ssh
320 export HOME=`pwd
321 pwd
322 export HOME=`pwd`
323 ssh -Y ssd@ssd-sc
325 env | grep HOME
326 man ssh
327 pwd
328 echo $HOME
329 cd $HOME
330 ls -ld .
331 ls -l
332 mkdir .ssh
333 ls -la
334 cd .ssh
335 ls -la
336 cd
337 cd ~
338 pwd
339 cd
340 ls /home
341 pwd
342 cd /home
343 ls
344 ssh
345 history
346 ssh -Y ssd@ssd-sc
347 cd
348 pwd
349 ln -s /cygdrive/c/SPB_Data
350 ln -s /cygdrive/c/SPB_Data /home/leardila-perez
351 cd /home/leardila-perez
352 ls
353 ls -la
354 ssh -Y ssd@ssd-sc
284 ssh-keygen
285 cd .ssh
287 pwd
288 cd /home/
290 cd .ssh
291 pwd
294 cd /home/leardila-perez/.ssh
295 cd /cygdrive/home/leardila-perez/.ssh
296 cd /home/
297 ls
300 pwd
301 mkdir .ssh
302 ls
303 ls -la
304 ssh-keygen
305 pwd
306 ls .ssh
307 ls -ld .ssh
308 cd .ssh
309 ssh-keygen
310 ls
311 chmod 700 .
312 ls -l
313 cat id_rsa.pub
314 ssh -Y leardilap@ssd-sc
315 ssh -Y ssd@ssd-sc
316 pwd
317 cd
318 pwd
319 man ssh
320 export HOME=`pwd
321 pwd
322 export HOME=`pwd`
323 ssh -Y ssd@ssd-sc
325 env | grep HOME
326 man ssh
327 pwd
328 echo $HOME
329 cd $HOME
330 ls -ld .
331 ls -l
332 mkdir .ssh
333 ls -la
334 cd .ssh
335 ls -la
336 cd
337 cd ~
338 pwd
339 cd
340 ls /home
341 pwd
342 cd /home
343 ls
344 ssh
345 history
346 ssh -Y ssd@ssd-sc
347 cd
348 pwd
349 ln -s /cygdrive/c/SPB_Data
350 ln -s /cygdrive/c/SPB_Data /home/leardila-perez
351 cd /home/leardila-perez
352 ls
353 ls -la
354 ssh -Y ssd@ssd-sc
Subscribe to:
Posts (Atom)