[−][src]Crate origen
Re-exports
pub use self::core::metadata::Metadata; |
pub use self::core::status::Operation; |
pub use self::core::user; |
pub use self::core::user::User; |
pub use self::generator::utility::transaction::Action as TransactionAction; |
pub use self::generator::utility::transaction::Transaction; |
pub use error::Error; |
pub use self::core::dut::Dut; |
pub use self::core::producer::Producer; |
pub use self::core::tester::Tester; |
pub use self::services::Services; |
Modules
built_info | |
core | |
error | |
generator | |
macros | |
precludes | |
prog_gen | |
revision_control | |
services | |
standards | |
testers | |
utility |
Macros
add_children | |
add_reg | |
add_reg_32bit | |
backend_expect | |
backend_fail | |
backend_lookup_error | Returns a error stating that the backend doesn't have an expected ID. This signals a bug somewhere and should only be used when we're expecting something to exists. |
display | |
display_cyan | |
display_cyanln | |
display_green | |
display_greenln | |
display_red | |
display_redln | |
display_yellow | |
display_yellowln | |
displayln | |
duplicate_error | Returns an Origen Error with pre-formatted message complaining that something already exists. |
error | Returns an Err |
exit_error | Exit the origen process with a failing exit code and a big ERROR banner |
exit_fail | Exit the origen process with a failing exit code and a big FAIL banner |
exit_pass | Exit the origen process with a passing exit code and a big PASS banner |
exit_success | Exit the origen process with a passing exit code and a big SUCCESS banner |
field | |
get_bc_for | |
get_reg | |
get_reg_as_bc | |
hashmap | |
log_debug | |
log_deprecated | |
log_error | |
log_info | |
log_success | |
log_trace | |
log_warning | |
lookup_error | |
node | |
push_pin_actions | |
some_hard_reset_val | |
swd_ok | |
text | |
text_line | |
trace |
Structs
DUT | The current device model, containing all metadata about hierarchy, regs, pins, specs, timing, etc. and responsible for maintaining the current state of the DUT (regs, pins, etc.) |
FLOW | This is analogous to the TEST for test program duration, it provides a similar API for pushing nodes to the current flow, FLOW.push(my_node), etc. |
LDAPS | |
LOGGER | |
MAILER | |
ORIGEN_CONFIG | Provides configuration information derived from origen.toml files found in the Origen installation and application file system paths |
PRODUCER | Producer |
SERVICES | Services owned by the current DUT, stored as a separate collection to avoid having to get a mutable ref on the DUT if the service needs mutation |
SESSIONS | |
STATUS | Provides status information derived from the runtime environment, e.g. if an app is present If an app is present then its Application struct is stored in here. Things like the current output and reference directories should be derived from here. |
TEST | Storage for the current test (pattern) |
TESTER | The global tester model. |
USERS |
Enums
Value |
Constants
MODES | The available Origen runtime modes |
Functions
app | |
clean_mode | Sanitizes the given mode string and returns it, but will exit the process if it is invalid |
dut | |
initialize | This is called immediately upon Origen booting |
ldaps | |
mailer | |
mailer_mut | |
prepare_for_target_load | This will be called immediately before loading a fresh set of targets. Everything required to clear previous state from the existing targets should be initiated from here. |
producer | |
services | |
sessions | |
start_new_test | Clears the current test (pattern) AST and starts a new one, this will be called by the producer before loading the next pattern source file |
tester | |
users | |
users_mut | |
with_current_job | Execute the given function with a reference to the current job. Returns an error if there is no current job, otherwise the result of the given function. |
with_current_job_mut | Execute the given function with a mutable reference to the current job. Returns an error if there is no current job, otherwise the result of the given function. |
with_current_user | |
with_user | |
with_user_mut | |
with_user_session |
Type Definitions
Result |