Missing prim_clock_gating module
I can't seem to find this module anywhere. Can someone point me to where this might be?
You can find it in hw/ip/prim/abstract. It then picks either the RTL or xilinx version underneath.
On Thu, Jun 6, 2019 at 11:49 AM Ashish Darbari [email protected] wrote:
I can't seem to find this module anywhere. Can someone point me to where this might be?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lowRISC/ibex/issues/68?email_source=notifications&email_token=AAH2RSTNOQDCJZTWLL2JVWLPZFL2BA5CNFSM4HVHGS7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYDBWGA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSQTONXXNSCXXZQ3NU3PZFL2BANCNFSM4HVHGS7A .
where exactly is hw/ip/prim/ folder?
You can create it yourself as:
module prim_clock_gating
(
input logic clk_i,
input logic en_i,
input logic test_en_i,
output logic clk_o
);
`ifdef FPGA_SYNTHESIS
assign clk_o = clk_i;
`else
logic clk_en;
always_latch
begin
if (clk_i == 1'b0)
clk_en <= en_i | test_en_i;
end
assign clk_o = clk_i & clk_en;
`endif
endmodule
Thanks, @ikarageo. Oh! I didn't realize that. I do have a legacy cluster_clock_gating module from 0riscy. BTW is it worth leaving a template .v inside the rtl folder so at least that checkout compiles with at least formal tools. I recall from 0riscy checkout I'd the same problem back then.
@tjaychen I'd still be interested to know where is the hw/ip folder?
Oops sorry, I'm pretty new to this, it seems like I may have been talking about the wrong thing. Sorry about that.
On Thu, Jun 6, 2019 at 12:41 PM Ashish Darbari [email protected] wrote:
Thanks, @ikarageo https://github.com/ikarageo. Oh! I didn't realize that. I do have a legacy cluster_clock_gating module from 0riscy. BTW is it worth leaving a template .v inside the rtl folder so at least that checkout compiles with at least formal tools. I recall from 0riscy checkout I'd the same problem back then.
@tjaychen https://github.com/tjaychen I'd still be interested to know where is the hw/ip folder?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/ibex/issues/68?email_source=notifications&email_token=AAH2RSWAWL5IZYBCW5IFAV3PZFR7XA5CNFSM4HVHGS7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXD6FGY#issuecomment-499638939, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSVD275CXMWLOECT44DPZFR7XANCNFSM4HVHGS7A .
But there should be one in dv/uvm/tb/prim_clock_gating.sv right?
There is one there indeed! Should it be there?
I added "dv/uvm/tb/prim_clock_gating.sv" just to get the TB compile and running. I agree we should have some default implementation like this so that user can check out the repo and get it up and running without adding an additional module.
prim_clock_gating should be supplied by the user from his/her technology library, as documented here: https://ibex-core.readthedocs.io/en/latest/register_file.html#latch-based-register-file
I'll keep this bug around to explore what we can do to support a sample/default implementation.
This requirement is now more clearly documented in https://ibex-core.readthedocs.io/en/latest/getting_started.html.