Problem

SDSoC lab1 을 하다가 hardware implementation이 진행되지 않는 오류를 접함.

log를 찾아보니 HLS 쪽 문제인 것 같아서 Vivado HLS 랩을 실행해보니 역시나 오류!


Bug Log

Vivado HLS:

"line marker directive requires a positive integer argument"

등의 오류가 남.


SDSoC:

"Problem detected in Vivado HLS run"



앞에 앉은 친구는 잘 설치해서 쓰고 있어서 원인이 뭔가 싶어 몇 번이고 재설치를 했지만 문제는 해결되지 않음.

SDSoC의 경우, 아직 출시되지 않은 툴이라 해당 툴에 대한 포럼은 많이 활성화되어 있지 않은 상태라


Solutions

1. encoding problem? (Not worked)

https://forums.xilinx.com/t5/High-Level-Synthesis-HLS/Vivado-HLS-C-csynth-Error/td-p/437726


2. LLVM update? (Not worked)


3. OS issue

https://forums.xilinx.com/t5/High-Level-Synthesis-HLS/Having-trouble-with-quot-Run-C-simulation-quot/td-p/410609


이걸로 해결함!

SDSoC는 별도의 HLS 를 따로 사용하고 있으므로, 

해당 Vivado HLS의 경로를 찾아가서 수정해주면 됨.




코드 아카데미를 하나씩 따라하다가, 이제 점점 큰 프로그램들도 짜보자 싶어서 맥에다가 파이썬 개발 환경을 구축했다.

역시, 다루는 도구가 이뻐야 뭐든 시작하지.

그냥 그렇게 생각하기로 했다. (먼산)


우선, 평소에 궁금했던 sublimetext3 를 설치했고, 

생각보다 가벼운 텍스트 에디터였기에, 이것저것 검색해가며 플러그인들을 추가로 설치했다.


기왕 설치한 거 여기저기 잘 쓸 수 있는 듯 하니 잘 써봐야지 :)


1. sublimetext3에서 키보드 입출력을 사용하는 프로그램도 실행해 볼 수 있도록 하는 플러그인

http://pinkwink.kr/622


2. sidebar 색상 변경 방법

http://stackoverflow.com/questions/27931448/why-do-sublime-text-3-themes-not-affect-the-sidebar


3. package control 설명 및 anaconda

https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/


'Python' 카테고리의 다른 글

Python 연습 프로젝트 1  (0) 2020.11.28
Tkinter 를 이용한 시계  (0) 2017.06.27
import  (0) 2016.02.08
functions  (0) 2016.02.08
Pig Latin  (0) 2016.02.08

1. math library

# Ask Python to print sqrt(25) on line 

import math

print math.sqrt(25) 


2. sqrt 만 import 해오기 / 전부 import 해오기

# Import *just* the sqrt function from math on line 3!

from math import sort

from math import *


3. library import 해올 때는 되도록 import module 한 다음 module.function 해서 쓸 것. 함수명/변수명 중복되서 막 사용될 수 있음.

import math            # Imports the math module

everything = dir(math) # Sets everything to a list of things from math

print everything       # Prints 'em all!


4. python 에 기본적으로 내장되어있는 함수들 .upper(), .lower(), str(), len(), max(), min(), abs()

def biggest_number(*args):    #여러개의 인자를 넘기는 방법이 특이하다. 오오.

    print max(args)

    return max(args)

    

def smallest_number(*args):

    print min(args)

    return min(args)


def distance_from_zero(arg):

    print abs(arg)

    return abs(arg)



biggest_number(-10, -5, 5, 10)

smallest_number(-10, -5, 5, 10)

distance_from_zero(-10)


5. max()

# Set maximum to the max value of any set of numbers on line 3!


maximum = max(1, 19231, 2.5)


print maximum


6. min()

# Set minimum to the min value of any set of numbers on line 3!


minimum = min(4, -2 , 10, 123, -123.1)


print minimum


7. abs()


absolute = abs(-42)


print absolute


8. type()

# Print out the types of an integer, a float,

# and a string on separate lines below.


print type(42)

print type(-1.2)

print type('keol')


9. 

def shut_down(s):

    if s == "yes":

        return "Shutting down"

    elif s == "no":

        return "Shutdown aborted"

    else:

        return "Sorry"


10.

import math


print math.sqrt(13689)


11.

def distance_from_zero(arg):

    if type(arg) == int or type(arg) == float:

        return abs(arg)

    else:

        return "Nope"



'Python' 카테고리의 다른 글

Tkinter 를 이용한 시계  (0) 2017.06.27
Mac에서 Python 개발 환경 구축하기  (0) 2016.02.18
functions  (0) 2016.02.08
Pig Latin  (0) 2016.02.08
Conditional and control flow  (0) 2016.02.05

+ Recent posts