Skip to content
Snippets Groups Projects
Commit d9df9b74 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

added 1 command

parent 580d2c15
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ ENTITY dev_pmbus IS
PORT(
scl : IN STD_LOGIC;
sda : INOUT STD_LOGIC;
vout_mode : IN INTEGER;
vin : IN INTEGER;
vout : IN INTEGER;
iout : IN INTEGER;
......@@ -99,6 +100,7 @@ BEGIN
BEGIN
IF RISING_EDGE(rd_req) THEN
CASE cmd IS --only model some read cmd
WHEN PMBUS_REG_READ_VOUT_MODE=> rd_dat <= STD_LOGIC_VECTOR(TO_SIGNED(vout_mode,8));
WHEN PMBUS_REG_READ_VIN => rd_dat <= STD_LOGIC_VECTOR(TO_SIGNED(vin,8));
WHEN PMBUS_REG_READ_VOUT => rd_dat <= STD_LOGIC_VECTOR(TO_SIGNED(vout,8));
WHEN PMBUS_REG_READ_IOUT => rd_dat <= STD_LOGIC_VECTOR(TO_SIGNED(iout,8));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment