element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Enhancement to bus command
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 189 subscribers
  • Views 796 views
  • Users 0 members are here
Related

Enhancement to bus command

rachaelp
rachaelp over 10 years ago

Hi All,

 

I'll prefix this with, maybe I haven't spotted the obvious and it's actually possible to do this so please let me know if it is.

 

In replying to another question on here the other day it made me realise there appears to be a small shortcoming in the bus functionality when it comes to creating busses with arbitrarily named signals (rather than bus bit numbers for example). I'll highlight this with a few examples of what I would like to do, then what I actually need to do, and what I think would be a simple solution to the problem.

 

Example 1: I want to create two SPI busses to connect a microprocessor to various devices on a board on separate SPI busses (i.e. the microprocessor has two separate SPI controllers within it and I want to use them both).

 

I'd like to be able to use the following bus commands:

 

bus SPI1:!CS,SCK,MOSI,MISO

bus SPI2:!CS,SCK,MOSI,MISO

 

What I actually need to do is:

 

bus SPI1:!SPI1_CS,SPI1_SCK,SPI1_MOSI,SPI1_MISO

bus SPI2:!SPI2_CS,SPI2_SCK,SPI2_MOSI,SPI2_MISO

 

If I create a bus with the format DATA[0..15] it neatly expands to DATA0 through DATA15 within the bus, wouldn't it be nice if the bus name before the colon could be a prefix to the signal names specified (maybe with or without the example _ separator) within the bus? Then the first notation could be used and a simple up arrow after the first command is complete and change a 1 to a 2 will allow me to create a completely unique second bus and the internal wire names would then be !SPI1_CS, SPI1_SCK.... etc.... for the first bus and  !SPI2_CS, SPI2_SCK.... etc.... for the second.

 

Now, what then needs to happen would be if I changed the name of a bus then all the signal names which were auto-prefixed by that bus should be automatically updated on all the wires connected to the bus. This bit may be harder to achieve but would be a real time saver if it could be done as it would allow for sections of schematics to be copied and pasted and then busses easily renamed so they were unique.

 

What do people think?

 

I'm going to post this separately in Eagle Central forums as it appears the link is broken again (after being back so very briefly last week!) so sorry if this becomes a duplicate when the link gets re-established.

 

Rachael

  • Sign in to reply
  • Cancel
Parents
  • kikoun
    kikoun over 10 years ago

    Hi,

     

    You're right, Eagle bus management could (should ?) be enhanced !

     

    I think your proposition is great. the dialog box for naming the bus and its nets could be enhanced too: writing all the net on 1 single line is not the best (specially on large bus). Visibility could be increased too if there is a way to group some net in a 'sub-bus'. It's possible with net with an incremental name (DATA[0..15]), but with other type of net it could be nice too. For example:

    Bus : MANE_BUS

    + DATA[0..15]

    + ADR[0..7]

    +CTRL[!CS,!WR,!RD]

     

    And the editing windows would be based on an 'Tree' that show the nets organized the same way than when we select nets for connecting...

     

    You also right, renaming buses also need improvements ...

    Guillaume.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 10 years ago in reply to kikoun

    Hi Guillaume,

     

    Thanks for your support on this enhancement request. Your comment on here prompted me to get on with writing a ULP I was planning to enhance bus management. I've got it pretty much working with a simple dialog box for naming and renaming busses, including automatically renaming signals ripped off a bus, but there are a few little wrinkles which I still need to iron out. Once I have fixed a couple more things then I'll make it available for others to use.

     

    Best Regards,


    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rachaelp
    rachaelp over 10 years ago in reply to kikoun

    Hi Guillaume,

     

    Thanks for your support on this enhancement request. Your comment on here prompted me to get on with writing a ULP I was planning to enhance bus management. I've got it pretty much working with a simple dialog box for naming and renaming busses, including automatically renaming signals ripped off a bus, but there are a few little wrinkles which I still need to iron out. Once I have fixed a couple more things then I'll make it available for others to use.

     

    Best Regards,


    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • rachaelp
    rachaelp over 10 years ago in reply to kikoun

    Guillaume barrey wrote:

     

    Thank you Rachael for working on an ulp !

    You're welcome. I have a way to go yet, but for the initial creation of the bus and all it's various elements, including sub-busses it works a treat and basic renaming of a bus correctly renames wires ripped from it except for the corner case of sub-busses. Once I have sub busses cracked the next challenge will be how to deal with more extensive edits correctly which currently goes a little awry! I'll post up when I have it sorted :-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kikoun
    kikoun over 10 years ago in reply to rachaelp

    Thank you Rachael for working on an ulp !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube