--| ENTITY |\r
--+-----------------------------------------------------------------------------+\r
\r
-entity pci_7seg is\r
+entity raggedstone is\r
port (\r
\r
-- General \r
PCI_CLK : in std_logic;\r
PCI_nRES : in std_logic;\r
+ PCI_nREQ : out std_logic;\r
\r
-- PCI target 32bits\r
PCI_AD : inout std_logic_vector(31 downto 0);\r
PCI_nSERR : out std_logic;\r
PCI_nINT : out std_logic;\r
\r
- -- 7seg\r
- DISP_SEL : inout std_logic_vector(3 downto 0);\r
- DISP_LED : out std_logic_vector(6 downto 0);\r
- \r
-- debug signals\r
- LED_INIT : out std_logic;\r
- LED_ACCESS : out std_logic;\r
- LED_ALIVE : out std_logic;\r
-\r
- -- vga signals\r
- hs : out std_logic;\r
- vs : out std_logic;\r
- red, grn, blu : out std_logic;\r
- mclk : in std_logic\r
+ LED3 : out std_logic;\r
+ LED2 : out std_logic;\r
+ LED4 : out std_logic;\r
+ LED5 : out std_logic;\r
+ IDE1 : out std_logic;\r
+ IDE2 : out std_logic;\r
+ IDE3 : out std_logic;\r
+ IDE4 : out std_logic\r
\r
);\r
-end pci_7seg;\r
+end raggedstone;\r
\r
\r
--+-----------------------------------------------------------------------------+\r
--| ARCHITECTURE |\r
--+-----------------------------------------------------------------------------+\r
\r
-architecture pci_7seg_arch of pci_7seg is\r
+architecture raggedstone_arch of raggedstone is\r
\r
\r
--+-----------------------------------------------------------------------------+\r
);\r
end component;\r
\r
-\r
-component wb_7seg_new\r
+component heartbeat\r
port (\r
- \r
- -- General \r
- clk_i : in std_logic;\r
- nrst_i : in std_logic;\r
- \r
- -- Master whisbone\r
- wb_adr_i : in std_logic_vector(24 downto 1); \r
- wb_dat_o : out std_logic_vector(15 downto 0);\r
- wb_dat_i : in std_logic_vector(15 downto 0);\r
- wb_sel_i : in std_logic_vector(1 downto 0);\r
- wb_we_i : in std_logic;\r
- wb_stb_i : in std_logic;\r
- wb_cyc_i : in std_logic;\r
- wb_ack_o : out std_logic;\r
- wb_err_o : out std_logic;\r
- wb_int_o : out std_logic;\r
-\r
- -- 7seg\r
- DISP_SEL : inout std_logic_vector(3 downto 0);\r
- DISP_LED : out std_logic_vector(6 downto 0)\r
-\r
- );\r
-end component;\r
-\r
-\r
-component vgaController is\r
- Port ( mclk : in std_logic;\r
- hs : out std_logic;\r
- vs : out std_logic;\r
- red : out std_logic;\r
- grn : out std_logic;\r
- blu : out std_logic);\r
+ clk_i : in std_logic;\r
+ nrst_i : in std_logic;\r
+ led2_o : out std_logic;\r
+ led3_o : out std_logic;\r
+ led4_o : out std_logic;\r
+ led5_o : out std_logic;\r
+ led6_o : out std_logic;\r
+ led7_o : out std_logic;\r
+ led8_o : out std_logic;\r
+ led9_o : out std_logic\r
+);\r
end component;\r
\r
\r
\r
begin\r
\r
- LED_ALIVE <= '1';\r
---+-------------------------------------------------------------------------+\r
---| Component instances |\r
---+-------------------------------------------------------------------------+\r
-\r
- vga1: vgaController port map (mclk => mclk,\r
- hs => hs,\r
- vs => vs,\r
- red => red,\r
- grn => grn,\r
- blu => blu);\r
+ PCI_nREQ <= '1';\r
\r
--+-----------------------------------------+\r
--| PCI Target |\r
wb_cyc_o => wb_cyc,\r
wb_ack_i => wb_ack,\r
wb_err_i => wb_err,\r
- wb_int_i => wb_int,\r
- debug_init => LED_INIT,\r
- debug_access => LED_ACCESS\r
+ wb_int_i => wb_int\r
+-- debug_init => LED3,\r
+-- debug_access => LED2\r
);\r
\r
--+-----------------------------------------+\r
--| WB-7seg |\r
--+-----------------------------------------+\r
\r
-u_wb: component wb_7seg_new\r
-port map(\r
- clk_i => PCI_CLK,\r
- nrst_i => PCI_nRES,\r
- wb_adr_i => wb_adr, \r
- wb_dat_o => wb_dat_out,\r
- wb_dat_i => wb_dat_in,\r
- wb_sel_i => wb_sel,\r
- wb_we_i => wb_we,\r
- wb_stb_i => wb_stb,\r
- wb_cyc_i => wb_cyc,\r
- wb_ack_o => wb_ack,\r
- wb_err_o => wb_err,\r
- wb_int_o => wb_int,\r
- DISP_SEL => DISP_SEL,\r
- DISP_LED => DISP_LED\r
+my_heartbeat: component heartbeat\r
+port map( \r
+ clk_i => PCI_CLK,\r
+ nrst_i => PCI_nRES,\r
+ led2_o => LED2,\r
+ led3_o => LED3,\r
+ led4_o => LED4,\r
+ led5_o => LED5,\r
+ led6_o => IDE1,\r
+ led7_o => IDE2,\r
+ led8_o => IDE3,\r
+ led9_o => IDE4\r
);\r
\r
-end pci_7seg_arch;\r
+end raggedstone_arch;\r