You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
341 B
Coq

5 months ago
module instr_decode(
input [23: 0] instruction ,//
output [7: 0] opcode ,//
output [7: 0] slave_id ,//id
output [7: 0] data //
);
assign slave_id = instruction[23:16];
assign opcode = instruction[15: 8];
assign data = instruction[7: 0];
endmodule