Package: pwm_env_pkg
- File: pwm_env_pkg.sv
Description
Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0
Signals
Name | Type | Description |
---|---|---|
pwm_env_pkg | endpackage |
Constants
Name | Type | Value | Description |
---|---|---|---|
uint | uint | pwm_reg_pkg::NOutputs | |
uint | uint | 1 | parameters alerts |
LIST_OF_ALERTS | string | { "fatal_fault"} |
Types
Name | Type | Description |
---|---|---|
pwm_mode_e | enum bit [1:0] { Standard = 2'b00, Blinking = 2'b01, Heartbeat = 2'b11, Allmodes = 2'b10 } |
datatype |
pwm_status_e | enum bit { Enable = 1'b1, Disable = 1'b0 } |
|
pwm_regs_t | struct { rand bit [3:0] dc_resn; rand bit [26:0] clk_div; bit cntr_en; rand bit [PWM_NUM_CHANNELS-1:0] pwm_en; rand bit [PWM_NUM_CHANNELS-1:0] invert; rand bit [PWM_NUM_CHANNELS-1:0] blink_en; rand bit [PWM_NUM_CHANNELS-1:0] htbt_en; rand bit [PWM_NUM_CHANNELS-1:0][15:0] phase_delay; rand bit [PWM_NUM_CHANNELS-1:0][15:0] duty_cycle_a; rand bit [PWM_NUM_CHANNELS-1:0][15:0] duty_cycle_b; rand bit [PWM_NUM_CHANNELS-1:0][15:0] blink_param_x; rand bit [PWM_NUM_CHANNELS-1:0][15:0] blink_param_y; rand pwm_mode_e [PWM_NUM_CHANNELS-1:0] pwm_mode; bit [27:0] beat_cycle; bit [16:0] pulse_cycle; } |
Functions
- get_pwm_mode (bit [1:0]) return (pwm_mode_e)
Description
function