Skip to content

Commit b075100

Browse files
GHDL doesn't strip asserts for synth
1 parent f493316 commit b075100

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hdl/ip/vhd/spi/axi_controller/spi_axi_pkg.vhd

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ package body spi_axi_pkg is
7070
when spi_opcode_bit_clr =>
7171
return rdata and (not wdata);
7272
when others =>
73-
assert false report "not a bit operation opcode" severity failure;
73+
return rdata;
7474
end case;
7575

7676
end function;

hdl/ip/vhd/spi/axi_controller/spi_axi_sms.vhd

+1-3
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ begin
215215
v.state := OPCODE;
216216
v.opcode := (others => '0');
217217
v.req_addr := (others => '0');
218-
219-
-- TODO: any more clearing needed?
220218
end if;
221219

222220
spi_rin <= v;
@@ -232,7 +230,7 @@ begin
232230
-- given it's a processor. The task could die etc. This also means that we don't interlock with the spi
233231
-- state machine, we just complete the transactions requested and supply any necessary data. If the SPI
234232
-- sm is in the wrong state, we'll drop any response data on the floor but not block anything here.
235-
axi_sm_logic: process(all)
233+
axi_sm_logic: process(axi_r)
236234
variable v : axi_reg_t;
237235

238236
begin

0 commit comments

Comments
 (0)