Using i/os – Altera Designing With Low-Level Primitives User Manual

Page 12

Advertising
background image

1–6

Altera Corporation

Designing with Low-Level Primitives User Guide

April 2007

Low-Level Primitive Examples

Figure 1–2. LCELL Primitive Instantiations

Using I/Os

With I/O primitives, you can make I/O assignments in your HDL file
instead of making them through the Assignment Editor in the Quartus II
software.

Example 1–4

describes how to make an I/O standard

assignment to an input pin using the

ALT_INBUF primitive in Verilog

HDL.

Example 1–4. Making an I/O Standard Assignment to an Input Pin Using the ALT_INBUF Primitive, Verilog
module io_primitives (data_in, data_out);

input data_in;

wire internal_sig;

output data_out;

alt_inbuf my_inbuf (.i(data_in), .o(internal_sig));

defparam my_inbuf.io_standard="1.8 V HSTL Class I";

assign data_out = !internal_sig;

endmodule

Advertising