Editing Front Panel for 8 Bit Computers V2

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 98: Line 98:
 
<pre>
 
<pre>
 
-- -------------------------------------------------------------------------------------------------------
 
-- -------------------------------------------------------------------------------------------------------
-- Front Panel starts here
+
-- Front Panel starts here
-- Pass IOP16 code size and stack size down to the Front Panel
+
-- Pass IOP16 code size and stack size down to the Front Panel
fp01 : work.FrontPanel01
+
fp01 : work.FrontPanel01
generic map (  
+
generic map (  
INST_ROM_SIZE_IN => 512, -- 512W code size
+
INST_ROM_SIZE_IN => 512, -- 512W code size
STACK_DEPTH_IN => 4 -- 16 deep stack size
+
STACK_DEPTH_IN => 4 -- 16 deep stack size
)
+
)
port map
+
port map
(
+
(
-- Clock and reset
+
-- Clock and reset
i_CLOCK_50 => i_CLOCK_50, -- Clock (50 MHz)
+
i_CLOCK_50 => i_CLOCK_50, -- Clock (50 MHz)
i_n_reset => i_n_reset, -- Reset (from FGPGA KEY)
+
i_n_reset => i_n_reset, -- Reset (from FGPGA KEY)
-- 32 outs, 32 ins
+
-- 32 outs, 32 ins
i_FPLEDs => w_LEDsOut, -- Out to LEDs (32)
+
i_FPLEDs => w_LEDsOut, -- Out to LEDs (32)
o_PBRaw => w_PBsRaw, -- Raw version of the  Pushbuttons (32)
+
o_PBRaw => w_PBsRaw, -- Raw version of the  Pushbuttons (32)
o_PBLatched => w_PBLatched, -- Latched version of the  Pushbuttons (32)
+
o_PBLatched => w_PBLatched, -- Latched version of the  Pushbuttons (32)
o_PBToggled => w_PBsToggled, -- Toggle version of the  Pushbuttons (32)
+
o_PBToggled => w_PBsToggled, -- Toggle version of the  Pushbuttons (32)
-- I2C interface
+
-- I2C interface
io_I2C_SCL => io_I2C_SCL, -- I2C clock to Front Panel card
+
io_I2C_SCL => io_I2C_SCL, -- I2C clock to Front Panel card
io_I2C_SDA => io_I2C_SDA, -- I2C data to/from Front Panel card
+
io_I2C_SDA => io_I2C_SDA, -- I2C data to/from Front Panel card
i_I2C_INTn => i_I2C_INTn -- Interrupt input - active low
+
i_I2C_INTn => i_I2C_INTn -- Interrupt input - active low
);
+
);
  
 
-- Front Panel ends here
 
-- Front Panel ends here

Please note that all contributions to Land Boards Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Land Boards Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)