Sign in
foss-eda-tools
/
third_party
/
shuttle
/
sky130
/
mpw-003
/
slot-028
/
32a8445de220e1d1a37747df9a0ab3f9d1e20957
/
.
/
verilog
/
rtl
/
jacaranda-8
/
decoder.v
blob: 69c15e73042fdbaf750e4734dbbbca27027defd7 [
file
] [
log
] [
blame
]
module
decoder
(
instr
,
opcode
,
rs_a
,
rd_a
,
imm
);
input
[
7
:
0
]
instr
;
output
[
3
:
0
]
opcode
;
output
[
1
:
0
]
rs_a
,
rd_a
;
output
[
3
:
0
]
imm
;
assign opcode
=
instr
[
7
:
4
];
assign rd_a
=
instr
[
3
:
2
];
assign rs_a
=
instr
[
1
:
0
];
assign imm
=
instr
[
3
:
0
];
endmodule