Altera_Forum
Honored Contributor
10 years agoBasic setup in Quartus
Hi
i have demo project running on a eval board with a top.v file as entry. Now i have tried to make a new project to match a custom PCB but the generated top.v does look anything close to the other. so im guessing that im missing some configurations somewhere. In my Qsys for both projects there is a NIOS-II processor,Altera_pll, adc, jtag,1sec timer,onchip memory. In the pin planner is it possible to assign a "default" value to the pins or where is this done ? (im getting warning 10541 VHDL Signal Declaration warning: used implicit default value for signal) This is my first time setting up a project so any help is appreciated. Been looking through the quartus manual but cant find anything helpful on this. demo:module top ( input clk,
input reset,
input SW,
output LED
);
wire adc_10M_clk;
wire nios_50M_clk;
wire pll_locked;
wire reset_n;
assign reset_n = !reset;
all_pll alt_pll_inst (
.areset ( reset ),
.inclk0 ( clk ),
.c0 ( adc_10M_clk ),
.c1 ( nios_50M_clk),
.locked ( pll_locked )
);
nios_setup u0 (
.clk_clk (nios_50M_clk), // clk.clk
.reset_reset_n (reset_n), // reset.reset_n
.led_io_external_connection_export (LED), // led_pio_external_connection.export
.sw_io_external_connection_export (SW), // switch_pio_external_connection.export
.modular_adc_0_adc_pll_clock_clk (adc_10M_clk), // modular_adc_0_adc_pll_clock.clk
.modular_adc_0_adc_pll_locked_export (pll_locked) // modular_adc_0_adc_pll_locked.export
);
endmodule New project: // Copyright (C) 1991-2015 Altera Corporation. All rights reserved.// Your use of Altera Corporation's design tools, logic functions
// and other software and tools, and its AMPP partner logic
// functions, and any output files from any of the foregoing
// (including device programming or simulation files), and any
// associated documentation or information are expressly subject
// to the terms and conditions of the Altera Program License
// Subscription Agreement, the Altera Quartus II License Agreement,
// the Altera MegaCore Function License Agreement, or other
// applicable license agreement, including, without limitation,
// that your use is for the sole purpose of programming logic
// devices manufactured by Altera and sold by Altera or its
// authorized distributors. Please refer to the applicable
// agreement for further details.
module top
(
// {ALTERA_ARGS_BEGIN} DO NOT REMOVE THIS LINE!
ADC_7,
ADC_8,
ADC_PSB1,
ADC_PSB2,
ADC_PSB3,
ADC_PSB4,
ADC_Vc1,
ADC_Vc2,
BP_SW_1,
BP_SW_2,
CLK50M,
EXT_ADC1_CLK,
EXT_ADC1_CS,
EXT_ADC1_DATA,
EXT_ADC2_CLK,
EXT_ADC2_CS,
EXT_ADC2_DATA,
GD_FB,
LED,
LVDS_det,
LVDS_RD_MINUS,
LVDS_RD_PLUS,
LVDS_TD_MINUS,
LVDS_TD_PLUS,
PSB_ENA,
PSB_FAIL,
PWM_S,
RS232_CTS,
RS232_RTS,
RS232_RX,
RS232_TX,
SEL1,
SEL2,
SEL3,
TEMP_CAP1,
TEMP_CAP2,
TEMP_PCB,
TEMP_SW,
xBP_SW_1,
xBP_SW_2,
xEXT_ADC1_CLK,
xEXT_ADC1_CS,
xEXT_ADC1_DATA,
xEXT_ADC2_CLK,
xEXT_ADC2_CS,
xEXT_ADC2_DATA,
xGD_FB,
xPSB_ENA,
xPSB_FAIL,
xPWM_S,
xTEMP_CAP1,
xTEMP_CAP2,
xTEMP_SW
// {ALTERA_ARGS_END} DO NOT REMOVE THIS LINE!
);
// {ALTERA_IO_BEGIN} DO NOT REMOVE THIS LINE!
input ADC_7;
input ADC_8;
input ADC_PSB1;
input ADC_PSB2;
input ADC_PSB3;
input ADC_PSB4;
input ADC_Vc1;
input ADC_Vc2;
output BP_SW_1;
output BP_SW_2;
input CLK50M;
output EXT_ADC1_CLK;
output EXT_ADC1_CS;
input EXT_ADC1_DATA;
output EXT_ADC2_CLK;
output EXT_ADC2_CS;
input EXT_ADC2_DATA;
input GD_FB;
output LED;
input LVDS_det;
input LVDS_RD_MINUS;
input LVDS_RD_PLUS;
output LVDS_TD_MINUS;
output LVDS_TD_PLUS;
output PSB_ENA;
input PSB_FAIL;
output PWM_S;
input RS232_CTS;
output RS232_RTS;
input RS232_RX;
output RS232_TX;
input SEL1;
input SEL2;
input SEL3;
input TEMP_CAP1;
input TEMP_CAP2;
input TEMP_PCB;
input TEMP_SW;
output xBP_SW_1;
output xBP_SW_2;
output xEXT_ADC1_CLK;
output xEXT_ADC1_CS;
input xEXT_ADC1_DATA;
output xEXT_ADC2_CLK;
output xEXT_ADC2_CS;
input xEXT_ADC2_DATA;
input xGD_FB;
output xPSB_ENA;
input xPSB_FAIL;
output xPWM_S;
input xTEMP_CAP1;
input xTEMP_CAP2;
input xTEMP_SW;
// {ALTERA_IO_END} DO NOT REMOVE THIS LINE!
// {ALTERA_MODULE_BEGIN} DO NOT REMOVE THIS LINE!
// {ALTERA_MODULE_END} DO NOT REMOVE THIS LINE!
endmodule