From 4d21e0f7e308b1f29467f88119bc00b4175b002b Mon Sep 17 00:00:00 2001 From: Obijuan Date: Sun, 29 Jan 2023 13:29:40 +0100 Subject: [PATCH] Add Uint16-10 --- blocks/Uint/Uint16/Uint16-10-bits.ice | 541 ++++++++++++++++++++++++++ 1 file changed, 541 insertions(+) create mode 100644 blocks/Uint/Uint16/Uint16-10-bits.ice diff --git a/blocks/Uint/Uint16/Uint16-10-bits.ice b/blocks/Uint/Uint16/Uint16-10-bits.ice new file mode 100644 index 00000000..de2e60ae --- /dev/null +++ b/blocks/Uint/Uint16/Uint16-10-bits.ice @@ -0,0 +1,541 @@ +{ + "version": "1.2", + "package": { + "name": "UINT16-10bits", + "version": "0.1", + "description": "UINT16-10bits: Extend a 10-bits unsigned integer to 16-bits ", + "author": "Juan González-Gómez (Obijuan)", + "image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22448.598%22%20height=%22127.811%22%20viewBox=%220%200%20118.69152%2033.816643%22%3E%3Cg%20style=%22line-height:1.25%22%20font-weight=%22700%22%20font-size=%2245.504%22%20font-family=%22sans-serif%22%20fill=%22green%22%20stroke-width=%221.138%22%3E%3Cpath%20d=%22M0%200h8.554v19.886q0%204.11%201.333%205.888%201.356%201.755%204.4%201.755%203.066%200%204.399-1.755%201.355-1.778%201.355-5.888V0h8.554v19.886q0%207.043-3.532%2010.487-3.533%203.444-10.776%203.444-7.221%200-10.754-3.444Q0%2026.929%200%2019.886zM36.972%200h8.554v33.172h-8.554zM53.947%200H63.5l12.064%2022.752V0h8.11v33.172h-9.554L62.056%2010.421v22.751h-8.11zM88.119%200h30.573v6.466h-10.999v26.706H99.14V6.466H88.12z%22%20style=%22-inkscape-font-specification:'sans-serif%20Bold'%22/%3E%3C/g%3E%3C/svg%3E", + "otid": 1621785467119 + }, + "design": { + "board": "alhambra-ii", + "graph": { + "blocks": [ + { + "id": "f63244d4-cc1b-48fa-bb3b-d36704bb0fc2", + "type": "basic.output", + "data": { + "name": "", + "range": "[15:0]", + "size": 16 + }, + "position": { + "x": 976, + "y": 272 + } + }, + { + "id": "3ab66fef-3573-4658-91c7-9b2c44a8eb5c", + "type": "basic.input", + "data": { + "name": "", + "virtual": true, + "range": "[9:0]", + "pins": [ + { + "index": "9", + "name": "NULL", + "value": "NULL" + }, + { + "index": "8", + "name": "NULL", + "value": "NULL" + }, + { + "index": "7", + "name": "NULL", + "value": "NULL" + }, + { + "index": "6", + "name": "NULL", + "value": "NULL" + }, + { + "index": "5", + "name": "NULL", + "value": "NULL" + }, + { + "index": "4", + "name": "NULL", + "value": "NULL" + }, + { + "index": "3", + "name": "NULL", + "value": "NULL" + }, + { + "index": "2", + "name": "NULL", + "value": "NULL" + }, + { + "index": "1", + "name": "NULL", + "value": "NULL" + }, + { + "index": "0", + "name": "NULL", + "value": "NULL" + } + ], + "clock": false + }, + "position": { + "x": 656, + "y": 288 + } + }, + { + "id": "c82ce8aa-482d-481b-971c-2fae6c1a924d", + "type": "54ad57db2f7fafa55965199b8c9e67461f28766b", + "position": { + "x": 664, + "y": 200 + }, + "size": { + "width": 96, + "height": 64 + } + }, + { + "id": "626e1f5e-6fbe-4577-b514-1e8a1ecc0a56", + "type": "cf513d948de92b91230a00f6f69bc67e5a8267f4", + "position": { + "x": 824, + "y": 272 + }, + "size": { + "width": 96, + "height": 64 + } + } + ], + "wires": [ + { + "source": { + "block": "c82ce8aa-482d-481b-971c-2fae6c1a924d", + "port": "d52cf263-00e9-4791-8206-8118f63755aa" + }, + "target": { + "block": "626e1f5e-6fbe-4577-b514-1e8a1ecc0a56", + "port": "14aa53fb-a1a9-4fb3-90e0-c4d4ecb442e1" + }, + "vertices": [], + "size": 6 + }, + { + "source": { + "block": "626e1f5e-6fbe-4577-b514-1e8a1ecc0a56", + "port": "79c56f9a-597f-491e-b1d1-d321f63303c2" + }, + "target": { + "block": "f63244d4-cc1b-48fa-bb3b-d36704bb0fc2", + "port": "in" + }, + "size": 16 + }, + { + "source": { + "block": "3ab66fef-3573-4658-91c7-9b2c44a8eb5c", + "port": "out" + }, + "target": { + "block": "626e1f5e-6fbe-4577-b514-1e8a1ecc0a56", + "port": "3604a044-92fc-4a7f-8116-1581aa96e8f9" + }, + "size": 10 + } + ] + } + }, + "dependencies": { + "54ad57db2f7fafa55965199b8c9e67461f28766b": { + "package": { + "name": "6bits-Value_0", + "version": "0.0.1", + "description": "6bits constant value: 0", + "author": "Juan Gonzalez-Gomez (Obijuan)", + "image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22153.645%22%20height=%22230.616%22%20viewBox=%220%200%20144.04211%20216.20273%22%3E%3Cg%20style=%22line-height:0%25;-inkscape-font-specification:'Ubuntu%20Mono'%22%3E%3Cpath%20d=%22M72.021%2022.332q-21.774%200-32.8%2021.495-10.887%2021.355-10.887%2064.344%200%2042.85%2010.887%2064.345%2011.026%2021.355%2032.8%2021.355%2021.913%200%2032.8-21.355%2011.027-21.495%2011.027-64.345%200-42.99-11.027-64.344-10.887-21.495-32.8-21.495zm0-22.332q35.034%200%2053.458%2027.776%2018.563%2027.636%2018.563%2080.395%200%2052.62-18.563%2080.396-18.424%2027.636-53.458%2027.636-35.033%200-53.597-27.636Q0%20160.79%200%20108.17q0-52.76%2018.424-80.395Q36.988%200%2072.021%200z%22%20style=%22line-height:1.25%22%20font-size=%22285.851%22%20font-family=%22sans-serif%22%20stroke-width=%227.146%22%20font-weight=%22400%22%20letter-spacing=%220%22%20word-spacing=%220%22%20fill=%22green%22/%3E%3C/g%3E%3C/svg%3E" + }, + "design": { + "graph": { + "blocks": [ + { + "id": "d52cf263-00e9-4791-8206-8118f63755aa", + "type": "basic.output", + "data": { + "name": "", + "range": "[5:0]", + "size": 6 + }, + "position": { + "x": 896, + "y": 256 + } + }, + { + "id": "ad7918eb-22dd-4b6c-949f-e428f5a55530", + "type": "basic.constant", + "data": { + "name": "", + "value": "0", + "local": true + }, + "position": { + "x": 728, + "y": 152 + } + }, + { + "id": "b9254d40-2553-4815-8f20-a76ceb9bc742", + "type": "a5ad63c4387b9d7a9548afddbc8a9787b9328790", + "position": { + "x": 728, + "y": 256 + }, + "size": { + "width": 96, + "height": 64 + } + } + ], + "wires": [ + { + "source": { + "block": "ad7918eb-22dd-4b6c-949f-e428f5a55530", + "port": "constant-out" + }, + "target": { + "block": "b9254d40-2553-4815-8f20-a76ceb9bc742", + "port": "c0fb4784-5e8c-4f41-9f4b-6daa2e9e03a4" + } + }, + { + "source": { + "block": "b9254d40-2553-4815-8f20-a76ceb9bc742", + "port": "72bdb170-f2b3-4c77-a258-db39a7bef38d" + }, + "target": { + "block": "d52cf263-00e9-4791-8206-8118f63755aa", + "port": "in" + }, + "size": 6 + } + ] + } + } + }, + "a5ad63c4387b9d7a9548afddbc8a9787b9328790": { + "package": { + "name": "6-bits-gen-constant", + "version": "0.0.2", + "description": "Generic: 6-bits generic constant (0-63)", + "author": "Juan Gonzalez-Gomez (Obijuan)", + "image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22145.608%22%20height=%22247.927%22%20viewBox=%220%200%20136.50729%20232.43134%22%3E%3Cg%20style=%22line-height:0%25;-inkscape-font-specification:'Ubuntu%20Mono'%22%3E%3Cpath%20d=%22M56.012%20146.905q9.055%206.708%2020.459%2017.105%2011.404%2010.062%2022.472%2021.8%2011.403%2011.74%2021.465%2024.15%2010.062%2012.074%2016.1%2022.471h-32.87q-6.372-10.397-15.763-21.13-9.392-11.068-20.124-21.13-10.398-10.062-21.13-18.447-10.398-8.385-18.783-14.087v74.794H0V4.695L27.838%200v141.874q18.447-16.1%2036.894-31.863%2018.447-16.1%2033.205-33.205h32.533q-14.422%2017.106-34.881%2035.217-20.124%2018.112-39.577%2034.882z%22%20style=%22line-height:1.25%22%20font-size=%22335.399%22%20font-weight=%22400%22%20font-family=%22Ubuntu%20Mono%22%20letter-spacing=%220%22%20word-spacing=%220%22%20fill=%22green%22/%3E%3C/g%3E%3C/svg%3E" + }, + "design": { + "graph": { + "blocks": [ + { + "id": "72bdb170-f2b3-4c77-a258-db39a7bef38d", + "type": "basic.output", + "data": { + "name": "", + "range": "[5:0]", + "size": 6 + }, + "position": { + "x": 944, + "y": 248 + } + }, + { + "id": "c0fb4784-5e8c-4f41-9f4b-6daa2e9e03a4", + "type": "basic.constant", + "data": { + "name": "", + "value": "0", + "local": false + }, + "position": { + "x": 728, + "y": 128 + } + }, + { + "id": "7dbe7521-0f9f-43ee-ab0c-0439e2c20bc2", + "type": "basic.code", + "data": { + "code": "assign k = VALUE;", + "params": [ + { + "name": "VALUE" + } + ], + "ports": { + "in": [], + "out": [ + { + "name": "k", + "range": "[5:0]", + "size": 6 + } + ] + } + }, + "position": { + "x": 672, + "y": 248 + }, + "size": { + "width": 208, + "height": 64 + } + } + ], + "wires": [ + { + "source": { + "block": "c0fb4784-5e8c-4f41-9f4b-6daa2e9e03a4", + "port": "constant-out" + }, + "target": { + "block": "7dbe7521-0f9f-43ee-ab0c-0439e2c20bc2", + "port": "VALUE" + } + }, + { + "source": { + "block": "7dbe7521-0f9f-43ee-ab0c-0439e2c20bc2", + "port": "k" + }, + "target": { + "block": "72bdb170-f2b3-4c77-a258-db39a7bef38d", + "port": "in" + }, + "size": 6 + } + ] + } + } + }, + "cf513d948de92b91230a00f6f69bc67e5a8267f4": { + "package": { + "name": "Bus16-Join-6-10", + "version": "0.1", + "description": "Bus16-Join-6-10: Join the two same halves into an 16-bits Bus", + "author": "Juan González-Gómez (Obijuan)", + "image": "%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22354.768%22%20height=%22241.058%22%20viewBox=%220%200%20332.59497%20225.99201%22%3E%3Cpath%20d=%22M164.218%2077.643L103.07%2016.705C92.386%206.25%2078.036.461%2063.11.5H.5v26.186l61.698.046c8.012-.043%2015.705%203.133%2021.47%208.81l61.448%2061.315a57.292%2057.292%200%200%200%2039.993%2016.139%2057.292%2057.292%200%200%200-39.993%2016.14L83.668%20190.45c-5.765%205.677-13.458%208.853-21.47%208.81L.5%20199.306v26.186h62.612c14.924.039%2029.463-5.9%2040.204-16.28l60.902-60.863a29.857%2029.857%200%200%201%2021.347-8.81l146.53-.113V86.457H185.571a29.884%2029.884%200%200%201-21.353-8.814z%22%20fill=%22green%22%20stroke=%22#000%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E" + }, + "design": { + "graph": { + "blocks": [ + { + "id": "14aa53fb-a1a9-4fb3-90e0-c4d4ecb442e1", + "type": "basic.input", + "data": { + "name": "", + "virtual": true, + "range": "[5:0]", + "pins": [ + { + "index": "5", + "name": "NULL", + "value": "NULL" + }, + { + "index": "4", + "name": "NULL", + "value": "NULL" + }, + { + "index": "3", + "name": "NULL", + "value": "NULL" + }, + { + "index": "2", + "name": "NULL", + "value": "NULL" + }, + { + "index": "1", + "name": "NULL", + "value": "NULL" + }, + { + "index": "0", + "name": "NULL", + "value": "NULL" + } + ], + "clock": false + }, + "position": { + "x": 112, + "y": 168 + } + }, + { + "id": "79c56f9a-597f-491e-b1d1-d321f63303c2", + "type": "basic.output", + "data": { + "name": "", + "range": "[15:0]", + "size": 16 + }, + "position": { + "x": 632, + "y": 200 + } + }, + { + "id": "3604a044-92fc-4a7f-8116-1581aa96e8f9", + "type": "basic.input", + "data": { + "name": "", + "virtual": true, + "range": "[9:0]", + "pins": [ + { + "index": "9", + "name": "NULL", + "value": "NULL" + }, + { + "index": "8", + "name": "NULL", + "value": "NULL" + }, + { + "index": "7", + "name": "NULL", + "value": "NULL" + }, + { + "index": "6", + "name": "NULL", + "value": "NULL" + }, + { + "index": "5", + "name": "NULL", + "value": "NULL" + }, + { + "index": "4", + "name": "NULL", + "value": "NULL" + }, + { + "index": "3", + "name": "NULL", + "value": "NULL" + }, + { + "index": "2", + "name": "NULL", + "value": "NULL" + }, + { + "index": "1", + "name": "NULL", + "value": "NULL" + }, + { + "index": "0", + "name": "NULL", + "value": "NULL" + } + ], + "clock": false + }, + "position": { + "x": 112, + "y": 248 + } + }, + { + "id": "16e78204-213e-4833-9096-89d735307ec2", + "type": "basic.code", + "data": { + "ports": { + "in": [ + { + "name": "i1", + "range": "[5:0]", + "size": 6 + }, + { + "name": "i0", + "range": "[9:0]", + "size": 10 + } + ], + "out": [ + { + "name": "o", + "range": "[15:0]", + "size": 16 + } + ] + }, + "params": [], + "code": "assign o = {i1, i0};\n" + }, + "position": { + "x": 296, + "y": 176 + }, + "size": { + "width": 272, + "height": 104 + } + } + ], + "wires": [ + { + "source": { + "block": "16e78204-213e-4833-9096-89d735307ec2", + "port": "o" + }, + "target": { + "block": "79c56f9a-597f-491e-b1d1-d321f63303c2", + "port": "in" + }, + "size": 16 + }, + { + "source": { + "block": "14aa53fb-a1a9-4fb3-90e0-c4d4ecb442e1", + "port": "out" + }, + "target": { + "block": "16e78204-213e-4833-9096-89d735307ec2", + "port": "i1" + }, + "size": 6 + }, + { + "source": { + "block": "3604a044-92fc-4a7f-8116-1581aa96e8f9", + "port": "out" + }, + "target": { + "block": "16e78204-213e-4833-9096-89d735307ec2", + "port": "i0" + }, + "size": 10 + } + ] + } + } + } + } +} \ No newline at end of file