@yowasp/yosys 0.38.668 → 0.39.37-dev.676
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.
- package/README.md +3 -3
- package/gen/bundle.js +61 -33
- package/gen/resources-yosys.js +4 -4
- package/gen/share/quicklogic/qlf_k6n10f/bram_types_sim.v +1 -1
- package/gen/yosys.core.wasm +0 -0
- package/gen/yosys.core2.wasm +0 -0
- package/gen/yosys.core3.wasm +0 -0
- package/gen/yosys.core4.wasm +0 -0
- package/lib/api.d.ts +13 -6
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// **AUTOGENERATED FILE** **DO NOT EDIT**
|
|
2
|
-
// Generated by ../yosys-src/techlibs/quicklogic/qlf_k6n10f/generate_bram_types_sim.py at 2024-02-
|
|
2
|
+
// Generated by ../yosys-src/techlibs/quicklogic/qlf_k6n10f/generate_bram_types_sim.py at 2024-02-13 11:06:43.909462+00:00
|
|
3
3
|
`timescale 1ns /10ps
|
|
4
4
|
|
|
5
5
|
module TDP36K_BRAM_A_X1_B_X1_nonsplit (
|
package/gen/yosys.core.wasm
CHANGED
|
Binary file
|
package/gen/yosys.core2.wasm
CHANGED
|
Binary file
|
package/gen/yosys.core3.wasm
CHANGED
|
Binary file
|
package/gen/yosys.core4.wasm
CHANGED
|
Binary file
|
package/lib/api.d.ts
CHANGED
|
@@ -2,20 +2,27 @@ export type Tree = {
|
|
|
2
2
|
[name: string]: Tree | string | Uint8Array
|
|
3
3
|
};
|
|
4
4
|
|
|
5
|
+
export type InputStream =
|
|
6
|
+
(byteLength: number) => Uint8Array | null;
|
|
7
|
+
|
|
5
8
|
export type OutputStream =
|
|
6
9
|
(bytes: Uint8Array | null) => void;
|
|
7
10
|
|
|
11
|
+
export type RunOptions = {
|
|
12
|
+
stdin?: InputStream | null;
|
|
13
|
+
stdout?: OutputStream | null,
|
|
14
|
+
stderr?: OutputStream | null,
|
|
15
|
+
decodeASCII?: boolean
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type Command =
|
|
19
|
+
(args?: string[], files?: Tree, options?: RunOptions) => Tree | Promise<Tree> | undefined;
|
|
20
|
+
|
|
8
21
|
export class Exit extends Error {
|
|
9
22
|
code: number;
|
|
10
23
|
files: Tree;
|
|
11
24
|
}
|
|
12
25
|
|
|
13
|
-
export type Command = (args?: string[], files?: Tree, options?: {
|
|
14
|
-
stdout?: OutputStream | null,
|
|
15
|
-
stderr?: OutputStream | null,
|
|
16
|
-
decodeASCII?: boolean
|
|
17
|
-
}) => Promise<Tree>;
|
|
18
|
-
|
|
19
26
|
export const runYosys: Command;
|
|
20
27
|
|
|
21
28
|
export const commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yowasp/yosys",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.37-dev.676",
|
|
4
4
|
"description": "Yosys Open SYnthesis Suite",
|
|
5
5
|
"author": "Catherine <whitequark@whitequark.org>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"types": "./lib/api.d.ts",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@bytecodealliance/jco": "0.
|
|
30
|
-
"@yowasp/runtime": "
|
|
29
|
+
"@bytecodealliance/jco": "1.0.0",
|
|
30
|
+
"@yowasp/runtime": "8.0.40",
|
|
31
31
|
"esbuild": "^0.19.8"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"transpile": "jco new ../yosys-build/yosys.wasm --wasi-command --output yosys.wasm && jco transpile yosys.wasm --instantiation
|
|
34
|
+
"transpile": "jco new ../yosys-build/yosys.wasm --wasi-command --output yosys.wasm && jco transpile yosys.wasm --instantiation sync --no-typescript --no-namespaced-exports --map 'wasi:io/*=runtime#io' --map 'wasi:cli/*=runtime#cli' --map 'wasi:clocks/*=runtime#*' --map 'wasi:filesystem/*=runtime#fs' --map 'wasi:random/*=runtime#random' --out-dir gen/",
|
|
35
35
|
"pack": "yowasp-pack-resources gen/resources-yosys.js gen ../yosys-build/share",
|
|
36
36
|
"build": "esbuild --bundle lib/api.js --outfile=gen/bundle.js --format=esm --platform=node --external:./resources-*.js",
|
|
37
37
|
"all": "npm run transpile && npm run pack && npm run build"
|