Hi, When looking through the gcov results I see in a few cases strange execution counts for signal declarations. The two most prominent examples are appended.
I'd expect that the execution count is 1, because the signal is initialized and that happens exactly once at startup. But how comes that a single signal is 'executed' thousands of times ? Code was compiled without -O options, thus without optimization. Any hint very appreciated. With best regards, Walter ----------------------- Two prominent examples - pdp11_core.vhd.gcov -: 97:architecture syn of pdp11_core is -: 98: 1: 99: signal GRESET : slbit := '0'; 1: 100: signal CRESET_L : slbit := '0'; 2: 101: signal BRESET_L : slbit := '0'; 2: 102: signal VM_CNTL : vm_cntl_type := vm_cntl_init; 2: 103: signal VM_STAT : vm_stat_type := vm_stat_init; 2: 104: signal MMU_MONI : mmu_moni_type := mmu_moni_init; 18229: 105: signal DP_CNTL : dpath_cntl_type := dpath_cntl_init; 1: 106: signal DP_STAT : dpath_stat_type := dpath_stat_init; 1: 107: signal DP_PSW : psw_type := psw_init; 1: 108: signal DP_PC : slv16 := (others=>'0'); 1: 109: signal DP_IREG : slv16 := (others=>'0'); 1: 110: signal VM_DIN : slv16 := (others=>'0'); 1: 111: signal VM_ADDR : slv16 := (others=>'0'); 1: 112: signal VM_DOUT : slv16 := (others=>'0'); 1: 113: signal ID_STAT : decode_stat_type := decode_stat_init; 1: 114: signal INT_PRI : slv3 := (others=>'0'); 1: 115: signal INT_VECT : slv9_2 := (others=>'0'); 1: 116: signal CP_STAT_L : cp_stat_type := cp_stat_init; 1: 117: signal INT_ACK : slbit := '0'; 1: 118: signal SNUM : slv8 := (others=>'0'); ---- - rlink_sp2c.vhd.gcov 2: 81:architecture syn of rlink_sp2c is 1: 82: 51827: 83: signal RLB_DI : slv8 := (others=>'0'); 1: 84: signal RLB_ENA : slbit := '0'; 1: 85: signal RLB_BUSY : slbit := '0'; 1: 86: signal RLB_DO : slv8 := (others=>'0'); 1: 87: signal RLB_VAL : slbit := '0'; 1: 88: signal RLB_HOLD : slbit := '0'; -: 89: 1: 90: signal RB_MREQ_M : rb_mreq_type := rb_mreq_init; 1: 91: signal RB_SRES_M : rb_sres_type := rb_sres_init; 1: 92: signal RB_SRES_RBMON : rb_sres_type := rb_sres_init; -: 93: -: 94:begin _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss