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.

designing 4 bit processor in verilog

Status
Not open for further replies.

preety

Newbie level 4
Joined
Jul 26, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
nanded
Activity points
1,308
hello,
my btech project is designing 4 bit general purpose processor supporting instructions mov,add in verilog......i m not getting how to design register file and sram in verilog.
can anyone help me plz..
 

If you're planning to implement it on FPGA you can use block RAM (BRAM). Register files and SRAM are bunch of flip-flops ganged together. You can define these as 2D array in Verilog. In most cases synthesis tools like Xilinx XST will infer distributed/Block RAM.
 

thanks alot...i m new to this topic so plz can u elaborate..
 

hello!!!
I am working on verilog..
i am having problem in instantiating a module from conditional statements.
for eg:
if (ren)
decoder (i0,i1,en,d0,d1,d2,d3)

can someone help me
 

You are mixing up Structural coding style inside Behavioral. You can't instantiate a module INSIDE conditional statement as far as i know. It has to be done outside the IF statement.
Can you elaborate in more detail.. what functionality do you want to achieve?
 
  • Like
Reactions: preety

    preety

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top