UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor pitawask
Visitor
11,286 Views
Registered: ‎01-18-2009

equivalent verilog code to a schematic

I have created a ciruit for a simple cpu in xilinx and have used Ram16x4s as the memory and acc4 as the ALU/ACC. Have written a verilog code  and created an equivalent schematic for the control unit and connected these components to build a schematic for the cpu.

Can anyone please tell me how to find the equivalent verilog code for the whole circuit?

Thnaks.

0 Kudos
6 Replies
Instructor
Instructor
11,276 Views
Registered: ‎08-14-2007

Re: equivalent verilog code to a schematic

Going from a schematic to structural Verilog is fairly simple

and straightforward.

 

1) Your top level module will have only the design's pins in the port list.

 

2) declare wires  for all of the interconnecting nets in your schematic.

 

3) Use instantiation for the blocks in the schematic.   For Verilog blocks

that you created you can get an instantiation template in the processes

for the source under "design utilities".  For library elements like the

RAM's you will find the correct Verilog instantiation templates in the

libraries guide.

 

Regards,

Gabor

-- Gabor
0 Kudos
Visitor pitawask
Visitor
11,260 Views
Registered: ‎01-18-2009

Re: equivalent verilog code to a schematic

Thanks so much, I'll try this.
0 Kudos
Highlighted
Newbie siddgupta
Newbie
8,407 Views
Registered: ‎02-28-2012

Re: equivalent verilog code to a schematic

sir plz plz plz give me your code for cpu ( even seperately of all modules) 

I need it very very urgent plz sir ,I will be vry thankful to you sir..

My Id is "siddgupta1991@gmail.com"

0 Kudos
Teacher rcingham
Teacher
8,401 Views
Registered: ‎09-09-2010

Bet he can't explain how it works!


@siddgupta wrote:

sir plz plz plz give me your code for cpu ( even seperately of all modules) 



There is Verilog code for an ALU here that you could perhaps steal.

Perhaps your supervisor(s) will not detect your laziness and plagiarism.

 


------------------------------------------
"If it don't work in simulation, it won't work on the board."
0 Kudos
Newbie g2mis3
Newbie
8,380 Views
Registered: ‎03-13-2012

Re: equivalent verilog code to a schematic

hello sir 

i am students, i am have projects on "CPU" that make in vhdl/verilog code for fpga

so,  can  send me code for that.... i am also working on that it but i cant understand where to start,,.....

plz guide me

 

0 Kudos
Teacher eteam00
Teacher
8,377 Views
Registered: ‎07-21-2009

Re: equivalent verilog code to a schematic

i cant understand where to start,,.....

 

You might want to start here.

 

-- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
0 Kudos