24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UM-198 7 - Mixed-language simulation<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong><br />

Port direction<br />

Verilog port directions are mapped to SystemC as follows:<br />

Verilog SystemC<br />

input sc_in, sc_in_resolved, sc_in_rv<br />

output sc_out, sc_out_resolved, sc_out_rv<br />

inout sc_inout, sc_inout_resolved, sc_inout_rv<br />

Verilog to SystemC state mappings<br />

Verilog states are mapped to sc_logic, sc_bit, <strong>and</strong> bool as follows:<br />

Verilog sc_logic sc_bit bool<br />

HiZ 'Z' '0' false<br />

Sm0 '0' '0' false<br />

Sm1 '1' '1' true<br />

SmX 'X' '0' false<br />

Me0 '0' '0' false<br />

Me1 '1' '1' true<br />

MeX 'X' '0' false<br />

We0 '0' '0' false<br />

We1 '1' '1' true<br />

WeX 'X' '0' false<br />

La0 '0' '0' false<br />

La1 '1' '1' true<br />

LaX 'X' '0' false<br />

Pu0 '0' '0' false<br />

Pu1 '1' '1' true<br />

PuX 'X' '0' false<br />

St0 '0' '0' false<br />

St1 '1' '1' true<br />

StX 'X' '0' false<br />

Su0 '0' '0' false<br />

Su1 '1' '1' true

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!