Skip to content

Commit

Permalink
[*] rtlgen upgrade: fixed unnecesary empty lines in code (no function…
Browse files Browse the repository at this point in the history
…al changes)
  • Loading branch information
sergeykhbr committed Nov 29, 2023
1 parent 69253f9 commit 59ddccf
Show file tree
Hide file tree
Showing 156 changed files with 144 additions and 338 deletions.
2 changes: 0 additions & 2 deletions sc/prj/common/vips/clk/vip_clk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ vip_clk::vip_clk(sc_module_name name,
period_ = period;
// initial
// pll = 0;

// end initial


SC_METHOD(comb);
sensitive << pll;
}
Expand Down
2 changes: 0 additions & 2 deletions sc/prj/common/vips/sdcard/vip_sdcard_cmdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ vip_sdcard_cmdio::vip_sdcard_cmdio(sc_module_name name,
crccmd0->i_dat(w_crc7_dat);
crccmd0->o_crc7(wb_crc7);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_cs;
Expand Down
8 changes: 0 additions & 8 deletions sc/prj/common/vips/sdcard/vip_sdcard_top.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,35 +45,30 @@ vip_sdcard_top::vip_sdcard_top(sc_module_name name,
iobufcmd0->i(w_cmd_out);
iobufcmd0->t(w_cmd_dir);


iobufdat0 = new iobuf_tech("iobufdat0");
iobufdat0->io(io_dat0);
iobufdat0->o(w_dat0_in);
iobufdat0->i(w_dat0_out);
iobufdat0->t(w_dat0_dir);


iobufdat1 = new iobuf_tech("iobufdat1");
iobufdat1->io(io_dat1);
iobufdat1->o(w_dat1_in);
iobufdat1->i(w_dat1_out);
iobufdat1->t(w_dat1_dir);


iobufdat2 = new iobuf_tech("iobufdat2");
iobufdat2->io(io_dat2);
iobufdat2->o(w_dat2_in);
iobufdat2->i(w_dat2_out);
iobufdat2->t(w_dat2_dir);


iobufdat3 = new iobuf_tech("iobufdat3");
iobufdat3->io(io_cd_dat3);
iobufdat3->o(w_dat3_in);
iobufdat3->i(w_dat3_out);
iobufdat3->t(w_dat3_dir);


cmdio0 = new vip_sdcard_cmdio("cmdio0", async_reset);
cmdio0->i_nrst(i_nrst);
cmdio0->i_clk(i_sclk);
Expand Down Expand Up @@ -109,7 +104,6 @@ vip_sdcard_top::vip_sdcard_top(sc_module_name name,
cmdio0->i_stat_out_of_range(w_stat_out_of_range);
cmdio0->o_busy(w_cmdio_busy);


ctrl0 = new vip_sdcard_ctrl("ctrl0", async_reset,
CFG_SDCARD_POWERUP_DONE_DELAY,
CFG_SDCARD_HCS,
Expand Down Expand Up @@ -143,8 +137,6 @@ vip_sdcard_top::vip_sdcard_top(sc_module_name name,
ctrl0->o_dat(wb_dat);
ctrl0->i_cmdio_busy(w_cmdio_busy);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_sclk;
Expand Down
5 changes: 2 additions & 3 deletions sc/prj/common/vips/spi/vip_spi_top.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ vip_spi_top::vip_spi_top(sc_module_name name,
pll_period);
clk0->o_clk(w_clk);


tx0 = new vip_spi_transmitter("tx0", async_reset,
scaler);
tx0->i_nrst(i_nrst);
Expand All @@ -63,8 +62,6 @@ vip_spi_top::vip_spi_top(sc_module_name name,
tx0->i_resp_rdata(wb_resp_rdata);
tx0->o_resp_ready(w_resp_ready);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_csn;
Expand Down Expand Up @@ -133,8 +130,10 @@ void vip_spi_top::generateVCD(sc_trace_file *i_vcd, sc_trace_file *o_vcd) {

void vip_spi_top::comb() {
sc_uint<32> rdata;
bool vb_gpio_in;

rdata = 0;
vb_gpio_in = 0;

v = r;

Expand Down
6 changes: 0 additions & 6 deletions sc/prj/common/vips/uart/vip_uart_top.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,11 @@ vip_uart_top::vip_uart_top(sc_module_name name,
instnum_);
outfilename = std::string(tstr);
fl_tmp = fopen(outfilename.c_str(), "wb");

// end initial

clk0 = new vip_clk("clk0",
pll_period);
clk0->o_clk(w_clk);


rx0 = new vip_uart_receiver("rx0", async_reset,
scaler);
rx0->i_nrst(i_nrst);
Expand All @@ -72,7 +69,6 @@ vip_uart_top::vip_uart_top(sc_module_name name,
rx0->i_rdy_clr(w_rx_rdy_clr);
rx0->o_data(wb_rdata);


tx0 = new vip_uart_transmitter("tx0", async_reset,
scaler);
tx0->i_nrst(i_nrst);
Expand All @@ -82,8 +78,6 @@ vip_uart_top::vip_uart_top(sc_module_name name,
tx0->o_full(w_tx_full);
tx0->o_tx(o_tx);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_rx;
Expand Down
10 changes: 0 additions & 10 deletions sc/prj/impl/asic/asic_top.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,50 +59,43 @@ asic_top::asic_top(sc_module_name name,
iclk0->i_clk_n(i_sclk_n);
iclk0->o_clk(ib_clk_tcxo);


iosdcmd0 = new iobuf_tech("iosdcmd0");
iosdcmd0->io(io_sd_cmd);
iosdcmd0->o(ib_sd_cmd);
iosdcmd0->i(ob_sd_cmd);
iosdcmd0->t(ob_sd_cmd_direction);


iosddat0 = new iobuf_tech("iosddat0");
iosddat0->io(io_sd_dat0);
iosddat0->o(ib_sd_dat0);
iosddat0->i(ob_sd_dat0);
iosddat0->t(ob_sd_dat0_direction);


iosddat1 = new iobuf_tech("iosddat1");
iosddat1->io(io_sd_dat1);
iosddat1->o(ib_sd_dat1);
iosddat1->i(ob_sd_dat1);
iosddat1->t(ob_sd_dat1_direction);


iosddat2 = new iobuf_tech("iosddat2");
iosddat2->io(io_sd_dat2);
iosddat2->o(ib_sd_dat2);
iosddat2->i(ob_sd_dat2);
iosddat2->t(ob_sd_dat2_direction);


iosddat3 = new iobuf_tech("iosddat3");
iosddat3->io(io_sd_cd_dat3);
iosddat3->o(ib_sd_cd_dat3);
iosddat3->i(ob_sd_cd_dat3);
iosddat3->t(ob_sd_cd_dat3_direction);


pll0 = new SysPLL_tech("pll0");
pll0->i_reset(i_rst);
pll0->i_clk_tcxo(ib_clk_tcxo);
pll0->o_clk_sys(w_sys_clk);
pll0->o_clk_ddr(w_ddr_clk);
pll0->o_locked(w_pll_lock);


prci0 = new apb_prci("prci0", async_reset);
prci0->i_clk(ib_clk_tcxo);
prci0->i_pwrreset(i_rst);
Expand All @@ -117,7 +110,6 @@ asic_top::asic_top(sc_module_name name,
prci0->i_apbi(prci_apbi);
prci0->o_apbo(prci_apbo);


soc0 = new riscv_soc("soc0", async_reset,
sim_uart_speedup_rate);
soc0->i_sys_nrst(w_sys_nrst);
Expand Down Expand Up @@ -167,8 +159,6 @@ asic_top::asic_top(sc_module_name name,
soc0->i_ddr_xdevcfg(ddr_xdev_cfg);
soc0->o_ddr_xslvi(ddr_xslvi);
soc0->i_ddr_xslvo(ddr_xslvo);


}

asic_top::~asic_top() {
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/ambalib/axi2apb_bus1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ axi2apb_bus1::axi2apb_bus1(sc_module_name name,
axi0->i_resp_rdata(r.prdata);
axi0->i_resp_err(r.pslverr);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/ambalib/axictrl_bus0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ axictrl_bus0::axictrl_bus0(sc_module_name name,
xdef0->i_resp_rdata(wb_def_resp_rdata);
xdef0->i_resp_err(w_def_resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
for (int i = 0; i < CFG_BUS0_XMST_TOTAL; i++) {
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/apb_ddr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ apb_ddr::apb_ddr(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/apb_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ apb_gpio<width>::apb_gpio(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/apb_pnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ apb_pnp<cfg_slots>::apb_pnp(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/apb_prci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ apb_prci::apb_prci(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);



SC_METHOD(comb);
sensitive << i_pwrreset;
sensitive << i_dmireset;
Expand Down
4 changes: 0 additions & 4 deletions sc/rtl/misclib/apb_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ apb_spi<log2_fifosz>::apb_spi(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);


rxfifo = new sfifo<fifo_dbits,
log2_fifosz>("rxfifo", async_reset);
rxfifo->i_clk(i_clk);
Expand All @@ -192,7 +191,6 @@ apb_spi<log2_fifosz>::apb_spi(sc_module_name name,
rxfifo->o_rdata(wb_rxfifo_rdata);
rxfifo->o_count(wb_rxfifo_count);


txfifo = new sfifo<fifo_dbits,
log2_fifosz>("txfifo", async_reset);
txfifo->i_clk(i_clk);
Expand All @@ -203,8 +201,6 @@ apb_spi<log2_fifosz>::apb_spi(sc_module_name name,
txfifo->o_rdata(wb_txfifo_rdata);
txfifo->o_count(wb_txfifo_count);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/apb_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ apb_uart<log2_fifosz>::apb_uart(sc_module_name name,
pslv0->i_resp_rdata(r.resp_rdata);
pslv0->i_resp_err(r.resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
3 changes: 0 additions & 3 deletions sc/rtl/misclib/axi_rom.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,13 @@ axi_rom<abits>::axi_rom(sc_module_name name,
xslv0->i_resp_rdata(wb_resp_rdata);
xslv0->i_resp_err(wb_resp_err);


tech0 = new rom_tech<abits,
CFG_LOG2_SYSBUS_DATA_BYTES>("tech0",
filename);
tech0->i_clk(i_clk);
tech0->i_addr(wb_req_addr_abits);
tech0->o_rdata(wb_resp_rdata);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
3 changes: 0 additions & 3 deletions sc/rtl/misclib/axi_sram.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ axi_sram<abits>::axi_sram(sc_module_name name,
xslv0->i_resp_rdata(wb_resp_rdata);
xslv0->i_resp_err(wb_resp_err);


tech0 = new ram_bytes_tech<abits,
CFG_LOG2_SYSBUS_DATA_BYTES>("tech0");
tech0->i_clk(i_clk);
Expand All @@ -111,8 +110,6 @@ axi_sram<abits>::axi_sram(sc_module_name name,
tech0->i_wdata(wb_req_wdata);
tech0->o_rdata(wb_resp_rdata);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/clint.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ clint<cpu_total>::clint(sc_module_name name,
xslv0->i_resp_rdata(wb_resp_rdata);
xslv0->i_resp_err(wb_resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
2 changes: 0 additions & 2 deletions sc/rtl/misclib/plic.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ plic<ctxmax, irqmax>::plic(sc_module_name name,
xslv0->i_resp_rdata(wb_resp_rdata);
xslv0->i_resp_err(wb_resp_err);



SC_METHOD(comb);
sensitive << i_nrst;
sensitive << i_mapinfo;
Expand Down
Loading

0 comments on commit 59ddccf

Please sign in to comment.