You are here

PSoC Creator 4.0 – Schematic Description Files | サイプレス セミコンダクタ

PSoC Creator 4.0 – Schematic Description Files

​This is my last “new feature” article for PSoC Creator 4.0. I am getting ready to do a bunch more in our next release! This one is about a pair of new files that complement the schematic file (TopDesign.cysch).

Regular users of the tool know how useful it is to make design changes in the schematic file without writing a line of C code. You can change the initial conditions of a PWM or change the speed of a UART and a rebuild just makes it happen. It is tricky, though, to track changes to a design when they are made graphically so we now enable you to save text-based (XML format) descriptions alongside the schematic source file.

There are actually two files with different extensions. The CYVIS file records the visual features in the schematic; features like shape position and size, line color, width, and style, text location and content, and so on. The CYSEM file records the semantic meaning of the design such as the component instances, wires, and parameter values. You can use these files to compare designs. The CYVIS file tells you if something has been moved, added, removed, re-sized, re-colored or otherwise cosmetically changed. The CYSEM files tells you if the design has a material change and helps you track down where it occurred.

You enable the creation of these files from the Project-Properties dialog…

Project Properties Dialog

Let’s take a simple design to show you how it works. Here I have a clock driving a PWM. Next to it I have a modified design where the PWM compare value has been changed (you cannot see that) and an annotation modified accordingly.

Clock driving a 50% duty cycle PWM        Clock driving a 25% duty cycle PWM

When I compare the visual files I see just one change. The original documents the annotation like this.

 <Annotation shapeName="Shape_2" zorder="2">

    <Location x="344.4896" y="319.9385" />

    <Text>PWM_1: 50% Duty Cycle</Text>

    <Fill>

      <SolidBrush color="0, 0, 0" />

    </Fill>

    <Font value="Microsoft Sans Serif, 10pt" />

    <TextAlignment value="TopLeft" />

 </Annotation>

In the new file the change is <Text>PWM_1: 25% Duty Cycle</Text>.

In the semantic file you can see the edit that was invisible in the schematic file.

 <Parameter name="PWMCompare">

   <Value>32767</Value>

   <Expression>32767u</Expression>

 </Parameter>

In the new file the change is pretty obvious.

 <Value>16535</Value>

 <Expression>16535u</Expression>

You can compare the files in any editor or diff tool that you like – one that understands XML is a real bonus – and you have a great way to compare designs, track revision changes, and work in teams with less risk of using the wrong, or an out of date, schematic.

Blog: 

Comments

csjoshi.editsoftdigital_2593831's picture

More About the Concept of an Afterlife: The only part of you that could in any way survive into an afterlife would have to be an immaterial part of you since when you snuff it, your material remains go nowhere. But any immaterial part of you would have no sensory apparatus so how could you enjoy an afterlife when you couldn't experience it? On the other hand, if your life is but a computer simulation, then equally so could your afterlife be another simulation. One software program ends (death) and another begins (afterlife).

Colin Cooper's picture

Like all various other discount moncler jackets locations, the over 600 sqm store in Madison Method was designed by the French architects Gilles & Boissier and also was formally opened up on 16 November.

このサイトに掲示されているすべてのコンテンツと資料は、「そのままの状態」で提供されます。サイプレス セミコンダクタとその関連サプライヤは、これらの資料について、いかなる目的への適合性をも表明することはありません。また、これらの資料について、すべての保証や条件を放棄します。これには、暗示的な保証および条件、商用性、特定の目的への適合性、すべてのサードパーティの知的財産権に対する権利と非侵害などが含まれますが、これらに制限されることはありません。サイプレス セミコンダクタにより、明示または暗示にかかわらず、禁反言などによるライセンスは、付与されないものとします。このサイトに掲示されている情報の使用には、サードパーティまたはサイプレス セミコンダクタからのライセンスが必要となる場合があります。

このサイトのコンテンツには、特定のガイドラインや使用制限が含まれている場合があります。このサイトにおけるすべての掲示やコンテンツの使用は、サイトの利用規約に準じて行われるものとします。このコンテンツを使用するサードパーティは、制限やガイドラインに従い、このサイトの利用規約を遵守するものとします。サイプレス セミコンダクタとそのサプライヤは、コンテンツや資料、その製品、プログラム、サービスに対し、いつでも修正、削除、変更、改善、向上、その他の変更を加える権利を有します。また、いかなるコンテンツ、製品、プログラム、サービスを予告なく変更または閉鎖する権利を有します。