embeded/FPGA - ALTERA2018. 5. 30. 10:43

18.0 버전인데 설정 없어도 잘만 된다 -ㅁ-

저번에는 대충한다고 먼가 빼먹은게 있어서 안되었던 듯..


---

읭? 왜 signal tap이 안되나 해보는데

옵션에 안보인다?

혹시 Lite Edition이라 그런가?



To enable the TalkBack feature in Quartus Prime, select Tools > Options. In the Options window, select Internet Connectivity from the menu, and click on TalkBack Options... to open the window shown in Figure 2. If you accept the TalkBack License Agreement, then check the box labelled Enable sending TalkBack data to Intel and click OK. 

[링크 : ftp://ftp.altera.com/up/pub/Intel_Material/17.0/Tutorials/Verilog/SignalTap.pdf]


어디선가 동의하면 된다고는 하는데..

Signal Tap logic analyzer 1

Notes:

1. Available with Talkback feature enabled in the Intel Quartus Prime Lite Edition software.

[링크 : https://www.altera.com/.../pdfs/literature/br/br-quartus-prime-software.pdf]


이거는 설치 폴더에 뒤져봐도 안나오고

Run tb2_install to enable the TalkBack feature.

[링크 : https://www.altera.com/quartushelp/current/index.htm#msgs/msgs/ecpt_talkback_required.htm]


Standard Edition 피쳐로 아래 존재하는 걸 Pro에서는 지원안한다..

Lite에는 그럼 Talkback이 없을수도 있나?

Intel Quartus Prime Pro Edition software does not support the following Intel Quartus Prime Standard Edition features:

— I/O Timing Analysis

— NativeLink third party tool integration

— Video and Image Processing Suite IP Cores

Talkback features

— Various register merging and duplication settings

— Saving a node-level netlist as .vqm

— Compare project revisions 

[링크 : https://www.altera.com/.../pdfs/literature/ug/ug-qpp-getting-started.pdf]


엥?

2016.10.31 16.1.0

Removed all references to Talkback feature.

Changed instances of Altera to Intel FPGA. 

[링크 : https://www.altera.co.jp/documentation/esc1425946071433.html]


※ Quartus Prime Lite Edition の場合は、16.0 以前のバージョンを使用する際 TalkBack 機能を有効にする 必要があります。詳細はこちらの TIPS をご覧ください。 

구글번역

Quartus Prime Lite Edition의 경우 16.0 이전 버전을 사용하는 경우 TalkBack 기능을 활성화해야합니다. 자세한 것은 이쪽의 TIPS를 참조하십시오. 

[링크 : https://service.macnica.co.jp/article_files/126561/ELS1444_Q1710_10__1.pdf]


21분 부터 시연(pro 버전)

[링크 : https://www.youtube.com/watch?v=DCUhsezqydQ]

Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 29. 09:47

OV7670 / HDMI / VGA

일단.. VGA 테스트 패턴 해본 다음

OV7670 따라해보고

그 다음에 천천히 HDMI 테스트 패턴 출력해봐야지..


회로도 받아야 하고..

카페 검색해보니 4bit씩 R/G/B에 되어있다고..



회로도는 구매하신분에게 한하서 공개라고 하신거 봐서는

블로그에 회로도 올리면서 무언가 작업하긴 힘들듯..

'embeded > FPGA - ALTERA' 카테고리의 다른 글

PWM 발생기 1개 연결하기  (0) 2018.05.30
signal Tap 2와 talkback?  (0) 2018.05.30
altera signalTap  (0) 2018.05.24
quartus device family 삭제하기  (0) 2018.05.23
책 도착!  (2) 2018.05.21
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 24. 16:34

2018.05.30


이전과 거의 같은데 검색이 잘 안나오면

Filter에서 Design Entry(all names) 해주면 제대로 나오고


모니터링할 노드와 클럭을 정상적으로 추가해주면


아래와 같은 모습이 된다

SOF Manager 우측에는 해당 프로젝트의 SOF를 선택해주면 굳이 Programmer 가지 않아도 되니 편리함.

좌측 상단의 Instance를 누르면 Instance Manager에 버튼이 활성화 되고

Run Analysis - F5 버튼을 누르면 


약간의 시간이 지난뒤 아래와 같이 파형이 나온다

(일단 div/2 로 LED를 점멸하게 소스를 수정함)



//=======================================================

//  This code is generated by Terasic System Builder

//=======================================================

module PwmCtrl(RST_N, CLK, LED0);

input RST_N, CLK;

output LED0;

reg[27:0] counter0;

always @(negedge RST_N or posedge CLK)

begin

if(RST_N == 1'b0)

begin

counter0 <= 0;

end else begin

counter0 <= counter0 + 1;

end

end

assign LED0 = counter0[1];


endmodule


module DE0_NANO(

//////////// CLOCK //////////

CLOCK_50,

//////////// LED //////////

LED,

//////////// KEY //////////

KEY 

);


//=======================================================

//  PARAMETER declarations

//=======================================================


//=======================================================

//  PORT declarations

//=======================================================


//////////// CLOCK //////////

input           CLOCK_50;

//////////// LED //////////

output      [7:0] LED;

//////////// KEY //////////

input      [1:0] KEY;


//=======================================================

//  REG/WIRE declarations

//=======================================================


//=======================================================

//  Structural coding

//=======================================================

PwmCtrl pwm0(KEY[0],CLOCK_50,LED[0]);

endmodule 



---

LE와 M4K 이런거 소모해서

내부적으로 로직을 저장하고 디버깅에 도움을 주는 녀석


Tools - Signal Tap Logic Analyzer


우측 상단의 JTAG Chain Configuration 에서 DE0-nano의 USB-Blaster를 선택하면

자동으로 Device는 검색되는데, 정상적으로 안되면 Scan Chain을 눌러주면 된다.


오른쪽 중앙의 Signal Configuration 에서 Clock을 설정해주고

왼쪽의 auto_signaltap_0 에 "Double-click to add nodes"를 더블클릭해 모니터링할 노드를 추가한다.


그럼 상단에 컴파일 하라고 빨간색으로 뜨고


저장하면 stp 확장자(SignalTaP 약자인듯?)로 설정을 저장하게 하고


프로젝트 연동하도록 도와준다.



[링크 : http://pages.hmc.edu/harris/class/e155/SignalTap.pdf]

[링크 : https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/ug/signal.pdf]


+

2018.06.05

간단한 녀석으로 해보니 (hsync + vsync + 20bit 카운터 + 4비트 rgb)

8K 까지는 빌드가 되지만, 16K 부터는 아래와 같은 에러가 발생하며 중단된다.

Error (170048): Selected device has 66 RAM location(s) of type M9K.  However, the current design needs more than 66 to successfully fit

Error (171000): Can't fit design in device 


대신 저장할 항목을 줄이고(hsync + vsync) 32K로는 성공


즉, singaltap의 sample depth는 저장할 신호당 용량이기에

저장할 노드 갯수 * sample depth 만큼의 용량을 필요로 하게 된다.


+

2018.06.05

Signal Tap의 Enable을 꺼주면 빌드시 시간이 줄어든다(말그대로 Signal Tap 비활성화)

'embeded > FPGA - ALTERA' 카테고리의 다른 글

signal Tap 2와 talkback?  (0) 2018.05.30
레몬 라이트 옵션보드 도착  (2) 2018.05.29
quartus device family 삭제하기  (0) 2018.05.23
책 도착!  (2) 2018.05.21
엥.. Quartus II Lite Edition... 라이센스?  (0) 2018.05.18
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 23. 08:52

device familiy 추가는 했는데 삭제하는법 몰라서 헤메다가

출근하고 검색어 생각나서 찾아보니 띠용~


quartus II를 uninstall 할때 modify 선택해서 하라는데 일단 메뉴가 달라진거 같고

17.1 버전에서는 아래와 같이 uninstall mode에서 개별 컴포넌트 선택해서 진행하면 된다.


[링크 : https://www.altera.com/support/support-resources/knowledge-base/solutions/rd02282005_815.html]

'embeded > FPGA - ALTERA' 카테고리의 다른 글

레몬 라이트 옵션보드 도착  (2) 2018.05.29
altera signalTap  (0) 2018.05.24
책 도착!  (2) 2018.05.21
엥.. Quartus II Lite Edition... 라이센스?  (0) 2018.05.18
Nios II 컴파일 관련  (0) 2018.05.18
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 21. 15:13

카페에서 공구해서 저렴하게 획득!

솔찍히 저번주에 사서 산걸 잊고 있었네.. ㅠㅠ

[링크 : http://www.yes24.com/24/goods/60856713]

'embeded > FPGA - ALTERA' 카테고리의 다른 글

altera signalTap  (0) 2018.05.24
quartus device family 삭제하기  (0) 2018.05.23
엥.. Quartus II Lite Edition... 라이센스?  (0) 2018.05.18
Nios II 컴파일 관련  (0) 2018.05.18
altera conf_done  (0) 2018.05.04
Posted by 구차니
embeded/arduino(genuino)2018. 5. 18. 18:10

파이썬으로 된거는 꽤 보이는데

C로 된건 잘 안보여서 일단 찾아 둠

[링크 : https://github.com/jdourlens/FirmataC/blob/master/README.md]


server(?)는 아두이노 firmata로 구현되어 있으니 별도로 찾지 않음

'embeded > arduino(genuino)' 카테고리의 다른 글

dfrobot ph meter  (0) 2018.12.19
433mhz tpms ivtm 센서용 통신 모듈  (0) 2018.10.05
아두이노로 상용제품 만들기  (2) 2018.04.10
아두이노 미세먼지 센서  (2) 2018.03.30
USB to TTL 정보  (0) 2018.01.10
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 18. 17:22

오늘 오랫만에 켜니까 어라?

라이센스 알림. 만료까지 10일 남았음?


아무튼 메뉴가서 보니.. 라이센스가 없긴 하네..

subscription Expiration 2017.11 ?


Download License를 눌러서 일단 가니..

가장 위에꺼 눌러야 할 거 같은 느낌


로그인 하고 나니 먼가 막 많이 쓰란다.. 망할


근데.. Lite Edition Free, no license required 라며!


아무튼 입력하고 continue하니 12시간 이내에 메일로 쏩니다~

그런데 MAC 했으니.. 집에서도 하려면 또 따로 등록해야 하나?


메일을 확인하니 왔네?


Setting Up MAX+PLUS II Licensing ?

MAX II,V 이런 거 지원하도록 깔아서 그런건가?

[링크 : https://www.altera.com/support/support-resources/software/download/ins-license.html]


의심가는건 이거 뿐인데.. 별다른 라이센스 경고를 못 본거 같은데..

2018/04/17 - [embeded/FPGA - ALTERA] - Device Installer (Quartus Prime 17.1)

'embeded > FPGA - ALTERA' 카테고리의 다른 글

quartus device family 삭제하기  (0) 2018.05.23
책 도착!  (2) 2018.05.21
Nios II 컴파일 관련  (0) 2018.05.18
altera conf_done  (0) 2018.05.04
quartus 프로젝트 entry point 설정  (0) 2018.04.17
Posted by 구차니
embeded/FPGA - ALTERA2018. 5. 18. 16:56

카페에서 메일로 보내주신 내용 따라해보는 중


예전에 mem_test를 이용해서 프로젝트를 만들었는데

이클립스 쓰다보니.. 그냥 당연히(?) build 하면 되겠지 하고 빌드만 했는데 새로운 메뉴가 있었다 -ㅁ-


평소에 하던건 이 Build Project 였고


아래 보이듯, make all을 통해 빌드를 진행한다.

16:45:28 **** Incremental Build of configuration Nios II for project hello_world_0 ****

make all 

Info: Building ../hello_world_0_bsp/

C:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../hello_world_0_bsp/

[BSP build complete]

[hello_world_0 build complete]


16:45:29 Build Finished (took 1s.5ms)


그에 반해 Make Targets - Build에서


mem_init_generate를 선택하고 Build 하면


make mem_init_generate로 다른 방식(?)을 통해 명령어를 수행하게 된다.

16:48:29 **** Build of configuration Nios II for project hello_world_0 ****

make mem_init_generate 

Info: Building ../hello_world_0_bsp/

C:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../hello_world_0_bsp/

[BSP build complete]


16:48:30 Build Finished (took 1s.54ms)


아무튼 빌드하고 나니 아래 같은 파일들이 생성/수정(?) 되엇고

qip는 quartus II 프로젝트에 추가하고 아래 파일중에 골라서(?) 넣으면 된다는데

느낌적인 느낌으로는.. unsaved_epcs_flash_controller_0_boot_rom.flash를 넣으면 될거 같긴한데..

의외로 unsaved_onchip_memory2_0.hex 일려나? 파일 뜯어 봐야겠네..


파일 열어 봤는데

unsaved_epcs_flash_controller_0_boot_rom.flash 는.. HEX는 HEX인데 intel HEX 포맷은 아닌 느낌이고

unsaved_onchip_memory2_0.hex 는 데이터 있는 부분까지의 길이는 비슷한데 데이터 내용이 다른 느낌이라...

멀 써야 하려나?


+

qip를 일단 quartus II 에서 추가 하고 빌드 하는데

해당 파일에는 딱 한줄짜리 내용만 있는데 무슨 차이가 생길려나?


'embeded > FPGA - ALTERA' 카테고리의 다른 글

책 도착!  (2) 2018.05.21
엥.. Quartus II Lite Edition... 라이센스?  (0) 2018.05.18
altera conf_done  (0) 2018.05.04
quartus 프로젝트 entry point 설정  (0) 2018.04.17
Device Installer (Quartus Prime 17.1)  (0) 2018.04.17
Posted by 구차니
embeded/raspberry pi2018. 5. 18. 15:56

SPI 설정이 무한대로 되는건 아니고

250MHz를 분기해서 쓰는데

일단은.. SPI LCD 쓰는데 62M를 설정해주면 통신 속도를 못 버티는지 색이 깨진다.

60보다 낮은건 31.2MHz 인가?

아무튼 40메가로 설정해도 일단은 돌아가는 가네..


SPEED

The driver supports the following speeds:


  cdiv    speed

     2    125.0 MHz

     4     62.5 MHz

     8     31.2 MHz

    16     15.6 MHz

    32      7.8 MHz

    64      3.9 MHz

   128     1953 kHz

   256      976 kHz

   512      488 kHz

  1024      244 kHz

  2048      122 kHz

  4096       61 kHz

  8192     30.5 kHz

 16384     15.2 kHz

 32768     7629 Hz 

[링크 : https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=43442&p=347073]

'embeded > raspberry pi' 카테고리의 다른 글

node.js on rpi  (0) 2018.09.11
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기  (4) 2018.09.10
라즈베리 2B + waveshare 35a + MAME 0.182  (0) 2018.05.18
odroid u3 headless setup중 문제..  (0) 2018.05.14
rpi firmata  (0) 2018.05.11
Posted by 구차니
embeded/raspberry pi2018. 5. 18. 10:01

귀찮으니 img 받아서 그냥 까세요 수준으로 대격변 ㄷㄷ

[링크 : https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)]


귀찮아서.. 스크립트 분석하면 될걸.. 썡으로 뒤지는중


일단 화면 갱신이 꽤나 느린데

/etc $ grep -rni "fbcp" ./

./rc.local:21:fbcp &

[링크 : https://github.com/tasanakorn/rpi-fbcp]


동영상을 보면 확실히 fbcp를 통해 복사하는거라 그런지 화면 갱신이 느리다. (cpu는 5% 미만이긴 하지만)


그래서 아래처럼 설정하고 다시 찰칵

기분인진 몰라도 확실히 좀 빨라진 기분?


$ cat /boot/config.txt

# For more options and information see

# http://www.raspberrypi.org/documentation/configuration/config-txt.md

# Some settings may impact device functionality. See link above for details


# uncomment if you get no picture on HDMI for a default "safe" mode

#hdmi_safe=1


# uncomment this if your display has a black border of unused pixels visible

# and your display can output without overscan

#disable_overscan=1


# uncomment the following to adjust overscan. Use positive numbers if console

# goes off screen, and negative if there is too much border

#overscan_left=16

#overscan_right=16

#overscan_top=16

#overscan_bottom=16


# uncomment to force a console size. By default it will be display's size minus

# overscan.

#framebuffer_width=1280

#framebuffer_height=720


# uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1


# uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1

#hdmi_mode=1


# uncomment to force a HDMI mode rather than DVI. This can make audio work in

# DMT (computer monitor) modes

#hdmi_drive=2


# uncomment to increase signal to HDMI, if you have interference, blanking, or

# no display

#config_hdmi_boost=4


# uncomment for composite PAL

#sdtv_mode=2


#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800


# Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

#dtparam=i2s=on

dtparam=spi=on

#enable_uart=1

# Uncomment this to enable the lirc-rpi module

#dtoverlay=lirc-rpi


# Additional overlays and parameters are documented /boot/overlays/README


# Enable audio (loads snd_bcm2835)

dtparam=audio=on

dtoverlay=waveshare35a:rotate=270

#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900

#hdmi_force_hotplug=1

#max_usb_current=1

#hdmi_group=2

#hdmi_mode=1

#hdmi_mode=87

#hdmi_cvt 480 320 60 6 0 0 0

#hdmi_drive=2

#display_rotate=2 


[링크 : https://github.com/swkim01/waveshare-dtoverlays/issues/7]


$ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf

# This is a minimal sample config file, which can be copied to

# /etc/X11/xorg.conf in order to make the Xorg server pick up

# and load xf86-video-fbturbo driver installed in the system.

#

# When troubleshooting, check /var/log/Xorg.0.log for the debugging

# output and error messages.

#The driver is made by Waveshare&Spotpear

# Run "man fbturbo" to get additional information about the extra

# configuration options for tuning the driver.


Section "Device"

        Identifier      "Allwinner A10/A13 FBDEV"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb0"


        Option          "SwapbuffersWait" "true"

EndSection



Section "Device"

        Identifier      "Waveshare 35a spi"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb1"


        Option          "SwapbuffersWait" "true"

EndSection


Section "Monitor"

        Identifier      "primary"

EndSection


Section "Screen"

        Identifier      "primary"

        Device          "Waveshare 35a spi"

        Monitor         "rpi spi"

EndSection 


일단 mame를 깔고

$ sudo apt-get install gnome-video-arcade mame mame-tools

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

  liblua5.3-0 libsdl2-2.0-0 libsdl2-ttf-2.0-0 mame-data

Suggested packages:

  devhelp mame-doc mame-extra

The following NEW packages will be installed:

  gnome-video-arcade liblua5.3-0 libsdl2-2.0-0 libsdl2-ttf-2.0-0 mame

  mame-data mame-tools

0 upgraded, 7 newly installed, 0 to remove and 49 not upgraded.

Need to get 45.0 MB of archives. 


gnome 어쩌구 말고

mame를 실행하니 CPU는 미쳐 날뛰고(라즈베리 2B인데 오버 해야하나..)


/dev/fb1 덤프해서 보니 RGB565 480x320으로 복원



+

HDMI로 해도 느린건 마찬가지(아니 해상도 높아져서 더 느려진 기분.. 실행이 안되고 뻗는 수준?)

0.78 구버전을 구해서 빌드 해보려니 소스를 못 받는다.. 아놔

Posted by 구차니