๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90

๐Ÿ’ก EE's DEV/FPGA3

[OpenCL] OpenCL ํ”„๋กœ๊ทธ๋ž˜๋ฐ - 1 OpenCL ํ˜ธ์ŠคํŠธ์™€ ๋””๋ฐ”์ด์Šค 1.1 OpenCL ํ”„๋กœ๊ทธ๋žจ ๊ตฌ์„ฑOpenCL๋กœ ํ”„๋กœ๊ทธ๋žจ์„ ๊ฐœ๋ฐœํ•  ๋•Œ๋Š” ๋””๋ฐ”์ด์Šค์—์„œ ๋™์ž‘ํ•˜๋Š” ์ปค๋„ ํ”„๋กœ๊ทธ๋žจ๊ณผ ํ˜ธ์ŠคํŠธ ํ”„๋กœ๊ทธ๋žจ์„ ๋”ฐ๋กœ ์ž‘์„ฑ์ปค๋„ ํ”„๋กœ๊ทธ๋žจ[์ฝ”๋“œ 3-1] ์€ OpenCL C์–ธ์–ด๋กœ ์ž‘์„ฑํ˜ธ์ŠคํŠธ ํ”„๋กœ๊ทธ๋žจ[์ฝ”๋“œ 3-2] ์€ C์–ธ์–ด๋กœ ์ž‘์„ฑํ•˜๋˜ OpenCL ๋Ÿฐํƒ€์ž„ API๋ฅผ ์‚ฌ์šฉ 1.2 ์ปค๋„ ํ”„๋กœ๊ทธ๋žจ__kernel void hello(__global char* string)OpenCL C์–ธ์–ด ๋ฌธ๋ฒ•์— ๋งž์ถฐ ์ž‘์„ฑํ•œ๋‹ค.hello() ํ•จ์ˆ˜์˜ ์„ ์–ธ์— ํ•จ์ˆ˜ ์ˆ˜์‹์ž __kernel์„ ์ง€์ • [C์–ธ์–ด์™€ ์ฐจ์ด์  1]ํ•จ์ˆ˜ ์ˆ˜์‹์ž __kernel ์€ hello() ํ•จ์ˆ˜๊ฐ€ ๋””๋ฐ”์ด์Šค์—์„œ ๋™์ž‘ํ•˜๋ฉฐ ํ˜ธ์ŠคํŠธ์—์„œ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋Š” ์ปค๋„ ํ•จ์ˆ˜์ž„์„ ์˜๋ฏธ.__kernel ์ˆ˜์‹์ž๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ปค๋„ ํ•จ์ˆ˜๋Š” ๋‹ค์Œ 2๊ฐ€์ง€ OpenCL ๋Ÿฐํƒ€์ž„ API ํ•จ์ˆ˜๋ฅผ.. 2018. 8. 28.
[OpenCL] VS 2017์—์„œ OpenCL ์‚ฌ์šฉํ•˜๊ธฐ 00 OpenCL ์„ค์น˜ํ•˜๊ธฐVisual Studio Community 2017 ์‚ฌ์šฉ์ค‘ํ•„์š” ์‚ฌ์–‘ ํ™•์ธ๊ณผ OpenCL SDK ์„ค์น˜๋Š” ์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œhttps://software.intel.com/en-us/intel-openclSDK ์„ค์น˜ ์‹œ OpenCL์šฉ ๋“œ๋ผ์ด๋ฒ„๋„ ํ•จ๊ป˜ ์„ค์น˜๋œ๋‹ค.Windows update๋ฅผ ํ†ตํ•ด ๋‚ด์žฅ๊ทธ๋ž˜ํ”ฝ ๋“œ๋ผ์ด๋ฒ„๋ฅผ ์ตœ์‹ ์œผ๋กœ ์œ ์ง€ํ•ด์•ผ ํ•œ๋‹ค! 01 Visual Studio ์—์„œ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์ƒˆ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค ๋•Œ, CPU OpenCL Project for Windows ์„ ํƒ์†”๋ฃจ์…˜ ์ด๋ฆ„๊ณผ ์œ„์น˜๋Š” ๋ณธ์ธ์ด ์„ค์ • 02 ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ์™„๋ฃŒ์†”๋ฃจ์…˜์„ ๋งŒ๋“ค๊ณ  OpenCL ํŒŒ์ผ๊ณผ Source ํŒŒ์ผ์ด ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•œ๋‹ค.ํ•ด๋‹น ์ฝ”๋“œ๋Š” ๊ฐ„๋‹จํ•œ Add ์˜ˆ์ œ์ด๋‹ค.๋””๋ฒ„๊ทธ ํ•˜์ง€ ์•Š๊ณ  ์‹คํ–‰ [Ctrl + F5] 03 SD.. 2018. 8. 8.
[FPGA] NIOS II Tutorial Helloworld 00 ์ฐธ๊ณ ํ•œ ๋™์˜์ƒ Altera FPGA tutorial - "Hello World" using NIOS II processor on DE1 BoardA learning tutorial for Beginners to display "Hello World" on NIOS II console.https://youtu.be/1a_cD6FBROA 01 Quartus - Board ์…‹ํŒ… ๋ฐ Project ์ƒ์„ฑUSB Blaster ๋กœ ๋ณด๋“œ์™€ ์ปดํ“จํ„ฐ ์ปค๋„ฅํŒ…ํ•ด์•ผํ•จBoard name : Cyclone V SoC 5CSEMA5F31C6 Device 02 Qsys IP Catalog ์—์„œ NIOS II Processor, On-Chip Memory, JTAG ํ•ญ๋ชฉ๋“ค์„ ์ถ”๊ฐ€ํ•œ๋‹ค.nios2 ๋Š” economy version ์„ ํƒ.. 2018. 8. 8.
728x90