Index: trunk/doc/user/02_model/display_name.html =================================================================== --- trunk/doc/user/02_model/display_name.html (revision 3771) +++ trunk/doc/user/02_model/display_name.html (revision 3772) @@ -152,7 +152,7 @@ specific attributes filled in, every target_ plugin can pick the right one. Or if not, fall back to a more generic attribute.

-TODO: draw flow +How concrete port name or pinnum is compiled to display name in the abstract model using different target plugins

The result is always written to the display/name attribute of the component's port in the abstract model. It's displayed on screen because Index: trunk/doc/user/02_model/src/Makefile =================================================================== --- trunk/doc/user/02_model/src/Makefile (revision 3771) +++ trunk/doc/user/02_model/src/Makefile (revision 3772) @@ -1,4 +1,7 @@ -all: ../target.svg +all: ../target.svg ../target2.svg ../target.svg: target.dot - dot -T svg $^ > $@ \ No newline at end of file + dot -T svg $^ > $@ + +../target2.svg: target2.dot + dot -T svg $^ > $@ Index: trunk/doc/user/02_model/src/target2.dot =================================================================== --- trunk/doc/user/02_model/src/target2.dot (nonexistent) +++ trunk/doc/user/02_model/src/target2.dot (revision 3772) @@ -0,0 +1,22 @@ +digraph target{ + rankdir=LR + concrete [label="terminal in the\nconcrete model" shape=box] + target_pcb [label="target_pcb"] + target_spice [label="target_spice"] + abstract1 [label="port in the\nabstract model for\nthe pcb view"] + abstract2 [label="port in the\nabstract model for\nthe spice view"] + export_tedax [label="export plugin:\nexport_tedax"] + netlist1 [label="netlist output:\nfoo.tdx" shape="box"] + export_spice [label="export plugin:\nexport_spice"] + netlist2 [label="netlist output:\nfoo.spice" shape="box"] + + concrete -> target_pcb [label="pcb/pinnum\nname"] + concrete -> target_spice [label="spice/pinnum"] + target_pcb->abstract1 [label="display/name"] + target_spice->abstract2 [label="display/name"] + abstract1->export_tedax [label="display/name"] + export_tedax->netlist1 + abstract2->export_spice [label="display/name"] + export_spice->netlist2 + +} \ No newline at end of file Index: trunk/doc/user/02_model/target2.svg =================================================================== --- trunk/doc/user/02_model/target2.svg (nonexistent) +++ trunk/doc/user/02_model/target2.svg (revision 3772) @@ -0,0 +1,131 @@ + + + + + + +target + + + +concrete + +terminal in the +concrete model + + + +target_pcb + +target_pcb + + + +concrete->target_pcb + + +pcb/pinnum +name + + + +target_spice + +target_spice + + + +concrete->target_spice + + +spice/pinnum + + + +abstract1 + +port in the +abstract model for +the pcb view + + + +target_pcb->abstract1 + + +display/name + + + +abstract2 + +port in the +abstract model for +the spice view + + + +target_spice->abstract2 + + +display/name + + + +export_tedax + +export plugin: +export_tedax + + + +abstract1->export_tedax + + +display/name + + + +export_spice + +export plugin: +export_spice + + + +abstract2->export_spice + + +display/name + + + +netlist1 + +netlist output: +foo.tdx + + + +export_tedax->netlist1 + + + + + +netlist2 + +netlist output: +foo.spice + + + +export_spice->netlist2 + + + + +