mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
proofread
This commit is contained in:
parent
040018dfc1
commit
e6579efa73
@ -22,8 +22,8 @@ has a procedural language interface (PLI). The \myhdl\
|
||||
side is designed to be independent of a particular
|
||||
simulator, On the other hand, for each HDL simulator a specific
|
||||
PLI module will have to be written in C. Currently,
|
||||
the \myhdl\ release contains a PLI module to interface
|
||||
with the Icarus and Cver Verilog simulators.
|
||||
the \myhdl\ release contains a PLI module for
|
||||
two Verilog simulators: Icarus and Cver.
|
||||
|
||||
\section{The HDL side \label{cosim-hdl}}
|
||||
|
||||
|
@ -133,7 +133,7 @@ Combinatorial logic is described with a code pattern as
|
||||
follows:
|
||||
|
||||
\begin{verbatim}
|
||||
def top(<parameters>)
|
||||
def top(<parameters>):
|
||||
...
|
||||
@always_comb
|
||||
def combLogic():
|
||||
@ -238,7 +238,7 @@ common patterns: a template with a rising clock edge and an
|
||||
asynchronous reset signal. Other templates are similar.
|
||||
|
||||
\begin{verbatim}
|
||||
def top(<parameters>, clock, ..., reset, ...)
|
||||
def top(<parameters>, clock, ..., reset, ...):
|
||||
...
|
||||
@always(clock.posedge, reset.negedge)
|
||||
def seqLogic():
|
||||
@ -487,8 +487,7 @@ instead:
|
||||
tb_fsm = traceSignals(testbench)
|
||||
\end{verbatim}
|
||||
|
||||
All signals in the instance hierarchy will be traced in an output VCD
|
||||
file called \file{tb_fsm.vcd}. Note that first the argument of
|
||||
Note that the first argument of
|
||||
\function{traceSignals()} consists of the uncalled function. By
|
||||
calling the function under its control, \function{traceSignals()}
|
||||
gathers information about the hierarchy and the signals to be traced.
|
||||
|
Loading…
x
Reference in New Issue
Block a user