libreda-db 0.0.4

Layout and netlist datastructures for chip design.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13

use libreda_db::layout::prelude::*;
use libreda_db::property_storage::WithProperties;

#[test]
fn test_shape_properties() {
    let mut layout = Layout::new();
    let layer = layout.find_or_create_layer(0, 0);
    let top_cell = layout.create_and_get_cell(Some("TOP"));
    let shapes = top_cell.shapes_get_or_create(layer);
    let rect = shapes.insert(Rect::new((0, 0), (10, 10)));
    rect.set_property("name".to_string(), "Rectangle".to_string());
}