(*synthesize*)
-module mksdr_axi4_slave#(Clock clk0) (Ifc_sdr_slave);
+module mksdr_axi4_slave#(Clock clk0, Reset rst0) (Ifc_sdr_slave);
- Reset rst0 <- mkAsyncResetFromCR (0, clk0);
-
Reg#(Bit#(9)) rg_delay_count <- mkReg(0,clocked_by clk0, reset_by rst0);
Reg#(Bit#(9)) rg_rd_actual_len <- mkReg(0,clocked_by clk0, reset_by rst0);
Reg#(bit) rg_app_req <- mkDReg(0,clocked_by clk0, reset_by rst0);
AXI4_Slave_Xactor_IFC #(`PADDR, `Reg_width, `USERSPACE) s_xactor_cntrl_reg <- mkAXI4_Slave_Xactor;
Ifc_sdram sdr_cntrl <- mksdrc_top(clocked_by clk0, reset_by rst0);
+ // TODO remove the following when clock to bit type conversion is done
+ Reg#(Bit#(1)) rg_dummy <- mkReg(0, clocked_by clk0, reset_by rst0);
+
function Action fn_wr_cntrl_reg(Bit#(64) data, Bit#(8) address);
action
case(address)
interface osdr_clock = interface Get
method ActionValue#(Bit#(1)) get;
- return ?;
+ return rg_dummy;
endmethod
endinterface;
endinterface