Alguém sabe como ligar essa b*****?
Estou usando o ISE 14.1 Web.
Desde de já obrigado.
http://www.xilinx.com/support/documentation/application_notes/xapp462.pdf
Nesse documento tem uma explicação, só que já não é mais valida.
mastk escreveu:Alguém sabe como ligar essa *u*ceta?
Estou usando o ISE 14.1 Web.
Desde de já obrigado.
http://www.xilinx.com/support/documentation/application_notes/xapp462.pdf
Nesse documento tem uma explicação, só que já não é mais valida.
module fpga_top(
input REF_CLK, // esse cara em um pino de clock
... // outros sinais in/out
);
// system clock, note o comentario abaixo, ele eh muito importante
// cuidado aqui embaixo:
wire SYS_CLK; // synthesis attribute clock_buffer of SYS_CLK is bufg;
// cuidado ali em cima!
wire SYS_PLL; // status locked/unlocked.
reg SYS_RES = 1; // reset interno
reg [7:0] RESET = 255;
always@(negedge REF_CLK)
begin
RESET <= RESET?RESET-1:0;
end
always@(posedge REF_CLK)
begin
SYS_RES <= |RESET;
end
DCM_SP #(
.CLKDV_DIVIDE(2.0), // Divide by: 1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0,5.5,6.0,6.5
// 7.0,7.5,8.0,9.0,10.0,11.0,12.0,13.0,14.0,15.0 or 16.0
.CLKFX_DIVIDE(4), // Can be any integer from 1 to 32
.CLKFX_MULTIPLY(15), // Can be any integer from 2 to 32
.CLKIN_DIVIDE_BY_2("FALSE"), // TRUE/FALSE to enable CLKIN divide by two feature
.CLKIN_PERIOD(244), // Specify period of input clock
.CLKOUT_PHASE_SHIFT("NONE"), // Specify phase shift of NONE, FIXED or VARIABLE
.CLK_FEEDBACK("NONE"), // Specify clock feedback of NONE, 1X or 2X
.DESKEW_ADJUST("SYSTEM_SYNCHRONOUS"), // SOURCE_SYNCHRONOUS, SYSTEM_SYNCHRONOUS or
// an integer from 0 to 15
.DFS_FREQUENCY_MODE("LOW"), // HIGH or LOW frequency mode for frequency synthesis
.DLL_FREQUENCY_MODE("LOW"), // HIGH or LOW frequency mode for DLL
.DUTY_CYCLE_CORRECTION("TRUE"), // Duty cycle correction, TRUE or FALSE
.FACTORY_JF(16'hC080), // FACTORY JF values
.PHASE_SHIFT(0), // Amount of fixed phase shift from -255 to 255
.STARTUP_WAIT("FALSE") // Delay configuration DONE until DCM LOCK, TRUE/FALSE
)
DCM_SP_1
(
//.CLK0(CLK0), // 0 degree DCM CLK output
//.CLK180(CLK180), // 180 degree DCM CLK output
//.CLK270(CLK270), // 270 degree DCM CLK output
//.CLK2X(CLKOUT), // 2X DCM CLK output
//.CLK2X180(CLK2X180), // 2X, 180 degree DCM CLK out
//.CLK90(CLK90), // 90 degree DCM CLK output
//.CLKDV(CLKDV), // Divided DCM CLK out (CLKDV_DIVIDE)
.CLKFX(SYS_CLK), // DCM CLK synthesis out (M/D)
//.CLKFX180(CLKFX180), // 180 degree CLK synthesis out
.LOCKED(SYS_PLL), // DCM LOCK status output
//.PSDONE(DFS_PSDONE), // Dynamic phase adjust done output
//.STATUS(DFS_STATUS), // 8-bit DCM status bits output
//.CLKFB(CLK0), // DCM clock feedback
.CLKIN(REF_CLK), // Clock input (from IBUFG, BUFG or DCM)
//.PSCLK(PSCLK), // Dynamic phase adjust clock input
.PSEN(1'b0), // Dynamic phase adjust enable input
//.PSINCDEC(PSINCDEC), // Dynamic phase adjust increment/decrement
.RST(SYS_RES) // DCM asynchronous reset input
);
... // resto do codigo
endmodule
Voltar para Verilog, VHDL, SystemC ( PLAs, CPLDs, FPGAs, etc... )
Usuários navegando neste fórum: Nenhum usuário registrado e 0 visitantes