Prev Problem
Next Problem

49. Brake Light Control

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

 

Code

//==================================================
// Module: brake_light
// Description: Turns ON brake light when brake_pedal is pressed.
//==================================================
module brake_light (
    input  wire brake_pedal,   // 1 = pressed, 0 = released
    output wire brake_light    // 1 = light ON, 0 = light OFF
);

    assign brake_light = brake_pedal;

endmodule

 

Was this helpful?
Upvote
Downvote