mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Adding missing parameters statements in mio_if
This commit is contained in:
parent
ac5a77ec6c
commit
4b87fdae34
@ -12,10 +12,10 @@ module mio (/*AUTOARG*/
|
|||||||
//#####################################################################
|
//#####################################################################
|
||||||
|
|
||||||
//parameters
|
//parameters
|
||||||
|
parameter N = 8; // Mini IO width
|
||||||
parameter AW = 32; // address width
|
parameter AW = 32; // address width
|
||||||
localparam PW = 2*AW+40; // emesh packet width
|
localparam PW = 2*AW+40; // emesh packet width
|
||||||
parameter MPW = 128; // mio packet width (>PW)
|
parameter MPW = 128; // mio packet width (>PW)
|
||||||
parameter N = 8; // Mini IO width
|
|
||||||
parameter DEF_CFG = 0; // Default config
|
parameter DEF_CFG = 0; // Default config
|
||||||
parameter DEF_CLK = 0; // Default clock
|
parameter DEF_CLK = 0; // Default clock
|
||||||
parameter TARGET = "GENERIC"; // GENERIC,XILINX,ALTERA,GENERIC,ASIC
|
parameter TARGET = "GENERIC"; // GENERIC,XILINX,ALTERA,GENERIC,ASIC
|
||||||
@ -24,13 +24,13 @@ module mio (/*AUTOARG*/
|
|||||||
input clk; // main core clock
|
input clk; // main core clock
|
||||||
input nreset; // async active low reset
|
input nreset; // async active low reset
|
||||||
|
|
||||||
// tx chip interface
|
// tx chip interface (to IO)
|
||||||
output tx_clk; // phase shited io_clk
|
output tx_clk; // phase shited io_clk
|
||||||
output tx_access; // access signal for IO
|
output tx_access; // access signal for IO
|
||||||
output [N-1:0] tx_packet; // packet for IO
|
output [N-1:0] tx_packet; // packet for IO
|
||||||
input tx_wait; // pushback from IO
|
input tx_wait; // pushback from IO
|
||||||
|
|
||||||
// rx chip interface
|
// rx chip interface (from IO)
|
||||||
input rx_clk; // rx clock
|
input rx_clk; // rx clock
|
||||||
input rx_access; // rx access
|
input rx_access; // rx access
|
||||||
input [N-1:0] rx_packet; // rx packet
|
input [N-1:0] rx_packet; // rx packet
|
||||||
|
@ -16,7 +16,6 @@ module mio_if (/*AUTOARG*/
|
|||||||
//parameters
|
//parameters
|
||||||
parameter AW = 32; // address width
|
parameter AW = 32; // address width
|
||||||
parameter PW = 2*AW +40; // emesh packet width
|
parameter PW = 2*AW +40; // emesh packet width
|
||||||
parameter N = 8; // number of extra bits in
|
|
||||||
parameter MPW = PW+8; // mio packet width
|
parameter MPW = PW+8; // mio packet width
|
||||||
|
|
||||||
// reset, clk, config
|
// reset, clk, config
|
||||||
@ -88,7 +87,8 @@ module mio_if (/*AUTOARG*/
|
|||||||
//#################################################
|
//#################################################
|
||||||
|
|
||||||
// parse packet
|
// parse packet
|
||||||
packet2emesh pe2 (.packet_in (rx_packet_in[PW-1:0]),
|
packet2emesh #(.AW(AW))
|
||||||
|
pe2 (.packet_in (rx_packet_in[PW-1:0]),
|
||||||
/*AUTOINST*/
|
/*AUTOINST*/
|
||||||
// Outputs
|
// Outputs
|
||||||
.write_in (write_in),
|
.write_in (write_in),
|
||||||
@ -133,7 +133,8 @@ module mio_if (/*AUTOARG*/
|
|||||||
srcaddr_in[AW-1:0];
|
srcaddr_in[AW-1:0];
|
||||||
|
|
||||||
//Construct outgoing packet
|
//Construct outgoing packet
|
||||||
emesh2packet e2p (/*AUTOINST*/
|
emesh2packet #(.AW(AW))
|
||||||
|
e2p (/*AUTOINST*/
|
||||||
// Outputs
|
// Outputs
|
||||||
.packet_out (packet_out[PW-1:0]),
|
.packet_out (packet_out[PW-1:0]),
|
||||||
// Inputs
|
// Inputs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user