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))
|
||||
p2e (
|
||||
// Outputs
|
||||
p2e (// Outputs
|
||||
.write_in (),
|
||||
.datamode_in (),
|
||||
.ctrlmode_in (),
|
||||
@ -116,15 +115,14 @@ module emmu (/*AUTOARG*/
|
||||
.srcaddr_in (),
|
||||
.data_in (),
|
||||
// Inputs
|
||||
.packet_in (emesh_packet_in[PW-1:0])
|
||||
);
|
||||
.packet_in (emesh_packet_in[PW-1:0]));
|
||||
|
||||
//###########################
|
||||
//# LOOKUP TABLE
|
||||
//###########################
|
||||
|
||||
oh_memory_dp #(.DW(MW),
|
||||
.AW(MAW))
|
||||
.DEPTH(4096))
|
||||
memory_dp (//read port
|
||||
.rd_dout (emmu_lookup_data[MW-1:0]),
|
||||
.rd_en (emesh_access_in),
|
||||
|
Loading…
x
Reference in New Issue
Block a user