cyvis files always contain many meaningless updates

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JoBr_1593366
Level 5
Level 5
100 sign-ins 50 questions asked 100 replies posted

It seems like every time I make a change to a schematic, the .cysch.cyvis file gets a raft of meaningless tweaks to component locations at the same time for no reason:

JoBr_1593366_0-1624210015061.png

These clutter up the git history and make it hard to find the actual meaningful changes.  Can this behavior be fixed?

(I don't understand why these are even saved as floats when the wires and components are always snapped to a grid.)

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @JoBr_1593366 ,

Thank you for pointing this out. Even though the schematic is the same, the way the floats are being calculated is causing this and since it has upto 4 decimals of accuracy (a good thing and a bad thing), the number calculaṭed seems to be minorly different each time. I have passed this on to the software team for evaluation. 

Regards,
Dheeraj

View solution in original post

8 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

JoBr,

It makes sense that the TopDesign.cysch gets updated when a schematic change occurs.  There is no way to avoid even minute changes like you mention.

The .cyvis file you mention:  I don't see it in any of my designs.  Where do you find it in yours?

If it is not necessary in a design, you can ignore/exclude it from the git archive.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

These files are generated when you turn on "Generate Description Files" for the project. They allow you to see what has changed in the git history (since diffs of binary cysch files are useless for this).

There's no reason why the locations and widths of every component should change by small fractions just because, for instance, I renamed one of them, or disabled one of them, without changing the position of anything, but that's what it does. Seems like a flaw in the way the schematic is stored?

0 Likes

JoBr,

I guess I never needed to "Generate Description Files".

Small changes in the locations and widths on a minor schematic change:  Is it a bug or a feature(?)  Don't know.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

where that "Generate Description Files"  option is located? I can't find it.

0 Likes

Right-click the project name in Workspace Explorer, go to Properties..., then Generate Description Files to True

It generates plain text versions of the schematic's visual (.cysch.cyvis) and functional (.cysch.cysem) layout.  I use them to see changes in git or to do diffs between different schematics, etc. but it doesn't work great because of problems like this.  It also randomly reorders things, which adds noise to diffs for no change. 

I'm not sure if it's possible to convert the plain text files back into a binary schematic file.

0 Likes

Thank you for info. In which folder should I look for the output file? - Can't find it.

0 Likes

You have to modify the schematic and save it to generate the first one.  You can then undo the modification and save it again.  (Another quirk of these files that I don't like.)  Then they will be in the same folder as the .cysch.

0 Likes
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @JoBr_1593366 ,

Thank you for pointing this out. Even though the schematic is the same, the way the floats are being calculated is causing this and since it has upto 4 decimals of accuracy (a good thing and a bad thing), the number calculaṭed seems to be minorly different each time. I have passed this on to the software team for evaluation. 

Regards,
Dheeraj