mirror of
https://github.com/aolofsson/oh.git
synced 2025-02-07 06:44:09 +08:00
Reformatting to use "N" as the main parameters
-simpler..
This commit is contained in:
parent
308b46366a
commit
d800325f50
@ -13,21 +13,21 @@ module mrx_io (/*AUTOARG*/
|
|||||||
//#####################################################################
|
//#####################################################################
|
||||||
|
|
||||||
//parameters
|
//parameters
|
||||||
parameter MIOW = 16;
|
parameter N = 16;
|
||||||
|
|
||||||
//RESET
|
//RESET
|
||||||
input nreset; // async active low reset
|
input nreset; // async active low reset
|
||||||
input clk; // clock for IO
|
input clk; // clock for IO
|
||||||
//IO interface
|
//IO interface
|
||||||
input [MIOW-1:0] rx_packet; // data for IO
|
input [N-1:0] rx_packet; // data for IO
|
||||||
input rx_access; // access signal for IO
|
input rx_access; // access signal for IO
|
||||||
|
|
||||||
//FIFO interface (core side)
|
//FIFO interface (core side)
|
||||||
output io_access; // fifo packet valid
|
output io_access; // fifo packet valid
|
||||||
output [2*MIOW-1:0] io_packet; // fifo packet
|
output [2*N-1:0] io_packet; // fifo packet
|
||||||
|
|
||||||
//regs
|
//regs
|
||||||
reg io_access;
|
reg io_access;
|
||||||
|
|
||||||
//########################################
|
//########################################
|
||||||
//# CLOCK, RESET
|
//# CLOCK, RESET
|
||||||
@ -53,12 +53,12 @@ module mrx_io (/*AUTOARG*/
|
|||||||
//# DATA (DDR)
|
//# DATA (DDR)
|
||||||
//########################################
|
//########################################
|
||||||
|
|
||||||
oh_iddr #(.DW(MIOW))
|
oh_iddr #(.DW(N))
|
||||||
data_iddr(.q1 (io_packet[MIOW-1:0]),
|
data_iddr(.q1 (io_packet[N-1:0]),
|
||||||
.q2 (io_packet[2*MIOW-1:MIOW]),
|
.q2 (io_packet[2*N-1:N]),
|
||||||
.clk (clk),
|
.clk (clk),
|
||||||
.ce (rx_access),
|
.ce (rx_access),
|
||||||
.din (rx_packet[MIOW-1:0])
|
.din (rx_packet[N-1:0])
|
||||||
);
|
);
|
||||||
|
|
||||||
endmodule // mrx_io
|
endmodule // mrx_io
|
||||||
|
Loading…
x
Reference in New Issue
Block a user