| Crates.io | netlist-db |
| lib.rs | netlist-db |
| version | 0.4.7 |
| created_at | 2025-01-27 05:30:01.653415+00 |
| updated_at | 2025-09-10 01:27:58.628769+00 |
| description | Concurrent/Parallel SPICE (HSPICE) parser, under building. |
| homepage | |
| repository | https://github.com/zao111222333/netlist-db/ |
| max_upload_size | |
| id | 1532022 |
| size | 168,049 |
Concurrent/Parallel SPICE (HSPICE) parser, under building.
.inc and .lib) commandDownload the releases/latest/examples.zip, then
cd examples_x86_64-unknown-linux-musl
./parser tests/top.sp
Or you can compile & run this example by
cargo run --example parser --release -- tests/top.sp
cargo run --example parser --release -- tests/top.sp | aha --black > output.html 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/inc/inc0.sp" 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/inc/inc1.sp" 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/lib.sp", section tt 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/units.sp" 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/inc/inc2.sp" 2025-01-27T01:40:43.135Z DEBUG [netlist_db::file] load File "tests/inc/../lib.sp", section pre_layout 2025-01-27T01:40:43.136Z DEBUG [netlist_db::file] load File "tests/inc/../cycle_ref0.sp" 2025-01-27T01:40:43.136Z DEBUG [netlist_db::file] load File "tests/inc/../cycle_ref1.sp" 2025-01-27T01:40:43.137Z ERROR [netlist_db::lexer] File "tests/top.sp", line 5 .inc 'inc/inc0.sp' <- Error: No such file or directory (os error 2)2025-01-27T01:40:43.137Z ERROR [netlist_db::lexer] File "tests/inc/../cycle_ref1.sp", line 2 .inc 'cycle_ref0.sp' <- CircularDefinition: Detect circular definition in File "tests/inc/../cycle_ref0.sp", line 2 File "tests/top.sp", line 6 ↓ File "tests/inc/inc2.sp", line 2 ↓ File "tests/inc/../lib.sp", line 3, section pre_layout ↓ * File "tests/inc/../cycle_ref0.sp", line 2 ↓ File "tests/inc/../cycle_ref1.sp", line 2 ↓ * File "tests/inc/../cycle_ref0.sp", line 2
2025-01-27T01:40:43.137Z ERROR [netlist_db::lexer] File "tests/inc/../lib.sp", line 7 .params flag=1 <- SyntaxError: Unknwon command
params2025-01-27T01:40:43.137Z ERROR [netlist_db::lexer] File "tests/top.sp", line 8 .lib 'lib.sp' tt <- Error: Can NOT find section
ttin file "tests/lib.sp"2025-01-27T01:40:43.137Z ERROR [netlist_db::lexer] File "tests/units.sp", line 7
======= AST ===========
.subckt DEMO A1 A2 var1=1 var2=2.option
cargo install cargo-regression # install for first time
cargo build --examples --release
cargo regression ./tests/