Line 37... |
Line 37... |
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
|
|
module xgate_top #(parameter ARST_LVL = 1'b0, // asynchronous reset level
|
module xgate_top #(parameter ARST_LVL = 1'b0, // asynchronous reset level
|
|
parameter DWIDTH = 16, // define the wishbone bus data size
|
parameter SINGLE_CYCLE = 1'b0, //
|
parameter SINGLE_CYCLE = 1'b0, //
|
parameter MAX_CHANNEL = 127, // Max XGATE Interrupt Channel Number
|
parameter MAX_CHANNEL = 127, // Max XGATE Interrupt Channel Number
|
parameter WB_RD_DEFAULT = 0) // WISHBONE Read Bus default state
|
parameter WB_RD_DEFAULT = 0) // WISHBONE Read Bus default state
|
(
|
(
|
// Wishbone Slave Signals
|
// Wishbone Slave Signals
|
Line 74... |
Line 75... |
input debug_mode_i, // Force RISC core into debug mode
|
input debug_mode_i, // Force RISC core into debug mode
|
input secure_mode_i, // Limit host asscess to Xgate RISC registers
|
input secure_mode_i, // Limit host asscess to Xgate RISC registers
|
input scantestmode // Chip in in scan test mode
|
input scantestmode // Chip in in scan test mode
|
);
|
);
|
|
|
parameter DWIDTH = 16; // Data bus width
|
|
|
|
wire zero_flag;
|
wire zero_flag;
|
wire negative_flag;
|
wire negative_flag;
|
wire carry_flag;
|
wire carry_flag;
|
wire overflow_flag;
|
wire overflow_flag;
|