Skip to content

Commit

Permalink
[!] Fix CI systemc build error
Browse files Browse the repository at this point in the history
[*] Minor updates from rtlgen: improved generic/templates parameters tracking
  • Loading branch information
sergeykhbr committed Nov 25, 2023
1 parent 01022bb commit 831c6cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions sc/rtl/misclib/apb_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ SC_MODULE(apb_spi) {
sc_signal<sc_uint<(log2_fifosz + 1)>> wb_txfifo_count;

apb_slv *pslv0;
sfifo<fifo_dbits, 9> *rxfifo;
sfifo<fifo_dbits, 9> *txfifo;
sfifo<fifo_dbits, log2_fifosz> *rxfifo;
sfifo<fifo_dbits, log2_fifosz> *txfifo;

};

Expand Down Expand Up @@ -183,7 +183,7 @@ apb_spi<log2_fifosz>::apb_spi(sc_module_name name,


rxfifo = new sfifo<fifo_dbits,
9>("rxfifo", async_reset);
log2_fifosz>("rxfifo", async_reset);
rxfifo->i_clk(i_clk);
rxfifo->i_nrst(i_nrst);
rxfifo->i_we(w_rxfifo_we);
Expand All @@ -194,7 +194,7 @@ apb_spi<log2_fifosz>::apb_spi(sc_module_name name,


txfifo = new sfifo<fifo_dbits,
9>("txfifo", async_reset);
log2_fifosz>("txfifo", async_reset);
txfifo->i_clk(i_clk);
txfifo->i_nrst(i_nrst);
txfifo->i_we(w_txfifo_we);
Expand Down
2 changes: 1 addition & 1 deletion sc/rtl/riverlib/dmi/jtagtap.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ SC_MODULE(jtagtap) {
void jtagtap_r_reset(jtagtap_registers &iv) {
iv.state = RESET_TAP;
iv.dr_length = 0;
iv.dr = idcode;
iv.dr = idcode_;
iv.bypass = 0;
iv.datacnt = 0;
iv.dmi_busy = 0;
Expand Down
4 changes: 2 additions & 2 deletions sv/rtl/misclib/apb_spi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ apb_slv #(
sfifo #(
.async_reset(async_reset),
.dbits(fifo_dbits),
.log2_depth(9)
.log2_depth(log2_fifosz)
) rxfifo (
.i_clk(i_clk),
.i_nrst(i_nrst),
Expand All @@ -159,7 +159,7 @@ sfifo #(
sfifo #(
.async_reset(async_reset),
.dbits(fifo_dbits),
.log2_depth(9)
.log2_depth(log2_fifosz)
) txfifo (
.i_clk(i_clk),
.i_nrst(i_nrst),
Expand Down

0 comments on commit 831c6cd

Please sign in to comment.