Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Exp2_Encoder8to3.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module encoder_8(d,a,b,c);
input [7:0]d;
output a,b,c;
input d0,d1,d2,d3,d4,d5,d6,d7;

module encoder_8_to_3(a0,a1,a2,d0,d1,d2,d3,d4,d5,d6,d7); or g2(a1,d2,d3,d6,d7); or g3(a2,d4,d5,d6,d7);

output a0,a1,a2; or g1(a0,d1,d3,d5,d7);

endmodule