UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant jahnavijanu.y
Participant
135 Views
Registered: ‎11-29-2019

kc705

Hi,

i am trying to display the values in the lcd screen of kc705,

i tried using the code,

// code for displaying on lcd screen//

module lcd(clk_p,clk_n,rst,sel,seg );
input clk_p,clk_n;

input rst;
output reg [1:0] sel;
output [6:0] seg;
reg [21:0] count;
reg clkdiv;
reg [6:0] tt;
reg [7:0] mem[3:0];

clk_wiz_0 cin
(
// Clock out ports
.clk_out1(clkdiv), // output clk_out1
// Status and control signals
.locked(locked), // output locked
// Clock in ports
.clk_in1_p(clk_p), // input clk_in1_p
.clk_in1_n(clk_n));

 

always @(posedge clkdiv,posedge rst)
begin
if(rst)
begin
mem[0] =7'b0001000;
mem[1]=7'b1010000;
mem[2]=7'b0110100;
mem[3]=7'b1011000;
end
end

always @(posedge clkdiv,posedge rst)

begin
if(rst)
tt=7'b0000000;
else
begin
case(sel)
2'b00:tt=mem[0];
2'b01:tt=mem[1];
2'b10:tt=mem[2];
2'b11:tt=mem[3];
endcase
end
end
assign seg=tt;
endmodule

//constraints used for this //

set_property PACKAGE_PIN AA13 [get_ports {seg[6]}]
set_property PACKAGE_PIN AA10 [get_ports {seg[5]}]
set_property PACKAGE_PIN AA11 [get_ports {seg[4]}]
set_property PACKAGE_PIN Y10 [get_ports {seg[3]}]
set_property PACKAGE_PIN AB13 [get_ports {seg[2]}]
set_property PACKAGE_PIN Y11 [get_ports {seg[1]}]
set_property PACKAGE_PIN AB10 [get_ports {seg[0]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[6]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[5]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[4]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[3]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[2]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[1]}]
set_property IOSTANDARD LVCMOS15 [get_ports {seg[0]}]
set_property IOSTANDARD LVCMOS25 [get_ports {sel[1]}]
set_property IOSTANDARD LVCMOS25 [get_ports {sel[0]}]
set_property PACKAGE_PIN Y29 [get_ports {sel[1]}]
set_property PACKAGE_PIN W29 [get_ports {sel[0]}]
set_property IOSTANDARD LVDS [get_ports clk_p]
set_property IOSTANDARD LVDS [get_ports clk_n]
set_property PACKAGE_PIN AD12 [get_ports clk_p]
set_property PACKAGE_PIN G12 [get_ports rst]
set_property IOSTANDARD LVCMOS25 [get_ports rst]

///

but we dumped the program into the board after applying the reset and sel signals nothing is displaying on the lcd screen.

can anyone tell me is there any changes to made in the program,so that the output is displayed in the lcd screen?

thanks in advance,

Regards,

jahnavi

0 Kudos