05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

XST <strong>User</strong> <strong>Guide</strong><br />

not Full but Parallel<br />

module notfull<br />

(sel, i1, i2, i3, o1);<br />

input [1:0] sel;<br />

input [1:0] i1, i2, i3;<br />

output [1:0] o1;<br />

reg [1:0] o1;<br />

always @(sel or i1 or i2 or i3)<br />

begin<br />

case (sel)<br />

2'b00: o1 = i1;<br />

2'b01: o1 = i2;<br />

2'b10: o1 = i3;<br />

endcase<br />

end<br />

endmodule<br />

2-74 <strong>Xilinx</strong> Development System

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

Saved successfully!

Ooh no, something went wrong!