mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 19:51:23 +00:00
Move parameters to module declaration
This commit is contained in:
parent
3231c1cd93
commit
91e41d8c80
3 changed files with 23 additions and 19 deletions
|
@ -1,4 +1,11 @@
|
|||
module RAM_WREN (
|
||||
module RAM_WREN #(
|
||||
parameter ABITS=4,
|
||||
parameter WIDTH=8,
|
||||
parameter PORT_A_WR_EN_WIDTH=1,
|
||||
parameter PORT_A_WR_BE_WIDTH=0,
|
||||
parameter OPTION_BYTESIZE=WIDTH,
|
||||
parameter WB=OPTION_BYTESIZE
|
||||
)(
|
||||
input PORT_A_CLK,
|
||||
input [ABITS-1:0] PORT_A_ADDR,
|
||||
input [WIDTH-1:0] PORT_A_WR_DATA,
|
||||
|
@ -7,13 +14,6 @@ module RAM_WREN (
|
|||
input [PORT_A_WR_BE_WIDTH-1:0] PORT_A_WR_BE
|
||||
);
|
||||
|
||||
parameter ABITS=4;
|
||||
parameter WIDTH=8;
|
||||
parameter PORT_A_WR_EN_WIDTH=1;
|
||||
parameter PORT_A_WR_BE_WIDTH=0;
|
||||
parameter OPTION_BYTESIZE=WIDTH;
|
||||
parameter WB=OPTION_BYTESIZE;
|
||||
|
||||
reg [WIDTH-1:0] mem [0:2**ABITS-1];
|
||||
|
||||
integer i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue