testbenches in Verilog for I2C ctrl

J

Julien Lochen

Guest
Hello,

My name is Julien, I work as Design engineer in France.

I am currently implementing in Verilog an I2C controller on a Xilinx
Spartan3, and I need to test it.

With the application note XAPP333, Xilinx provides testbenches in VHDL
but not in Verilog.

Where can I get the testbenches in Verilog ?

regards, Julien
 
Have you considered a VHDL-to-Verilog translator. There are a couple
free versions at www.verilog.net/free.html.

Marko

On 5 Apr 2006 05:33:52 -0700, "Julien Lochen" <lochen@noos.fr> wrote:

Hello,

My name is Julien, I work as Design engineer in France.

I am currently implementing in Verilog an I2C controller on a Xilinx
Spartan3, and I need to test it.

With the application note XAPP333, Xilinx provides testbenches in VHDL
but not in Verilog.

Where can I get the testbenches in Verilog ?

regards, Julien
 
Marko wrote:
On 5 Apr 2006 05:33:52 -0700, "Julien Lochen" <lochen@noos.fr> wrote:

Hello,

My name is Julien, I work as Design engineer in France.

I am currently implementing in Verilog an I2C controller on a Xilinx
Spartan3, and I need to test it.

With the application note XAPP333, Xilinx provides testbenches in VHDL
but not in Verilog.

Where can I get the testbenches in Verilog ?

Have you considered a VHDL-to-Verilog translator. There are a couple
free versions at www.verilog.net/free.html.

Marko
Maybe they are better now, but the translators I've seen generate
really ugly code that is really hard to read and virtually impossible
to modify.

Julien - what simulator are you using? If it supports mixed language,
I would use their VHDL testbench with your Verilog DUT. In a few days
you could learn enough VHDL to understand their testbench. Otherwise,
if their testbench isn't too complicated, you could translate it to
Verilog yourself, module (or architecture) by module. You could at
least see what they're doing and copy it.

Did you ask Xilinx if they have a Verilog testbench?

David
 
David,

I have open a case at the Xilinx website. They told me that verilog
testbenches will not
be availabe in the future.

Concerning the translation tool from VHDL to Verilog, I would rather
write myself
the verilog code because to my mind the verilog code generated by the
tools is
very complex.

I prefer understand the VHDL source then write my own testcases.

regards, julien


unfrostedpoptart wrote:
Marko wrote:
On 5 Apr 2006 05:33:52 -0700, "Julien Lochen" <lochen@noos.fr> wrote:

Hello,

My name is Julien, I work as Design engineer in France.

I am currently implementing in Verilog an I2C controller on a Xilinx
Spartan3, and I need to test it.

With the application note XAPP333, Xilinx provides testbenches in VHDL
but not in Verilog.

Where can I get the testbenches in Verilog ?

Have you considered a VHDL-to-Verilog translator. There are a couple
free versions at www.verilog.net/free.html.

Marko

Maybe they are better now, but the translators I've seen generate
really ugly code that is really hard to read and virtually impossible
to modify.

Julien - what simulator are you using? If it supports mixed language,
I would use their VHDL testbench with your Verilog DUT. In a few days
you could learn enough VHDL to understand their testbench. Otherwise,
if their testbench isn't too complicated, you could translate it to
Verilog yourself, module (or architecture) by module. You could at
least see what they're doing and copy it.

Did you ask Xilinx if they have a Verilog testbench?

David
 
Julien,
There is a Verilog TB available in opencores.org web site. I
have a SV Testbench + VMM based testbench as well, if you are
interested. But you will need vcs to run it. Let me know if you are
interested.

It will take a while before I can clean it and release it to public
consumption though (likely GPL)

Regards
Ajeetha, CVC
www.noveldv.com
 
Taake a look over at www.opencores.org
They have a I2C controller that has a test bench which you can modfy for you
needs.


"Julien Lochen" <lochen@noos.fr> wrote in message
news:1144240432.045056.298490@t31g2000cwb.googlegroups.com...
Hello,

My name is Julien, I work as Design engineer in France.

I am currently implementing in Verilog an I2C controller on a Xilinx
Spartan3, and I need to test it.

With the application note XAPP333, Xilinx provides testbenches in VHDL
but not in Verilog.

Where can I get the testbenches in Verilog ?

regards, Julien
 

Welcome to EDABoard.com

Sponsor

Back
Top