Sign in
foss-eda-tools
/
third_party
/
shuttle
/
sky130
/
mpw-008
/
slot-040
/
e8dc6a88d5703420d1fe9ad582b766e92c252fab
/
.
/
verilog
/
rtl
/
u41_rest.v
blob: a5fc6d427d495d05a394591fa5bb58ddf174f2b6 [
file
] [
log
] [
blame
]
module
u41_rest
(
input
[
7
:
0
]
perm
,
input
[
2
:
0
]
coord
,
output
[
2
:
0
]
ncoord
);
wire s
;
wire
[
1
:
0
]
ps
,
pt
;
assign
{
s
,
ps
}
=
coord
-
3
'd2;
assign pt = s ? ps : (perm[2*(3'
d3
-
ps
)+:
2
]);
assign ncoord
=
{
s
,
pt
}
+
3
'd2;
endmodule