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.

本网站上的所有内容和材料均“按原样”提供。赛普拉斯半导体公司及其各个供应商对这些材料用于任何用途的适用性不作陈述,并且对关于这些材料的所有担保和条件概不负责,包括但不限于有关适销性、针对特定用途之适用性、权利和不侵犯任何第三方知识产权的所有暗示担保和条件。赛普拉斯半导体公司不授予任何明示或暗示的许可(无论是以默许方式或是任何其他方式)。使用本网站上的信息可能需要第三方的许可,或赛普拉斯半导体公司的许可。

本网站上的内容可能包含或必须遵守关于使用的特定准则或限制。所有帖子和使用本网站上的内容都必须遵守本网站的条款与条件;使用这些内容的第三方必须同意遵守任何限制或准则,并遵守本网站的条款与条件。赛普拉斯半导体公司及其供应商保留随时对内容和材料、产品、计划和服务进行纠正、删除、修改、增强、改进或其他变更,或者移动或终止任何内容、产品、计划或服务的权利,恕不另行通知。