1
0
mirror of https://github.com/olofk/serv.git synced 2026-02-14 11:23:59 +00:00

Syntax fixes to please Quartus

This commit is contained in:
Olof Kindgren
2018-12-07 22:55:55 +01:00
parent 6cd3d2d3ef
commit 468e99ac7c
2 changed files with 3 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ module serv_csr
assign o_q = csr_out;
wire o_timer_irq_en = mstatus_mie & mie_mtie;
assign o_timer_irq_en = mstatus_mie & mie_mtie;
always @(posedge i_clk) begin
if (i_en & (i_cnt == 3) & (i_csr_sel == CSR_SEL_MSTATUS))

View File

@@ -1,5 +1,6 @@
module shift_reg
#(parameter LEN = 0)
#(parameter LEN = 0,
parameter INIT = 0)
(
input wire clk,
input wire i_en,
@@ -7,8 +8,6 @@ module shift_reg
output wire o_q,
output wire [LEN-2:0] o_par);
parameter INIT = 0;
reg [LEN-1:0] data = INIT;
assign o_q = data[0];
assign o_par = data[LEN-1:1];