1. Create library components
I spend several hours to understood how to make a library part for a hal-component. In order to help incapable people like me, i wrote some tips.
1.1. Symbol
*Add a text [>Name] on the Names layer *For each pin set the properties Name : the name as is in the man page Visible: Pin
1.2. Device
*Create a device with a name as is in the Name part of man pages. eg. conv_float_u32 *Add the symbol that you create Name: Live it empty Add Level: Must *Add symbol [PIN-FUCTION] Name: . (Just a dot) Add level: Must *add symbol [PIN-PARAMETER] as many as required by the component. Name: .name(A dot followed by the parameter name) Add Level: I am not sure what is going here. I use [Must] and works. *Connect all pins to the DUMMY package. *Set the Prefix to the component name as is in the Functions part of the man page followed by a dot. e.g. conv-float-u32. *Add a description from man page. This is optional, but it takes just a few seconds and we have a nice help for the component Copy the html code from man page.Copy only the part from Name down to Licence.
1.3. Modify the ulp script
In the [hal-write-2.4.ulp[ file add your component name in the [dev_names] array. Thats it.
1.4. Warning
Those are things that i found in a trial and error procedure. It works for me but may contain errors.
|