@celox-sim/celox-napi 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +12 -2
  2. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /** Low-level handle wrapping a `celox::Simulation`. */
4
4
  export declare class NativeSimulationHandle {
5
5
  /** Create a new timed simulation from Veryl source code. */
6
- constructor(code: string, top: string, options?: NapiOptions | undefined | null)
6
+ constructor(sources: Array<NapiSourceFile>, top: string, options?: NapiOptions | undefined | null)
7
7
  /** Create a new timed simulation from a Veryl project directory. */
8
8
  static fromProject(projectPath: string, top: string, options?: NapiOptions | undefined | null): NativeSimulationHandle
9
9
  /** Returns the signal layout as a JSON string. */
@@ -12,6 +12,8 @@ export declare class NativeSimulationHandle {
12
12
  get eventsJson(): string
13
13
  /** Returns the instance hierarchy as a JSON string. */
14
14
  get hierarchyJson(): string
15
+ /** Returns analyzer warnings as a JSON array of strings. */
16
+ get warningsJson(): string
15
17
  /** Returns the stable region size in bytes. */
16
18
  get stableSize(): number
17
19
  /** Returns the total memory size in bytes. */
@@ -53,7 +55,7 @@ export declare class NativeSimulationHandle {
53
55
  */
54
56
  export declare class NativeSimulatorHandle {
55
57
  /** Create a new simulator from Veryl source code. */
56
- constructor(code: string, top: string, options?: NapiOptions | undefined | null)
58
+ constructor(sources: Array<NapiSourceFile>, top: string, options?: NapiOptions | undefined | null)
57
59
  /**
58
60
  * Create a new simulator from a Veryl project directory.
59
61
  *
@@ -68,6 +70,8 @@ export declare class NativeSimulatorHandle {
68
70
  get eventsJson(): string
69
71
  /** Returns the instance hierarchy as a JSON string. */
70
72
  get hierarchyJson(): string
73
+ /** Returns analyzer warnings as a JSON array of strings. */
74
+ get warningsJson(): string
71
75
  /** Returns the stable region size in bytes. */
72
76
  get stableSize(): number
73
77
  /** Returns the total memory size in bytes. */
@@ -139,6 +143,12 @@ export interface NapiSignalPath {
139
143
  varPath: Array<string>
140
144
  }
141
145
 
146
+ /** A source file with its content and path. */
147
+ export interface NapiSourceFile {
148
+ content: string
149
+ path: string
150
+ }
151
+
142
152
  /** A true-loop declaration with a convergence iteration limit. */
143
153
  export interface NapiTrueLoop {
144
154
  from: NapiSignalPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celox-sim/celox-napi",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Celox simulator NAPI bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "license": "MIT OR Apache-2.0",
46
46
  "optionalDependencies": {
47
- "@celox-sim/celox-napi-linux-x64-gnu": "0.1.14",
48
- "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.14",
49
- "@celox-sim/celox-napi-linux-x64-musl": "0.1.14",
50
- "@celox-sim/celox-napi-linux-arm64-musl": "0.1.14",
51
- "@celox-sim/celox-napi-darwin-x64": "0.1.14",
52
- "@celox-sim/celox-napi-darwin-arm64": "0.1.14",
53
- "@celox-sim/celox-napi-win32-x64-msvc": "0.1.14"
47
+ "@celox-sim/celox-napi-linux-x64-gnu": "0.1.16",
48
+ "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.16",
49
+ "@celox-sim/celox-napi-linux-x64-musl": "0.1.16",
50
+ "@celox-sim/celox-napi-linux-arm64-musl": "0.1.16",
51
+ "@celox-sim/celox-napi-darwin-x64": "0.1.16",
52
+ "@celox-sim/celox-napi-darwin-arm64": "0.1.16",
53
+ "@celox-sim/celox-napi-win32-x64-msvc": "0.1.16"
54
54
  }
55
55
  }