@celox-sim/celox-napi 0.1.13 → 0.1.15

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 +10 -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. */
@@ -53,7 +53,7 @@ export declare class NativeSimulationHandle {
53
53
  */
54
54
  export declare class NativeSimulatorHandle {
55
55
  /** Create a new simulator from Veryl source code. */
56
- constructor(code: string, top: string, options?: NapiOptions | undefined | null)
56
+ constructor(sources: Array<NapiSourceFile>, top: string, options?: NapiOptions | undefined | null)
57
57
  /**
58
58
  * Create a new simulator from a Veryl project directory.
59
59
  *
@@ -123,6 +123,8 @@ export interface NapiOptions {
123
123
  extraSource?: string
124
124
  /** Parameter overrides for the top-level module. */
125
125
  parameters?: Array<NapiParamOverride>
126
+ /** Dead store elimination policy: "off", "preserve_top_ports", or "preserve_all_ports". */
127
+ deadStorePolicy?: string
126
128
  }
127
129
 
128
130
  /** A parameter override for a top-level module parameter. */
@@ -137,6 +139,12 @@ export interface NapiSignalPath {
137
139
  varPath: Array<string>
138
140
  }
139
141
 
142
+ /** A source file with its content and path. */
143
+ export interface NapiSourceFile {
144
+ content: string
145
+ path: string
146
+ }
147
+
140
148
  /** A true-loop declaration with a convergence iteration limit. */
141
149
  export interface NapiTrueLoop {
142
150
  from: NapiSignalPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celox-sim/celox-napi",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
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.13",
48
- "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.13",
49
- "@celox-sim/celox-napi-linux-x64-musl": "0.1.13",
50
- "@celox-sim/celox-napi-linux-arm64-musl": "0.1.13",
51
- "@celox-sim/celox-napi-darwin-x64": "0.1.13",
52
- "@celox-sim/celox-napi-darwin-arm64": "0.1.13",
53
- "@celox-sim/celox-napi-win32-x64-msvc": "0.1.13"
47
+ "@celox-sim/celox-napi-linux-x64-gnu": "0.1.15",
48
+ "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.15",
49
+ "@celox-sim/celox-napi-linux-x64-musl": "0.1.15",
50
+ "@celox-sim/celox-napi-linux-arm64-musl": "0.1.15",
51
+ "@celox-sim/celox-napi-darwin-x64": "0.1.15",
52
+ "@celox-sim/celox-napi-darwin-arm64": "0.1.15",
53
+ "@celox-sim/celox-napi-win32-x64-msvc": "0.1.15"
54
54
  }
55
55
  }