On 2017-12-03 17:04, andy pugh wrote:

On 3 December 2017 at 16:00, Gene Heskett<ghesk...@shentel.net>  wrote:

I find my self having to pick up and move a net statement in order to
satisfy the requirement that the src statement must be the first
encountered as the file is being parsed,
There is no such requirement. You can connect the  input and output
pins to a net in absolutely any order you like.


As far as I know, the only order constraint is that you cannot link a pin via "net" statement until the component has been loaded. If you split your HAL config in several files, the "loadrt" statements are usually spread over different files. The solution is to break "net" statements as below to keep well structured config, for an easier reading and maintenance.

file1.hal:
loadrt and2
net mysig and2.0.in0

file2.hal:
loadrt not
net mysig not.0.out

Which is fully equivalent to single HAL config file:
loadrt and2
loadrt not
net mysig and2.0.in0 not.0.out

Of course, this example is not representative of the interest for multiple files config. Typical usage is to split the config between hardware related statements and GUI related statements.

Frederic
http://cnc.f1oat.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to