mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-14 12:51:48 +00:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
# Regression test for #5684: const_shift_worker must not crash when arg1 is
|
|
# empty.
|
|
|
|
read_json << EOF
|
|
{
|
|
"modules": {
|
|
"sshl": {
|
|
"cells": {
|
|
"sshlCell": {
|
|
"connections": {
|
|
"A": [],
|
|
"B": [3],
|
|
"Y": [1]
|
|
},
|
|
"parameters": {
|
|
"A_SIGNED": "1",
|
|
"A_WIDTH": "0",
|
|
"B_SIGNED": "0",
|
|
"B_WIDTH": "1",
|
|
"Y_WIDTH": "1"
|
|
},
|
|
"port_directions": {
|
|
"A": "input",
|
|
"B": "input",
|
|
"Y": "output"
|
|
},
|
|
"type": "$sshl"
|
|
}
|
|
},
|
|
"ports": {
|
|
"A": {
|
|
"bits": [],
|
|
"direction": "input"
|
|
},
|
|
"B": {
|
|
"bits": [3],
|
|
"direction": "input"
|
|
},
|
|
"Y": {
|
|
"bits": [1],
|
|
"direction": "output"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
EOF
|
|
|
|
eval -set B 0 -show Y sshl
|