mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Using DEPTH as specifier for memory
- More natural design interface (than AW)
This commit is contained in:
parent
a08b5d55b5
commit
709f91c306
@ -107,8 +107,7 @@ module emmu (/*AUTOARG*/
|
|||||||
//###########################
|
//###########################
|
||||||
|
|
||||||
packet2emesh #(.AW(32))
|
packet2emesh #(.AW(32))
|
||||||
p2e (
|
p2e (// Outputs
|
||||||
// Outputs
|
|
||||||
.write_in (),
|
.write_in (),
|
||||||
.datamode_in (),
|
.datamode_in (),
|
||||||
.ctrlmode_in (),
|
.ctrlmode_in (),
|
||||||
@ -116,15 +115,14 @@ module emmu (/*AUTOARG*/
|
|||||||
.srcaddr_in (),
|
.srcaddr_in (),
|
||||||
.data_in (),
|
.data_in (),
|
||||||
// Inputs
|
// Inputs
|
||||||
.packet_in (emesh_packet_in[PW-1:0])
|
.packet_in (emesh_packet_in[PW-1:0]));
|
||||||
);
|
|
||||||
|
|
||||||
//###########################
|
//###########################
|
||||||
//# LOOKUP TABLE
|
//# LOOKUP TABLE
|
||||||
//###########################
|
//###########################
|
||||||
|
|
||||||
oh_memory_dp #(.DW(MW),
|
oh_memory_dp #(.DW(MW),
|
||||||
.AW(MAW))
|
.DEPTH(4096))
|
||||||
memory_dp (//read port
|
memory_dp (//read port
|
||||||
.rd_dout (emmu_lookup_data[MW-1:0]),
|
.rd_dout (emmu_lookup_data[MW-1:0]),
|
||||||
.rd_en (emesh_access_in),
|
.rd_en (emesh_access_in),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user