Verilator

Struct Verilator 

Source
pub struct Verilator { /* private fields */ }
Expand description

Builder style configuration for running verilator.

Implementations§

Source§

impl Verilator

Source

pub fn out_dir<P>(&mut self, out: P) -> &mut Verilator
where P: AsRef<Path>,

Source

pub fn root<P>(&mut self, root: P) -> &mut Verilator
where P: AsRef<Path>,

Source

pub fn file<P>(&mut self, p: P) -> &mut Verilator
where P: AsRef<Path>,

Source

pub fn file_with_standard<P>(&mut self, p: P, s: Standard) -> &mut Verilator
where P: AsRef<Path>,

Source

pub fn files<P>(&mut self, p: P) -> &mut Verilator
where P: IntoIterator, P::Item: AsRef<Path>,

Source

pub fn module<P>(&mut self, dir: P) -> &mut Verilator
where P: AsRef<Path>,

Add a directory to the -y or path to search for modules

§Example
use std::path::Path;

let module_path = Path::new("/path/to/modules");

verilator::Verilator::default()
    .file("top.v")
    .module(module_path)
    .build(...);
Source

pub fn with_coverage(&mut self, t: bool) -> &mut Verilator

Source

pub fn with_trace(&mut self, t: bool) -> &mut Verilator

Source

pub fn with_performance_optimizations(&mut self, t: bool) -> &mut Verilator

Source

pub fn warn_width(&mut self, t: bool) -> &mut Verilator

Source

pub fn no_warn(&mut self, warning: &str) -> &mut Verilator

Source

pub fn build(&mut self, top_module: &str) -> PathBuf

Trait Implementations§

Source§

impl Default for Verilator

Source§

fn default() -> Verilator

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.