On Sat, Apr 24, 2010 at 07:45:33PM +0000, Chris Morley wrote:
> This has all the info except primary function.
I don't think it's possible for the primary tag to be anything else
besides IOPortTag. But in order to be future proof, I'll rename these
current tags to say "secondary" even if there's no "primary" in the xml
file. If the ability to have non-IOPort primary functions is added it
will require lots of other changes (such as to the idrom structure and
the hostmot2 hal driver), so we can just leave it for when it happens.
> > <function>134</function>
> ^^^ is this just a count of all functions?
In the vhdl source of hostmot2 each secondary pin function has an
associated numeric value. In this case, it's
constant StepGenTable5Pin : std_logic_vector(7 downto 0) := x"86";
This is the case for most of the occasions where I have a 'bar' and a
'barname' tag both.
The function number applies only for a given tag; for a different tag
the same function number might mean something else.
It looks like input tags are typically small numbers, and output tags
are typically (128+small number), but I'm not sure this is a requirement.
You can refer to the hostmot2 hal driver or to IDROMConst.vhd for some
indications of what each number means.
http://git.unpythonic.net/view?p=hostmot2-firmware.git;a=blob;f=IDROMConst.vhd
> > <functionname>StepTable (out)</functionname>
>
> ^^^ this should say which number steptable - StepTable6 (out)
Fixed. I wonder whether for i18n purposes it's better for stepconf to
know what 134 means for a stepgen pin and display an appropriate
translated name for the user, but maybe it's just as easy to work from
the functionname. Since both are in the xml file either approach is
possible.
> So would we put all these xml files in one folder so
> a program would just search that folder for all available
> firmware on a system?
What I am considering is adding this to /lib/firmware alongside the .BIT
file. So for instance if you know the base directory to use for the
selected card is /lib/firmware/hm2/5i22-1/ then you can just use
glob.glob("/lib/firmware/hm2/5i22-1/*.xml") to get all the xml files (or
something involving os.listdir if you prefer). To get the bitfile name,
just change the extension .xml to .BIT. I haven't done the .deb
packaging of the .xml files yet, so I'm open to suggestions about this.
Jeff
------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers