Skip to content

Commit

Permalink
Add split-2-14
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed May 3, 2024
1 parent 2ea48f8 commit 8576bf7
Showing 1 changed file with 214 additions and 0 deletions.
214 changes: 214 additions & 0 deletions blocks/Split/Bus-16/Split-2-14.ice
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"version": "1.2",
"package": {
"name": "Bus16-Split-2-14",
"version": "0.3",
"description": "Bus16-Split-half: Split the 16-bits bus into two buses of 2 and 14 wires",
"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=%22M168.377%2077.643l61.147-60.938C240.21%206.25%20254.56.461%20269.484.5h62.611v26.186l-61.698.046c-8.012-.043-15.705%203.133-21.47%208.81L187.48%2096.857a57.292%2057.292%200%200%201-39.993%2016.139%2057.292%2057.292%200%200%201%2039.993%2016.14l61.448%2061.314c5.765%205.677%2013.458%208.853%2021.47%208.81l61.698.046v26.186h-62.612c-14.924.039-29.463-5.9-40.204-16.28l-60.902-60.863a29.857%2029.857%200%200%200-21.347-8.81L.5%20139.427V86.457h146.524a29.884%2029.884%200%200%200%2021.353-8.814z%22%20fill=%22green%22%20stroke=%22#000%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E"
},
"design": {
"board": "alhambra-ii",
"graph": {
"blocks": [
{
"id": "da01346b-35df-4dc3-894a-63ecd6a00a61",
"type": "basic.output",
"data": {
"name": "1",
"virtual": true,
"range": "[1:0]",
"pins": [
{
"index": "1",
"name": "NULL",
"value": "NULL"
},
{
"index": "0",
"name": "NULL",
"value": "NULL"
}
]
},
"position": {
"x": 608,
"y": 136
}
},
{
"id": "a0c9783a-c287-45a7-bfc7-9da552cf732f",
"type": "basic.input",
"data": {
"name": "",
"range": "[15:0]",
"clock": false,
"size": 16
},
"position": {
"x": 96,
"y": 208
}
},
{
"id": "e5a9aa1b-000b-4e21-a557-f68a92491c1b",
"type": "basic.output",
"data": {
"name": "0",
"virtual": true,
"range": "[13:0]",
"pins": [
{
"index": "13",
"name": "NULL",
"value": "NULL"
},
{
"index": "12",
"name": "NULL",
"value": "NULL"
},
{
"index": "11",
"name": "NULL",
"value": "NULL"
},
{
"index": "10",
"name": "NULL",
"value": "NULL"
},
{
"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"
}
]
},
"position": {
"x": 600,
"y": 232
}
},
{
"id": "16e78204-213e-4833-9096-89d735307ec2",
"type": "basic.code",
"data": {
"ports": {
"in": [
{
"name": "i",
"range": "[15:0]",
"size": 16
}
],
"out": [
{
"name": "o1",
"range": "[1:0]",
"size": 2
},
{
"name": "o0",
"range": "[13:0]",
"size": 14
}
]
},
"params": [],
"code": "assign o1 = i[15:14];\nassign o0 = i[13:0];"
},
"position": {
"x": 272,
"y": 176
},
"size": {
"width": 240,
"height": 120
}
}
],
"wires": [
{
"source": {
"block": "a0c9783a-c287-45a7-bfc7-9da552cf732f",
"port": "out"
},
"target": {
"block": "16e78204-213e-4833-9096-89d735307ec2",
"port": "i"
},
"size": 16
},
{
"source": {
"block": "16e78204-213e-4833-9096-89d735307ec2",
"port": "o0"
},
"target": {
"block": "e5a9aa1b-000b-4e21-a557-f68a92491c1b",
"port": "in"
},
"size": 14
},
{
"source": {
"block": "16e78204-213e-4833-9096-89d735307ec2",
"port": "o1"
},
"target": {
"block": "da01346b-35df-4dc3-894a-63ecd6a00a61",
"port": "in"
},
"size": 2
}
]
}
},
"dependencies": {}
}

0 comments on commit 8576bf7

Please sign in to comment.