Line 16... |
Line 16... |
//// - Dinesh Annayya, dinesha@opencores.org ////
|
//// - Dinesh Annayya, dinesha@opencores.org ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// v0.0 - Dinesh A, 5th Jan 2017
|
//// v0.0 - Dinesh A, 5th Jan 2017
|
//// 1. Active edge of reset changed from High to Low
|
//// 1. Active edge of reset changed from High to Low
|
|
//// v0.1 - Dinesh A, 6th Jan 2017
|
|
//// 1. pc_next logic added
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2000 Authors and OPENCORES.ORG ////
|
//// Copyright (C) 2000 Authors and OPENCORES.ORG ////
|
//// ////
|
//// ////
|
//// This source file may be used and distributed without ////
|
//// This source file may be used and distributed without ////
|
Line 61... |
Line 63... |
|
|
`include "top_defines.v"
|
`include "top_defines.v"
|
|
|
|
|
|
|
module oc8051_sp (clk, resetn, ram_rd_sel, ram_wr_sel, wr_addr, wr, wr_bit, data_in, sp_out, sp_w);
|
module oc8051_sp (
|
|
// General I/F
|
|
clk,
|
|
resetn,
|
|
|
|
ram_rd_sel,
|
|
ram_wr_sel,
|
|
|
|
// SP Reg Write I/F
|
|
wr_addr,
|
|
wr,
|
|
wr_bit,
|
|
data_in,
|
|
|
|
sp_out,
|
|
sp_w);
|
|
|
|
|
input clk, resetn, wr, wr_bit;
|
input clk, resetn, wr, wr_bit;
|
input [2:0] ram_rd_sel, ram_wr_sel;
|
input [2:0] ram_rd_sel, ram_wr_sel;
|
input [7:0] data_in, wr_addr;
|
input [7:0] data_in, wr_addr;
|