// CPEN230 lab 7 part 2, octal to 7-segment decoder // Firstname Lastname, mm/dd/yy module oct7segDecoder ( input [2:0] c_i, // 3-bit octal digit input output [6:0] disp_o); // 7-bit output to a 7-segment display // 7-segment display segment # 6543210 assign disp_o = (c_i == 3'd0) ? 7'b1000000 : (c_i == 3'd1) ? 7'b1111001 : // ...: complete the remaining conditions and note segments are active low // meaning that a segment will light on when it gets a zero endmodule