- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I made demo component with variable number of inputs: 0-2. When Ninputs set to less than 2, corresponding pin's visibility is set to "invisible", and internal "NOT" gate is removed by using property CY_REMOVE. Upon build, Creator 3.1 throws an error: "wire is not connected to anything" (project and picture attached).
How to deal with hanging wires after internal parts are removed?
regards,
odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached corrected example of custom component with variable number of inputs and outputs. Component itself is a demo and does not do anything but hiding pins. Challenge was to make removable some unused parts of component, it was resolved by using virtual muxes. It seems the way Cypress does it, but documentation is hard to find if any.
Question remaining : how to make component rectangle to shrink when external pins become invisible?
odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There should be a way to define the in- and outputs as busses with varying width. So your component will have the same size all the time.
But
I didn't find out yet how to specify the width as a varying item while setting the properties of the controlling component.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob,
Thank you for reply. Combining the inputs (and outputs) into a bus line with variable width was my next question. I will try to file a case with Cypress.
I am still curious how Cypress makes components "shrinkable". I saw some stock components to shrink before, but don't remember which one it was. Can you remind me?
I am inspecting Cypress component sources, and way they created is not documented in the Component Author Guide. Is there internal Cypress documentation available?
odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not have access to any Cypress internals, I'm a developer as you are. Probably you will get more help when filing a MyCase.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob,
I am not software developer, I am merely a hobbyist, at the beginning of the learing curve. In this regards I appreciate any advise.
odissey1