Line 43... |
Line 43... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.12 2002/11/11 21:36:28 lampret
|
|
// Added ifdef to remove mux from clk_pad_i if mux is not allowed. This also removes RGPIO_CTRL[NEC].
|
|
//
|
// Revision 1.11 2002/03/13 20:56:28 lampret
|
// Revision 1.11 2002/03/13 20:56:28 lampret
|
// Removed zero padding as per Avi Shamli suggestion.
|
// Removed zero padding as per Avi Shamli suggestion.
|
//
|
//
|
// Revision 1.10 2002/03/13 20:47:57 lampret
|
// Revision 1.10 2002/03/13 20:47:57 lampret
|
// Ports changed per Ran Aviram suggestions.
|
// Ports changed per Ran Aviram suggestions.
|
Line 519... |
Line 522... |
always @(posedge wb_clk_i or posedge wb_rst_i)
|
always @(posedge wb_clk_i or posedge wb_rst_i)
|
if (wb_rst_i)
|
if (wb_rst_i)
|
rgpio_ints <= #1 {gw{1'b0}};
|
rgpio_ints <= #1 {gw{1'b0}};
|
else if (rgpio_ints_sel && wb_we_i)
|
else if (rgpio_ints_sel && wb_we_i)
|
rgpio_ints <= #1 wb_dat_i[gw-1:0];
|
rgpio_ints <= #1 wb_dat_i[gw-1:0];
|
else if (rgpio_ctrl[`GPIO_RGPIO_CTRL_INTE] && rgpio_in != ext_pad_i)
|
else if (rgpio_ctrl[`GPIO_RGPIO_CTRL_INTE])
|
rgpio_ints <= #1 (rgpio_ints | (ext_pad_i ^ ~rgpio_ptrig) & rgpio_inte);
|
rgpio_ints <= #1 (rgpio_ints | ((ext_pad_i ^ rgpio_in) & ~(ext_pad_i ^ rgpio_ptrig)) & rgpio_inte);
|
`else
|
`else
|
assign rgpio_ints = (ext_pad_i ^ ~rgpio_ptrig) & rgpio_inte;
|
assign rgpio_ints = (rgpio_ints | ((ext_pad_i ^ rgpio_in) & ~(ext_pad_i ^ rgpio_ptrig)) & rgpio_inte);
|
`endif
|
`endif
|
|
|
//
|
//
|
// Generate interrupt request
|
// Generate interrupt request
|
//
|
//
|