using math functions in verilog codes

Status
Not open for further replies.

victoriya

Member level 2
Joined
Oct 26, 2010
Messages
50
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,594
I have an sram memory . it's data width , address bus width and depth all are parametric.my sram depth is d and the address bus width must be log2(d) and represented by c parameter . I import the math function library by several methodes in my code but neither of them worked and there were errors.
I don't know how to write the width of address bus by the log2(d) and c parameter.
also the address port specifies the data which is written to the sram or read from it.I want to know how to define a register to determine the place of sram. for example some thing like this ( r[addr]).
my software is active hdl.
any help will be appreciated.
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…