17.06.2015 Views

Verilog 2 - Brown University

Verilog 2 - Brown University

Verilog 2 - Brown University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example from question (3) from Lab 1<br />

module quest3(CLOCK_50, LEDR);!<br />

input CLOCK_50;!<br />

output reg [17:0] LEDR;!<br />

integer count;!<br />

always @(posedge CLOCK_50)!<br />

begin!<br />

!if(count == 50000000)!<br />

! !begin!<br />

! ! !LEDR[0]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!