()
| 583 | } |
| 584 | |
| 585 | func (b *BusOne) String() string { |
| 586 | var output uint16 |
| 587 | var x int = 0 |
| 588 | for i := arch.BUS_WIDTH - 1; i >= 0; i-- { |
| 589 | if b.outputs[i].Get() { |
| 590 | output = output | (1 << uint16(x)) |
| 591 | } else { |
| 592 | output = output & ^(1 << uint16(x)) |
| 593 | } |
| 594 | x++ |
| 595 | } |
| 596 | return utils.ValueToString(output) |
| 597 | } |
nothing calls this directly
no test coverage detected