Metadata-Version: 2.4
Name: hwcomponents_dsent
Version: 1.0.4
Summary: A package for estimating the energy and area of on-chip network routers, links and crossbars with DSENT
Author-email: Arunkumar Vaidyanathan <vaidyanathan@ice.rwth-aachen.de>
License-Expression: MIT
Keywords: accelerator,hardware,energy,estimation,DSENT,NoC
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: hwcomponents

# HWComponents-DSENT

This package connects [DSENT](https://github.com/gem5/gem5/tree/stable/ext/dsent) to HWComponents. 
It provides models for electrical network-on-chip routers and links, and bufferless
crossbar switches such as buses.

These models are for use with the HWComponents package, found at
https://accelergy-project.github.io/hwcomponents/.

## Installation

```bash
make build      # compile the standalone DSENT executable
pip install .

# Check that the installation is successful
hwc --list | grep -iE 'router|link|crossbar'
```

## Models

- `Router`: input-buffered virtual-channel router. Actions: `route_flit` (buffer write +
  buffer read + switch arbitration + crossbar traversal), and the individual
  `write_buffer`, `read_buffer`, `arbitrate`, `traverse_crossbar`. Clock-tree power is
  activity-independent and is included in `leak_power`.
- `NoCLink`: repeated-wire link. Action: `send`.
- `Crossbar`: bufferless multiplexer crossbar with a matrix arbiter per output, e.g. a
  bus. Actions: `traverse` (a word from an input to an output) and `arbitrate` (an
  output granted to an input, once per transfer; zero with a single input). A shared bus
  is a crossbar with one output (`n_outputs=1`, the default); a crossbar with dedicated
  connections has one per endpoint. Wires to and from the switch are not included:
  add a `NoCLink` of their length.

```python
from hwcomponents_dsent import Crossbar, NoCLink, Router

router = Router(tech_node=22e-9, flit_width=64, n_in_ports=5, n_out_ports=5)
link = NoCLink(tech_node=22e-9, width=64, length=1e-3)
print(router.route_flit(), router.leak_power, router.area)
print(link.send(), link.leak_power, link.area)

bus = Crossbar(tech_node=22e-9, width=64, n_inputs=6)  # shared bus of 6 endpoints
print(bus.traverse(), bus.arbitrate(), bus.leak_power, bus.area)
```

DSENT ships 22, 32, and 45nm bulk technology models. Other nodes are linearly
interpolated or extrapolated. Pass `include_11nm_trigate=True` to also use DSENT's 11nm
tri-gate model.

## Citation

```bibtex
@inproceedings{sun2012dsent,
  author={Sun, Chen and Chen, Chia-Hsin Owen and Kurian, George and Wei, Lan and Miller, Jason and Agarwal, Anant and Peh, Li-Shiuan and Stojanovic, Vladimir},
  booktitle={2012 IEEE/ACM Sixth International Symposium on Networks-on-Chip (NOCS)},
  title={DSENT - A Tool Connecting Emerging Photonics with Electronics for Opto-Electronic Networks-on-Chip Modeling},
  year={2012},
  pages={201-210},
  doi={10.1109/NOCS.2012.31}
}
```
