I have the following interfaces:
interface tx_in_interface (input bit clk, input bit tx_srstn);
//dut input
logic [15:0] xi;
logic [15:0] xq;
logic [15:0] sin;
logic [15:0] cos;
int chind2;
endinterface
interface tx_out_interface (input bit clk, input bit tx_srstn);
//dut output
logic [15:0] y;
int chind2;
endinterface
I want to check that every time sin equal to 1(dec) y will be xi/sqrt(2), and every time cos equal to 1(dec) y will be xq/sqrt(2).
Can I do it with a specific kind of systemVerilog assertion (with no use of scoreboard or coverage)?
yisxi/sqrt(2)whensinis 1,the other to check thatyisxq/sqrt(2)whencosis 1. It is not clear what you are asking. Do you know about SVA assertions?assert property (...module_inst.tx_in_interface.inst.sin == 16'd1 -> ...module_inst.tx_out_interface.inst.y == ...module_inst.tx_in_interface.inst.xi/sqrt(2)) ...