Skip to content

Commit

Permalink
Add 01-07 Uint08 (automatically generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Nov 4, 2023
1 parent bd8d482 commit 2433d67
Show file tree
Hide file tree
Showing 7 changed files with 707 additions and 0 deletions.
101 changes: 101 additions & 0 deletions blocks/Uint/Uint08/01-Uint08.ice
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"version": "1.2",
"package": {
"name": "01-Uint08",
"version": "0.4",
"description": "01-Uint08: 1 bits unsigned integer extension to 8 bits. Verilog implementation",
"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": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"type": "basic.output",
"data": {
"name": "",
"range": "[7:0]",
"size": 8
},
"position": {
"x": 952,
"y": 368
}
},
{
"id": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"type": "basic.input",
"data": {
"name": "",

"size": 1
},
"position": {
"x": 336,
"y": 368
}
},
{
"id": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"type": "basic.code",
"data": {
"ports": {
"in": [
{
"name": "i",

"size": 1
}
],
"out": [
{
"name": "o",
"range": "[7:0]",
"size": 8
}
]
},
"params": [],
"code": "//-- Number of input bits\nlocalparam X = 1;\n\n//-- Number of output bits\nlocalparam N = 8;\n\n//-- zeros to add to the input\nwire zeros = {(N-X){1'b0}};\n\n//-- Extend the input with zeros\nassign o = { zeros , i};"
},
"position": {
"x": 504,
"y": 272
},
"size": {
"width": 384,
"height": 248
}
}
],
"wires": [
{
"source": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "o"
},
"target": {
"block": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"port": "in"
},
"size": 8
},
{
"source": {
"block": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"port": "out"
},
"target": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "i"
},
"size": 1
}
]
}
},
"dependencies": {}
}
101 changes: 101 additions & 0 deletions blocks/Uint/Uint08/02-Uint08.ice
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"version": "1.2",
"package": {
"name": "02-Uint08",
"version": "0.4",
"description": "02-Uint08: 2 bits unsigned integer extension to 8 bits. Verilog implementation",
"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": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"type": "basic.output",
"data": {
"name": "",
"range": "[7:0]",
"size": 8
},
"position": {
"x": 952,
"y": 368
}
},
{
"id": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"type": "basic.input",
"data": {
"name": "",
"range": "[1:0]",
"size": 2
},
"position": {
"x": 336,
"y": 368
}
},
{
"id": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"type": "basic.code",
"data": {
"ports": {
"in": [
{
"name": "i",
"range": "[1:0]",
"size": 2
}
],
"out": [
{
"name": "o",
"range": "[7:0]",
"size": 8
}
]
},
"params": [],
"code": "//-- Number of input bits\nlocalparam X = 2;\n\n//-- Number of output bits\nlocalparam N = 8;\n\n//-- zeros to add to the input\nwire zeros = {(N-X){1'b0}};\n\n//-- Extend the input with zeros\nassign o = { zeros , i};"
},
"position": {
"x": 504,
"y": 272
},
"size": {
"width": 384,
"height": 248
}
}
],
"wires": [
{
"source": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "o"
},
"target": {
"block": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"port": "in"
},
"size": 8
},
{
"source": {
"block": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"port": "out"
},
"target": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "i"
},
"size": 2
}
]
}
},
"dependencies": {}
}
101 changes: 101 additions & 0 deletions blocks/Uint/Uint08/03-Uint08.ice
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"version": "1.2",
"package": {
"name": "03-Uint08",
"version": "0.4",
"description": "03-Uint08: 3 bits unsigned integer extension to 8 bits. Verilog implementation",
"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": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"type": "basic.output",
"data": {
"name": "",
"range": "[7:0]",
"size": 8
},
"position": {
"x": 952,
"y": 368
}
},
{
"id": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"type": "basic.input",
"data": {
"name": "",
"range": "[2:0]",
"size": 3
},
"position": {
"x": 336,
"y": 368
}
},
{
"id": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"type": "basic.code",
"data": {
"ports": {
"in": [
{
"name": "i",
"range": "[2:0]",
"size": 3
}
],
"out": [
{
"name": "o",
"range": "[7:0]",
"size": 8
}
]
},
"params": [],
"code": "//-- Number of input bits\nlocalparam X = 3;\n\n//-- Number of output bits\nlocalparam N = 8;\n\n//-- zeros to add to the input\nwire zeros = {(N-X){1'b0}};\n\n//-- Extend the input with zeros\nassign o = { zeros , i};"
},
"position": {
"x": 504,
"y": 272
},
"size": {
"width": 384,
"height": 248
}
}
],
"wires": [
{
"source": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "o"
},
"target": {
"block": "e0cb078e-5589-4f38-983f-ff5d02d74932",
"port": "in"
},
"size": 8
},
{
"source": {
"block": "418dea9f-f4c9-4a1f-8294-0f6c34e32f1d",
"port": "out"
},
"target": {
"block": "060b73c2-8fae-4f64-8db2-c8335f464d4c",
"port": "i"
},
"size": 3
}
]
}
},
"dependencies": {}
}
Loading

0 comments on commit 2433d67

Please sign in to comment.