Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
then why not try doing your assignemtn yourself, or at least attempting to do some work first before coming here looking to fix the problems you are having.
Here is my main program.. in this led_out is output of keyboard but it has got error.. led_out cannot be used as d=>led_out
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity main is
port(clk : in std_logic;
rs_lcd : out std_logic;
cs_lcd : out std_logic;
diow_lcd : inout std_logic;
--dat_in : in std_logic_vector(7 downto 0);
-- d : in std_logic_vector(7 downto 0);
d : inout std_logic_vector(7 downto 0);
led_out : out std_logic_vector(7 downto 0);
Reset_k : In std_logic;
PS2_Data_k : In std_logic;
PS2_Clk_k : In std_logic);
--LEDdis_k : Out std_logic_vector(7 downto 0));
end main;
architecture Behavioral of main is
component PS2SIMPL is
Port (Clk : In std_logic;
Reset : In std_logic;
PS2_Data : In std_logic;
PS2_Clk : In std_logic;
--d : out std_logic_vector(7 downto 0);
LEDdis : Out std_logic_vector(7 downto 0));
end component;
component lcd is
port (clk : in std_logic;
rs : out std_logic;
cs : out std_logic;
diow : inout std_logic;
--dat_in : in std_logic_vector(7 downto 0);
d : inout std_logic_vector(7 downto 0));
end component;
begin
key : PS2SIMPL
port map(Clk,Reset=>Reset_k,PS2_Data=>PS2_Data_k,PS2_Clk=>PS2_Clk_k,LEDdis=>led_out);
disp : lcd
port map(clk=>Clk,rs=>rs_lcd,cs=>cs_lcd,diow=>diow_lcd,d=>led_out);
end Behavioral;
---------- Post added at 20:58 ---------- Previous post was at 20:57 ----------
yes, you have connected it to the D port of LCD and LEDdis of PS2SIMPL.
Fixing errors like this really should be done by yourself. The error explains what the problem is so you can fix it.
well thats different. You need a decoder that creates the hex value for the LCD, based on the input. How this is done will depend on the LCD datasheet. You need to read that to find out how to get characters displayed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.