Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top