diff --git a/examples/TinyFPGA-BX/01-LED-ON.ice b/examples/TinyFPGA-BX/01-LED-ON.ice new file mode 100644 index 0000000..64237ad --- /dev/null +++ b/examples/TinyFPGA-BX/01-LED-ON.ice @@ -0,0 +1,156 @@ +{ + "version": "1.2", + "package": { + "name": "", + "version": "", + "description": "", + "author": "", + "image": "" + }, + "design": { + "board": "TinyFPGA-BX", + "graph": { + "blocks": [ + { + "id": "d0a2175e-7628-4897-9129-971450aedb1b", + "type": "basic.output", + "data": { + "name": "LED", + "pins": [ + { + "index": "0", + "name": "LED", + "value": "B3" + } + ], + "virtual": false + }, + "position": { + "x": 296, + "y": -88 + } + }, + { + "id": "51f42e2c-4965-4293-b13f-d1644b32a276", + "type": "febcfed8636b8ee9a98750b96ed9e53a165dd4a8", + "position": { + "x": 128, + "y": -88 + }, + "size": { + "width": 96, + "height": 64 + } + }, + { + "id": "99273725-132c-4791-b7dd-7ade3777e67d", + "type": "basic.info", + "data": { + "info": "### Turn on LED", + "readonly": true + }, + "position": { + "x": 192, + "y": -152 + }, + "size": { + "width": 200, + "height": 32 + } + }, + { + "id": "65f463c9-91d8-4a92-aafa-fa050e5fc32b", + "type": "basic.info", + "data": { + "info": "# TinyFPGA-BX: LED test\n", + "readonly": true + }, + "position": { + "x": 80, + "y": -304 + }, + "size": { + "width": 568, + "height": 56 + } + } + ], + "wires": [ + { + "source": { + "block": "51f42e2c-4965-4293-b13f-d1644b32a276", + "port": "3d584b0a-29eb-47af-8c43-c0822282ef05" + }, + "target": { + "block": "d0a2175e-7628-4897-9129-971450aedb1b", + "port": "in" + } + } + ] + } + }, + "dependencies": { + "febcfed8636b8ee9a98750b96ed9e53a165dd4a8": { + "package": { + "name": "bit-1", + "version": "0.2", + "description": "Constant bit 1", + "author": "Jesus Arroyo", + "image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2289.79%22%20height=%22185.093%22%20viewBox=%220%200%2084.179064%20173.52585%22%3E%3Cpath%20d=%22M7.702%2032.42L49.972%200l34.207%207.725-27.333%20116.736-26.607-6.01L51.26%2025.273%2020.023%2044.2z%22%20fill=%22green%22%20fill-rule=%22evenodd%22/%3E%3Cpath%20d=%22M46.13%20117.28l21.355%2028.258-17.91%2021.368%206.198%205.513m-14.033-54.45l-12.4%2028.26-28.242%205.512%202.067%208.959%22%20fill=%22none%22%20stroke=%22green%22%20stroke-width=%222.196%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E" + }, + "design": { + "graph": { + "blocks": [ + { + "id": "3d584b0a-29eb-47af-8c43-c0822282ef05", + "type": "basic.output", + "data": { + "name": "" + }, + "position": { + "x": 456, + "y": 120 + } + }, + { + "id": "61331ec5-2c56-4cdd-b607-e63b1502fa65", + "type": "basic.code", + "data": { + "code": "//-- Constant bit-1\nassign q = 1'b1;\n\n", + "params": [], + "ports": { + "in": [], + "out": [ + { + "name": "q" + } + ] + } + }, + "position": { + "x": 168, + "y": 112 + }, + "size": { + "width": 248, + "height": 80 + } + } + ], + "wires": [ + { + "source": { + "block": "61331ec5-2c56-4cdd-b607-e63b1502fa65", + "port": "q" + }, + "target": { + "block": "3d584b0a-29eb-47af-8c43-c0822282ef05", + "port": "in" + } + } + ] + } + } + } + } +} \ No newline at end of file