Sign in
foss-fpga-tools
/
third_party
/
yosys
/
cfc181cba9837f42d9faa8ba9dbffbcede0ca84b
/
.
/
tests
/
ice40
/
shifter.v
blob: c55632552a4c36f647143cf7ef51cbeec87acf94 [
file
] [
log
] [
blame
]
module
top
(
out
,
clk
,
in
);
output
[
7
:
0
]
out
;
input
signed
clk
,
in
;
reg
signed
[
7
:
0
]
out
=
0
;
always
@(
posedge clk
)
begin
`ifndef BUG
out <= out >> 1;
out[7] <= in;
`
else
out
<=
out
<<
1
;
out
[
7
]
<=
in
;
`endif
end
endmodule