mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 09:45:18 +00:00
Remove fpga/sim
This commit is contained in:
parent
b36c64208c
commit
bcbc2f2eed
@ -1,11 +0,0 @@
|
||||
module BUFGCE (input logic I, input logic CE, output logic O);
|
||||
|
||||
logic CE_Q;
|
||||
always_latch begin
|
||||
if(~I) begin
|
||||
CE_Q <= CE;
|
||||
end
|
||||
end
|
||||
assign O = CE_Q & I;
|
||||
|
||||
endmodule
|
@ -1,32 +0,0 @@
|
||||
module BUFGCE_DIV #(parameter string DivideAmt = "1")
|
||||
(input logic I, input logic CLR, input logic CE, output logic O);
|
||||
|
||||
integer PulseCount = 0;
|
||||
logic Q;
|
||||
|
||||
always_ff @(posedge I, posedge CLR) begin
|
||||
if(CLR) PulseCount <= 0;
|
||||
else begin
|
||||
if(PulseCount < (DivideAmt.atoi()/2 - 1))
|
||||
PulseCount <= PulseCount + 1;
|
||||
else
|
||||
PulseCount <= 0;
|
||||
end
|
||||
end
|
||||
|
||||
assign zero = PulseCount == 0;
|
||||
|
||||
|
||||
flopenr #(1) ToggleFlipFLop
|
||||
(.d(~Q),
|
||||
.q(Q),
|
||||
.clk(I),
|
||||
.reset(CLR), // reset when told by outside
|
||||
.en(zero)); // only update when counter overflows
|
||||
|
||||
if (DivideAmt != "1")
|
||||
assign O = Q;
|
||||
else
|
||||
assign O = I;
|
||||
|
||||
endmodule
|
@ -1,4 +0,0 @@
|
||||
module BUFGMUX(input logic I1, input logic I0, input logic S, output logic O);
|
||||
|
||||
assign O = S ? I1 : I0;
|
||||
endmodule
|
Loading…
Reference in New Issue
Block a user