cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rohithcs
Adventurer
Adventurer
683 Views
Registered: ‎07-07-2017

Simple connection between LED and switch

I have been new to the usage of Kintex-7. I am trying to implement an AND Gate with 2 dip switches as Input and LED as an output. The following is the program i had written for this implementation

 

`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 10/06/2017 12:45:45 PM
// Design Name:
// Module Name: top
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////


module top(
a,
b,
c
);
input a;
input b;
output c;
assign c = a && b;
endmodule

 

and the corresponding xdc file is

set_property PACKAGE_PIN W29[get_ports a]
set_property IOSTANDARD LVCMOS25[get_ports a]
set_property PACKAGE_PIN Y29[get_ports b]
set_property IOSTANDARD LVCMOS25[get_ports b]
set_property PACKAGE_PIN AA8[get_ports c]
set_property IOSTANDARD LVCMOS15[get_ports c]
set_property BITSTREAM.General.UnconstrainedPins {Allow} [current_design]

 

The program gets Synthesized and Implemented, I am also able to generate the bit stream, but this programmed FPGA is unable to show the characteristics of AND Gate.

 

Any help  would be appreciated

0 Kudos
1 Reply
a_chami
Explorer
Explorer
650 Views
Registered: ‎04-12-2017

Hi,

 

I would try by deleting this line:

set_property BITSTREAM.General.UnconstrainedPins {Allow} [current_design]

 

If once deleted you receive errors, please share here what those errors are

 

Avi Chami MSc
FPGA Site
0 Kudos