/dports/cad/tkgate/tkgate-2.1/src/tkgate/ |
H A D | generic.h | 28 void Generic_Init(GCElement*); 32 void Generic_Draw(GCElement *g,int md); 33 void Generic_Move(GCElement*,int,int); 34 GCElement *Generic_Copy(GModuleDef*,GCElement*,int,int,unsigned); 40 void Generic_VerSave(FILE*,GCElement*); 55 void Err_AddInput(EditState*,GCElement*); 57 void Err_AddInOut(EditState*,GCElement*); 61 GCElement *Nop_Copy(EditState *es,GCElement *g,int x,int y,unsigned flags); 64 int Nop_VerSave(FILE*,GCElement*); 69 void InOut_Draw(GCElement*,int); [all …]
|
H A D | module.h | 105 int block_getPad(GCElement *g,GWire *w); 110 int block_in(int x,int y,GCElement *g); 113 void block_free(GCElement *g); 114 void block_explode(GCElement *g); 126 GCElement *block_replicate(GCElement *g,GModuleDef *M,int x,int y); 129 char *block_reportname(GCElement *g); 130 int block_isDataProtected(GCElement *g); 131 int block_isIntfProtected(GCElement *g); 132 int block_isFixedPort(GCElement *g); 143 GCElement *modint_find(const char *name); [all …]
|
H A D | elements.h | 285 GCElement *(*MakeFunction)(EditState**,GModuleDef*, 290 void (*GetExtents)(GCElement *g 295 void (*DrawGate)(GCElement*,int); /* Draw function */ 297 GCElement *(*CopyGate)(GModuleDef*,GCElement* 321 int GCElement_numPads(GCElement *g); 322 GPadLoc *GCElement_getPadLoc(GCElement *g,int p,int r); 323 int GCElement_getPadDir(GCElement *g,int p); 324 const char *GCElement_getPadName(GCElement *g,int p); 326 int GCElement_getPadCanAdd(GCElement *g,int p); 329 void GCElement_setSymbol(GCElement *g, GModSymbol *s); [all …]
|
H A D | gates.h | 96 void gate_add(GModuleDef*,GCElement *); 97 void gate_remove(GModuleDef*,GCElement *); 100 GCElement *gate_hit(GModuleDef*,int,int); 102 void gate_draw(GCElement *g,int md); 104 void gate_namegate(GCElement *g,EditState *es); 105 void gate_move(GCElement *g,int x,int y); 106 void gate_mark(GCElement *g,int select); 113 void gate_moveTo(GCElement *g,int x,int y); 118 void gate_drawWires(GCElement *g,int md); 122 GWire *block_hitPort(GCElement *g,int x,int y); [all …]
|
H A D | or.c | 22 GCElement *AOX_Make(EditState **,GModuleDef *,int,int,int,int,const char *,int,const char**,int); 23 void AOX_Draw(GCElement *g,int md); 24 void AOX_AddInput(EditState *es,GCElement*); 25 void AOX_VerSave(FILE*,GCElement*); 26 void AOX_SetProp(GCElement*,const char*,const void*); 27 int AOX_EditProps(GCElement *g,int isLoadDialog); 28 void AOX_PSWrite(GPrint *P,GModLayout*,GCElement *g); 29 void AOX_RemovePort(EditState *es,GCElement *g,GWire *); 30 GCElement *AOX_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags);
|
H A D | xor.c | 20 GCElement *AOX_Make(EditState **,GModuleDef *,int,int,int,int,const char *,int,const char**,int); 21 void AOX_Draw(GCElement *g,int md); 22 void AOX_AddInput(EditState *es,GCElement*); 23 void AOX_VerSave(FILE*,GCElement*); 24 void AOX_SetProp(GCElement*,const char*,const void*); 25 int AOX_EditProps(GCElement *g,int isLoadDialog); 26 void AOX_PSWrite(GPrint *P,GModLayout*,GCElement *g); 27 void AOX_RemovePort(EditState *es,GCElement *g,GWire *); 28 GCElement *AOX_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags);
|
H A D | script.c | 21 static GCElement *Script_Make(EditState **es,GModuleDef *env,int GType, 24 static int Script_EditProps(GCElement *g,int isLoadDialog); 25 static void Script_VerSave(FILE *f,GCElement *g); 27 static GCElement *Script_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 28 static void Script_Delete(GCElement *g,GModuleDef *M,int drawp); 99 static GCElement *Script_Make(EditState **es,GModuleDef *env,int GType, in Script_Make() 102 GCElement *g; in Script_Make() 117 static GCElement *Script_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Script_Copy() 131 void Script_Delete(GCElement *g,GModuleDef *M,int drawp) in Script_Delete() 149 static int Script_EditProps(GCElement *g,int isLoadDialog) in Script_EditProps() [all …]
|
H A D | symblock.c | 56 void SymBlock_Draw(GCElement *g,int md); 57 int SymBlock_HitDistance(GCElement *g,int x,int y); 60 GCElement *SymBlock_Copy(GModuleDef *,GCElement *g,int x,int y,unsigned flags); 61 void SymBlock_VerSave(FILE*,GCElement*); 65 int Block_SimHitFunc(EditState*,GCElement*); 179 GCElement *SymBlock_convert(GCElement *g,GModSymbol *ms,GModuleDef *M,int doWires) in SymBlock_convert() 198 g = (GCElement *) ob_realloc(g,sizeof(GCElement)+portBytes); in SymBlock_convert() 245 void SymBlock_Draw(GCElement *g,int md) in SymBlock_Draw() 316 GCElement *SymBlock_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in SymBlock_Copy() 318 GCElement *ng; in SymBlock_Copy() [all …]
|
H A D | modint.c | 34 GCElement *A = *(GCElement**) pA; in blknam_compare() 35 GCElement *B = *(GCElement**) pB; in blknam_compare() 54 GCElement *g = (GCElement*) HashElem_obj(E); in modint_findDisplay() 78 GCElement *g = (GCElement*) HashElem_obj(E); in modint_find() 96 GCElement *g = (GCElement*) HashElem_obj(E); in modint_findInAlt() 164 GCElement *g; in modint_renameInterface() 201 GCElement *r = 0; in modint_setInterface() 254 GCElement **blist; in modint_arrange() 341 GCElement *g; in modint_center() 494 GCElement *g; in modint_makeSymbolInterface() [all …]
|
H A D | comment.c | 46 void Comment_Draw(GCElement *g,int md); 48 void Comment_VerSave(FILE *f,GCElement *g); 51 GCElement *Comment_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned); 52 void Comment_Init(GCElement*g); 168 void Comment_Init(GCElement*g) in Comment_Init() 179 void Comment_flushLines(GCElement *g) in Comment_flushLines() 231 GCElement *g; in Comment_Make() 282 static int Comment_buildHtml(GCElement *g) in Comment_buildHtml() 398 GCElement *Comment_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Comment_Copy() 400 GCElement *ng; in Comment_Copy() [all …]
|
H A D | jkff.c | 36 static void JKFF_Draw(GCElement *g,int md); 37 static int JKFF_EditProps(GCElement *g,int isLoadDialog); 38 static void JKFF_VerSave(FILE *f,GCElement *g); 39 static GCElement *JKFF_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned); 41 static void JKFF_PSWrite(GPrint *gp,GModLayout*,GCElement *g); 248 GCElement *g; in JKFF_Make() 269 static void JKFF_Draw(GCElement *g,int md) in JKFF_Draw() 290 static int JKFF_EditProps(GCElement *g,int isLoadDialog) in JKFF_EditProps() 340 static void JKFF_VerSave(FILE *f,GCElement *g) in JKFF_VerSave() 349 static GCElement *JKFF_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in JKFF_Copy() [all …]
|
H A D | flipflop.c | 27 static void FF_Draw(GCElement *g,int md); 28 static int FF_EditProps(GCElement *g,int isLoadDialog); 29 static void FF_VerSave(FILE *f,GCElement *g); 30 static GCElement *FF_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned); 32 static void FF_PSWrite(GPrint *gp,GModLayout*,GCElement *g); 219 GCElement *g; in FF_Make() 240 static void FF_Draw(GCElement *g,int md) in FF_Draw() 261 static int FF_EditProps(GCElement *g,int isLoadDialog) in FF_EditProps() 311 static void FF_VerSave(FILE *f,GCElement *g) in FF_VerSave() 320 static GCElement *FF_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in FF_Copy() [all …]
|
H A D | mux.c | 35 void Mux_Draw(GCElement *g,int md); 40 void MuxDemux_VerSave(FILE*,GCElement*); 42 void Mux_AddInput(EditState *es,GCElement *g); 44 GCElement *MuxDemux_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 45 void Mux_VersionDelta(GCElement*,Version*); 48 void Demux_adjustWires(GCElement *g); 49 void Decoder_adjustWires(GCElement *g); 271 static void Mux_adjustWires(GCElement *g) in Mux_adjustWires() 329 GCElement *MuxDemux_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in MuxDemux_Copy() 362 void Mux_Draw_Special(GCElement *g) in Mux_Draw_Special() [all …]
|
H A D | switch.c | 41 void Switch_Draw(GCElement *g,int md); 42 int Switch_EditProps(GCElement *g,int isLoadDialog); 43 int Switch_SimHitFunc(EditState*,GCElement*); 178 GCElement *Switch_Make(EditState **es,GModuleDef *env,int GType, in Switch_Make() 191 void SwitchDip_getCompositeName(GCElement *g,char *compositeName) in SwitchDip_getCompositeName() 209 void Switch_Draw(GCElement *g,int md) in Switch_Draw() 233 GCElement *SwitchDip_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in SwitchDip_Copy() 235 GCElement *ng = Generic_Copy(M,g,x,y,flags); in SwitchDip_Copy() 245 int Switch_EditProps(GCElement *g,int isLoadDialog) in Switch_EditProps() 268 void SwitchDip_VerSave(FILE *f,GCElement *g) in SwitchDip_VerSave() [all …]
|
H A D | clock.c | 51 void Clock_Draw(GCElement *g,int md); 52 GCElement *Clock_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 53 int Clock_EditProps(GCElement *g,int isLoadDialog); 55 void Clock_VerSave(FILE*,GCElement*); 146 void gate_drawclockparams(GCElement *g) in gate_drawclockparams() 172 GCElement *g; in Clock_Make() 195 void Clock_Draw(GCElement *g,int md) in Clock_Draw() 201 GCElement *Clock_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Clock_Copy() 203 GCElement *ng; in Clock_Copy() 223 int Clock_EditProps(GCElement *g,int isLoadDialog) in Clock_EditProps() [all …]
|
H A D | frame.c | 56 void Frame_Draw(GCElement *g,int md); 58 void Frame_VerSave(FILE *f,GCElement *g); 61 GCElement *Frame_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned); 62 void Frame_Move(GCElement *g,int x,int y); 108 GCElement *g; in Frame_Make() 122 static void Frame_flushHtml(GCElement *g) in Frame_flushHtml() 141 void Frame_Move(GCElement *g,int x,int y) in Frame_Move() 236 GCElement *Frame_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Frame_Copy() 238 GCElement *ng; in Frame_Copy() 277 void Frame_Draw(GCElement *g,int md) in Frame_Draw() [all …]
|
H A D | and.c | 34 void AOX_Draw(GCElement *g,int md); 35 void AOX_AddInput(EditState *es,GCElement*); 36 void AOX_VerSave(FILE*,GCElement*); 38 int AOX_EditProps(GCElement *g,int isLoadDialog); 41 GCElement *AOX_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 196 void AOX_Draw(GCElement *g,int md) in AOX_Draw() 215 static void AOX_adjustWires(GCElement *g) in AOX_adjustWires() 260 void AOX_AddInput(EditState *es,GCElement *g) in AOX_AddInput() 312 int AOX_GateParmList(FILE *f,GCElement *g) in AOX_GateParmList() 352 void AOX_VerSave(FILE *f,GCElement *g) in AOX_VerSave() [all …]
|
H A D | decoder.c | 29 static void Decoder_Draw(GCElement *g,int md); 32 GCElement *MuxDemux_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 36 int MuxDemux_EditProps(GCElement *g,int isLoadDialog); 37 static void Decoder_VersionDelta(GCElement*,Version*); 40 void MuxDemux_VerSave(FILE*,GCElement*); 159 static void Decoder_adjustWiresData(GCElement *g) in Decoder_adjustWiresData() 215 static void Decoder_adjustWiresSelector(GCElement *g) in Decoder_adjustWiresSelector() 258 void Decoder_adjustWires(GCElement *g) in Decoder_adjustWires() 269 GCElement *g; in Decoder_Make() 319 static void Decoder_Draw_Special(GCElement *g) in Decoder_Draw_Special() [all …]
|
H A D | demux.c | 30 void Demux_Draw(GCElement *g,int md); 35 GCElement *MuxDemux_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 39 void Demux_AddOutput(EditState *es,GCElement *g); 40 void Demux_VerSave(FILE *f,GCElement *g); 160 static void Demux_adjustWiresData(GCElement *g) in Demux_adjustWiresData() 268 void Demux_adjustWires(GCElement *g) in Demux_adjustWires() 280 GCElement *g; in Demux_Make() 330 void Demux_Draw_Special(GCElement *g) in Demux_Draw_Special() 392 void Demux_Draw(GCElement *g,int md) in Demux_Draw() 452 void Demux_AddOutput(EditState *es,GCElement *g) in Demux_AddOutput() [all …]
|
H A D | dip.c | 29 GCElement *Dip_Make(EditState **es,GModuleDef *env,int GType, 32 void Dip_Draw(GCElement *g,int md); 33 int Dip_EditProps(GCElement *g,int isLoadDialog); 34 void Dip_PSWrite(GPrint *P,GModLayout*,GCElement *g); 35 int Dip_SimHitFunc(EditState *ss,GCElement *g); 118 GCElement *Dip_Make(EditState **es,GModuleDef *env,int GType, in Dip_Make() 121 GCElement *g; in Dip_Make() 138 void Dip_Draw(GCElement *g,int md) in Dip_Draw() 174 void Dip_PSWrite(GPrint *P,GModLayout *L,GCElement *g) in Dip_PSWrite() 183 int Dip_EditProps(GCElement *g,int isLoadDialog) in Dip_EditProps() [all …]
|
H A D | ram.c | 74 GCElement *RamRom_Make(EditState **es,GModuleDef *env,int GType, 76 int RamRom_EditProps(GCElement *g,int isLoadDialog); 77 void RamRom_SetProp(GCElement*,const char*,const void*); 78 int RamRom_SimHitFunc(EditState *es,GCElement *g); 79 void RamRom_VerSave(FILE *f,GCElement *g); 149 GCElement *RamRom_Make(EditState **es,GModuleDef *env,int GType, in RamRom_Make() 152 GCElement *g; in RamRom_Make() 171 int RamRom_EditProps(GCElement *g,int isLoadDialog) in RamRom_EditProps() 194 void RamRom_SetProp(GCElement *g,const char *name,const void *value) in RamRom_SetProp() 203 int RamRom_SimHitFunc(EditState *es,GCElement *g) in RamRom_SimHitFunc() [all …]
|
H A D | selection.c | 93 GCElement *g = (GCElement *) HashElem_obj(E); in subcircuitBBX() 297 GCElement *g = (GCElement*) HashElem_obj(gl); in sel_clear() 322 GCElement *g = (GCElement*) HashElem_obj(E); in sel_interfaceReset() 357 GCElement *g = (GCElement*) HashElem_obj(gl); in sel_select() 414 GCElement *g = (GCElement*) HashElem_obj(gl); in sel_selectMarked() 431 GCElement *g = (GCElement*) HashElem_obj(gl); in sel_selectAll() 531 GCElement *g = (GCElement*) HashElem_obj(E); in sel_rotate() 575 GCElement *g = (GCElement*) HashElem_obj(E); in sel_move() 613 GCElement *g = (GCElement*) HashElem_obj(E); in sel_draw() 926 GCElement *g = (GCElement*) HashElem_obj(E); in sel_anchor() [all …]
|
H A D | tap.c | 32 void Tap_Draw(GCElement *g,int md); 33 void Tap_Init(GCElement *g); 36 void Tap_VerSave(FILE *f,GCElement *g); 39 GCElement *Tap_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 151 GCElement *g; in Tap_Make() 174 GCElement *Tap_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Tap_Copy() 176 GCElement *ng; in Tap_Copy() 188 void Tap_Init(GCElement *g) in Tap_Init() 300 void Tap_Draw(GCElement *g,int md) in Tap_Draw() 361 void Tap_VerSave(FILE *f,GCElement *g) in Tap_VerSave() [all …]
|
H A D | switch.h | 29 GCElement *SwitchDip_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned); 30 void SwitchDip_VerSave(FILE *f,GCElement *g); 31 void SwitchDip_SetProp(GCElement*,const char*,const void*); 32 void SwitchDip_getCompositeName(GCElement *g,char *compositeName);
|
H A D | concat.c | 44 void Concat_Draw(GCElement *g,int md); 56 GCElement *Concat_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags); 197 GCElement *g; in Concat_Make() 220 GCElement *Concat_Copy(GModuleDef *M,GCElement *g,int x,int y,unsigned flags) in Concat_Copy() 279 void Concat_Draw(GCElement *g,int md) in Concat_Draw() 750 GCElement *g = w->gate; in concat_hasDriver() 808 GCElement **concats = 0; in Concat_updateAutos() 821 GCElement *g = HashElem_obj(he); in Concat_updateAutos() 837 concats = (GCElement**) malloc(sizeof(GCElement*)*count); in Concat_updateAutos() 867 GCElement *g = concats[i]; in Concat_updateAutos() [all …]
|