From 6138bd2f72841f5af4bd7d8c089223be3fd23324 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Sun, 20 Apr 2025 18:17:56 +0100 Subject: add noddy cyclone IV fpga design --- smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl (limited to 'smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl') diff --git a/smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl b/smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl new file mode 100644 index 0000000..7c6b422 --- /dev/null +++ b/smh-ac415-fpga/lcd_driver/hdmi_driver.vhdl @@ -0,0 +1,52 @@ +LIBRARY ieee; +USE ieee.std_logic_1164.all; + +LIBRARY altera_mf; +USE altera_mf.altera_mf_components.all; + +ENTITY hdmi_driver IS + PORT + ( + in_h : in std_logic; + in_l : in std_logic; + clk : in std_logic; + output : out std_logic + ); +END hdmi_driver; + + +ARCHITECTURE beh OF hdmi_driver IS + + signal out_v : std_logic_vector(0 downto 0); + signal out_n_v : std_logic_vector(0 downto 0); + signal in_l_v : std_logic_vector(0 downto 0); + signal in_h_v : std_logic_vector(0 downto 0); + +BEGIN + + output <= out_v(0); + in_l_v(0) <= in_l; + in_h_v(0) <= in_h; + + ddio_p : ALTDDIO_OUT + GENERIC MAP ( + extend_oe_disable => "OFF", + intended_device_family => "Cyclone IV E", + invert_output => "OFF", + lpm_hint => "UNUSED", + lpm_type => "altddio_out", + oe_reg => "UNREGISTERED", + power_up_high => "OFF", + width => 1 + ) + PORT MAP ( + datain_h => in_h_v, + datain_l => in_l_v, + outclock => clk, + dataout => out_v + ); + + +END beh; + + -- cgit v1.2.3