Verilog Module
Types
| Type | Description |
Functions and values
| Function or value | Description |
|
|
Full Usage:
fastOutputDefinition vType fc opn
Parameters:
VMode
fc : FastComponent
opn : OutputPortNumber
Returns: string
|
|
Full Usage:
getDebugController profile fs
Parameters:
CompilationProfile
fs : FastSimulation
Returns: string[]
|
|
Full Usage:
getInitialSimulationBlock vType fs
Parameters:
VMode
fs : FastSimulation
Returns: string[]
|
|
Full Usage:
getInstantiatedModules profile fs
Parameters:
CompilationProfile
fs : FastSimulation
Returns: string array
|
|
|
get the verilog statements output from each component NB a hybrid component (AsyncRAM1) is in both FClockedComps and FOrderedComps, since it has both clocked and combinational behaviour. Its Verilog describes the whole component, so it must be written once: activeComps drops the hybrid copy from the combinational half.
|
Full Usage:
getMainHeader vType profile fs
Parameters:
VMode
profile : CompilationProfile
fs : FastSimulation
Returns: string[]
|
|
Full Usage:
getMainSignalDefinitions vType profile fs
Parameters:
VMode
profile : CompilationProfile
fs : FastSimulation
Returns: string array
|
|
Full Usage:
getVPortInput fs fc arg3
Parameters:
FastSimulation
fc : FastComponent
arg2 : InputPortNumber
Returns: string
|
|
Full Usage:
getVPortOut fc arg2
Parameters:
FastComponent
arg1 : OutputPortNumber
Returns: string
|
|
Full Usage:
getVPortOutWithSlice fc opn
Parameters:
FastComponent
opn : OutputPortNumber
Returns: string
|
|
Full Usage:
getVerilog vType fs profile
Parameters:
VMode
fs : FastSimulation
profile : CompilationProfile
Returns: string
|
Outputs a string which contains a single verilog file with the hardware in verilog form. The top-level simulation moudle is called main - other modules may be included for RAM & ROM this can be called any time after after buildFastSimulation has created the initial FastSimulation data structure. To simulate this you would need to set up clk as a clock input, and provide stimulus for other inputs if there are any.
|
Full Usage:
getVerilogComponent fs fc
Parameters:
FastSimulation
fc : FastComponent
Returns: string
|
|
|
|
Full Usage:
getVerilogNInputBinaryOp cType portConversionFn
Parameters:
ComponentType
portConversionFn : int -> string
Returns: string
|
Implement an n-input gate. The inputs are combined with the un-negated operator and the result inverted once, which is what an n-input NAND/NOR/XNOR gate means, and what getNInpBinaryGateReducer in EvalReference does. Folding the negated operator pairwise instead would give different logic for n > 2.
|
Full Usage:
getZeros width
Parameters:
int
Returns: string
|
|
Full Usage:
makeAsyncRamModule moduleName mem
Parameters:
string
mem : Memory1
Returns: string
|
|
Full Usage:
makeAsyncRomModule moduleName mem
Parameters:
string
mem : Memory1
Returns: string
|
|
Full Usage:
makeBits w c
Parameters:
int32
c : bigint
Returns: string
|
get valid Verilog constant for bus of given width (may be 1) NB the digits must be hex, since they follow a 'h prefix: %A or %d would print the value in decimal and Verilog would then read those digits as hex, giving a different (and too wide) number. printf "%x" does not work on bigints, hence hexBignum.
|
Full Usage:
makeRamModule moduleName mem
Parameters:
string
mem : Memory1
Returns: string
|
|
Full Usage:
makeRomModule moduleName mem
Parameters:
string
mem : Memory1
Returns: string
|
|
|
|
|
|
|
|
Full Usage:
verilogNameConvert maxChars s
Parameters:
int
s : string
Returns: string
|
|
|
|