Code Monkey home page Code Monkey logo

Comments (4)

yoogx avatar yoogx commented on August 30, 2024

What do you mean by "we cannot ignore source_text in source program"? A model is perfectly valid if subprograms do not define source_text. However it may not be correct for a specific model processing if absent. For instance, scheduling analysis does not need this property defined, but code generation does. Since code generation may not consider device, it is fine.

from ocarina.

ibertli avatar ibertli commented on August 30, 2024

What do you mean by "we cannot ignore source_text in source program"? A model is perfectly valid if subprograms do not define source_text. However it may not be correct for a specific model processing if absent. For instance, scheduling analysis does not need this property defined, but code generation does. Since code generation may not consider device, it is fine.

I do not understand. If i do code generation work use software component without 'source_text' in subprogram, how can i confirm which file to execute when call a subprogram and where is the function 'subprogram_b'? Example like this:


SUBPROGRAM subprogram_b
features
subb_port: in parameter Base_Types::integer;
PROPERTIES
SOURCE_LANGUAGE => (C);
SOURCE_NAME => "subprogram_b";
END subprogram_b;


from ocarina.

yoogx avatar yoogx commented on August 30, 2024

I suggest you study the provided examples.

As I said;

  • your example is perfectly valid if you perform scheduling. The Source_Text property is not necessar.
  • your example is invalid for code generation: the name of the C file is missing and you cannot complete code generation

from ocarina.

ibertli avatar ibertli commented on August 30, 2024

I know what's your mean. Aimed at code geration, i cannot ignore 'source_text'。Thanks very much!

from ocarina.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.