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.

Urgent help needed to code a verilog file. Pls help.

Status
Not open for further replies.

chuggington

Member level 1
Joined
Mar 1, 2012
Messages
34
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,288
Location
Stockholm
Activity points
1,482
A very basic question, because I have 0 knowledge about coding. How can you create a simple verilog file that calls for a memory ? Basically I just need to specify the module and then instanatiate. this is just to see the lef. So no need of proper instanatiation. my memory lef has around 300 input and output pins/

I have done

module (); # specified all inputs and outputs.

Now how do i call it ?
 

module sram (addr, din, dout, clk); # specified module and interface for your memory
input addr, din, clk;
output dout;
endmodule

module top (); # just a name of upper hierarchy level
wire addr_wire;
sram u1 (.addr(addr_wire), .din(datain_wire), .clk(clock), .dout(dataout_wire); # instance name u1 of early specified memory sram
endmodule
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top