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.

verilog, verilogger, file with 'v' extension

Status
Not open for further replies.

PG1995

Full Member level 5
Full Member level 5
Joined
Apr 18, 2011
Messages
248
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
3,758
Hi :)

Yesterday, I borrowed a book from someone and the book had a companion CD. Out of curiosity, I checked out the CD's contents and also read the introduction pages of the book. The book said the CD contained Verilog HDL files for some of the examples in the book with the software Verilogger Pro, Waveform Viewer, etc.

The files had 'v' extension which I wasn't able to open even after installing the Verilogger Pro. But I was successful in opening the file with the Notepad. The code below had the contents of one of the files.

After little searching on the net I came to know that Verilog is hardware description language (HDL) and Verilogger Pro is a simulator. Does it mean that if a write a certain code then the simulator can tell me how that code will be implemented like which component you will need etc.? Is HDL primarily used for digital logic?

How do I open that 'v' extension file?

Please help me with the queries above. Thank you very much.

Regards
PG
 

I think you will find the wikipedia article useful Verilog - Wikipedia, the free encyclopedia

Also if you want a Verilog tutorial Verilog Tutorial

The simulator can only simulate the behavior of the code you have written but you can use that code with applications like Xilinx ISE or Altera Quartus to compile and download them into a CPLD or FPGA and have a custom (digital) device that behaves the way you have programmed.

Alex

---------- Post added at 17:07 ---------- Previous post was at 17:06 ----------

My favorite editor is Programmer's Notepad
it has highlighting for many languages including Verilog

Alex
 
  • Like
Reactions: PG1995

    PG1995

    Points: 2
    Helpful Answer Positive Rating
Thank you, Alex, dannote, for the replies.

I have MultiSim and Circuit Wizard programs. They both let you use gates in electric circuits. But I don't think they do what I describe below. Do they?

I want a program in which I can drag-and-drop the gates etc. and then simply describe the inputs to see what the output should be.

For example, suppose I have created the following circuit after dragging-and-dropping the NAND gates, then I state what the inputs would be to A, B, and C, and then the program tells me the output at Q.

**broken link removed**
 

Your circuit can be made in a simulator like the ones you describe by using ready 74xx digital gate chips.

If you want to actually compile the schematic and program it in a CPLD/FPGA then you can do this in both

Xilinx ISE


and Altera Quartus


You will find many tutorials if you search for Quartus schematic or ISE schematic

Alex
 
  • Like
Reactions: PG1995

    PG1995

    Points: 2
    Helpful Answer Positive Rating
Thank you, Alex.

Your circuit can be made in a simulator like the ones you describe by using ready 74xx digital gate chips.

But in those programs I have to draw a complete circuit. Make battery connections etc. Actually I want a program in which I can simply arrange the gates as shown in my previous posting and then simply give the the inputs to see the output.

If you want to actually compile the schematic and program it in a CPLD/FPGA then you can do this in both

Xilinx ISE


and Altera Quartus


You will find many tutorials if you search for Quartus schematic or ISE schematic

Alex

Thank you for this information. I didn't know there existed schematic capture programs. Actually some days ago I was googling for one using the terms "circuit ocr". The programs you mention will work for digital gates, do there exist programs which can capture schematic of general electric circuits so that the captured schematic can be used inside simulation programs such as MultiSim, Circuit Wizard etc.

Best regards
PG
 

Field-programmable gate array - Wikipedia, the free encyclopedia

FPGAs contain programmable logic components called "logic blocks", and a hierarchy of reconfigurable interconnects that allow the blocks to be "wired together"—somewhat like many (changeable) logic gates that can be inter-wired in (many) different configurations. Logic blocks can be configured to perform complex combinational functions, or merely simple logic gates like AND and XOR. In most FPGAs, the logic blocks also include memory elements, which may be simple flip-flops or more complete blocks of memory.[2]

They are very convenient becasue they can be reprogrammed and they can replace hundreds of digital chips.
Thay can't replace an alalog circuit.

In multisim what you do is design using actual digital components, each gate represents a digital component and you must then make a PCB and use all the defined chips.
ISE or Quartus use HDL (hardware description language) so you actually describe how you want the circuit to behave and they are configured internally to reflect what you have designed, if later you want to add or change the behavior you can just reprogram the device while in the hardware gates solution you have to throw away the board and make a new one.

If you just want to test the circuit you have postedthen multisim would work fine.

Alex
 

You can also simulate something like this circuit pretty fast just by writing verilog code. It took me less than 5 minutes to wrote the code for the model, draw some sample inputs for the testbench, and simulate it using Verilogger, for example. I've attached the design files below:

View attachment nandtest.zip
 

oops, of course, it's easy to make a mistake if you change the signal names along the way :) Here's the corrected files after I glanced at the results again...
 

Attachments

  • nandtest (2).zip
    44.9 KB · Views: 87
  • Like
Reactions: PG1995

    PG1995

    Points: 2
    Helpful Answer Positive Rating
Field-programmable gate array - Wikipedia, the free encyclopedia



They are very convenient becasue they can be reprogrammed and they can replace hundreds of digital chips.
Thay can't replace an alalog circuit.

In multisim what you do is design using actual digital components, each gate represents a digital component and you must then make a PCB and use all the defined chips.
ISE or Quartus use HDL (hardware description language) so you actually describe how you want the circuit to behave and they are configured internally to reflect what you have designed, if later you want to add or change the behavior you can just reprogram the device while in the hardware gates solution you have to throw away the board and make a new one.

If you just want to test the circuit you have postedthen multisim would work fine.

Alex

Once again, thanks, Alex.

I didn't know there existed programmable gate array. If I have a programmable chip, then can I configure it to behave like the 74LS00 IC? What device is used to program the gate array? Is there something like USB SD card reader?

My question wasn't clear enough therefore I would rephrase it. If I have circuit in an image format such as JPEG, as the circuit given below, then how do I use it in a program such as Multisim?

**broken link removed**
 

I didn't know there existed programmable gate array. If I have a programmable chip, then can I configure it to behave like the 74LS00 IC? What device is used to program the gate array? Is there something like USB SD card reader?

The programmers that I know of are using USB, parallel or serial port but I suppose that you can design something that loads the code from a card.
Note that the FPGA are ram based so the code is actually stored in an external flash or eeprom, each time that the FPGA is powered on it loads the code from there, the programmers program that external memory.


There is no way to import an image schematic in any application that I know of, you have to design it yourself using the schematic editor of multisim.

Alex
 
  • Like
Reactions: PG1995

    PG1995

    Points: 2
    Helpful Answer Positive Rating
Hi, again, :)

If we have a mathematical function, say f(x) = y = 2x + x^2, we can graph it with a graphing calculator or with some math program. I'm going to learn some topics which involve Boolean functions and logic gates where gates are represented in terms of Boolean functions. For example, the given Boolean expression AB + A(B+C) + B(B+C) can be implemented using logic gates. Is there some software which I can use to do these things? I can't learn Verilog for this in such short time. In other words, is there some software which I can use to play around with Boolean algebra and logic gates? Thanks for your help and time.

Regards
PG
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top