URL
https://opencores.org/ocsvn/gpio/gpio/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 26 |
Rev 29 |
Line 43... |
Line 43... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.11 2002/03/13 20:56:28 lampret
|
|
// 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.
|
//
|
//
|
// Revision 1.9 2002/03/09 03:43:27 lampret
|
// Revision 1.9 2002/03/09 03:43:27 lampret
|
// Interrupt is asserted only when an input changes (code patch by Jacob Gorban)
|
// Interrupt is asserted only when an input changes (code patch by Jacob Gorban)
|
Line 420... |
Line 423... |
//
|
//
|
// Posedge pext_clk is inverted by NEC bit if negedge flops are not allowed.
|
// Posedge pext_clk is inverted by NEC bit if negedge flops are not allowed.
|
// If negedge flops are allowed, pext_clk only clocks posedge flops.
|
// If negedge flops are allowed, pext_clk only clocks posedge flops.
|
//
|
//
|
`ifdef GPIO_NO_NEGEDGE_FLOPS
|
`ifdef GPIO_NO_NEGEDGE_FLOPS
|
|
`ifdef GPIO_NO_CLKPAD_LOGIC
|
|
assign pext_clk = clk_pad_i;
|
|
`else
|
assign pext_clk = rgpio_ctrl[`GPIO_RGPIO_CTRL_NEC] ? ~clk_pad_i : clk_pad_i;
|
assign pext_clk = rgpio_ctrl[`GPIO_RGPIO_CTRL_NEC] ? ~clk_pad_i : clk_pad_i;
|
|
`endif
|
`else
|
`else
|
assign pext_clk = clk_pad_i;
|
assign pext_clk = clk_pad_i;
|
`endif
|
`endif
|
|
|
//
|
//
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.