aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKali Prasad <kprasadvnsi@pm.me>2019-03-06 09:51:11 +0530
committerKali Prasad <kprasadvnsi@pm.me>2019-03-06 09:51:11 +0530
commit7c03b0b08209c7e1b3972a05db63b23c0b1d7a5e (patch)
treee8ec710fe4cbfdf1f6951f341de913ddd47283c6
parentd03780c3f463bb8ac2c5d300ba7a591f1bc90a8f (diff)
downloadyosys-7c03b0b08209c7e1b3972a05db63b23c0b1d7a5e.tar.gz
yosys-7c03b0b08209c7e1b3972a05db63b23c0b1d7a5e.tar.bz2
yosys-7c03b0b08209c7e1b3972a05db63b23c0b1d7a5e.zip
examples/anlogic/ now also output the SVF file.
-rw-r--r--examples/anlogic/.gitignore5
-rw-r--r--examples/anlogic/README1
-rw-r--r--examples/anlogic/build.tcl2
-rw-r--r--examples/anlogic/demo.adc2
-rw-r--r--examples/anlogic/demo.v10
-rw-r--r--examples/anlogic/demo.ys2
6 files changed, 12 insertions, 10 deletions
diff --git a/examples/anlogic/.gitignore b/examples/anlogic/.gitignore
index fa9424cd8..97c978a15 100644
--- a/examples/anlogic/.gitignore
+++ b/examples/anlogic/.gitignore
@@ -1,4 +1,7 @@
demo.bit
demo_phy.area
full.v
-*.log \ No newline at end of file
+*.log
+*.h
+*.tde
+*.svf
diff --git a/examples/anlogic/README b/examples/anlogic/README
index 99143cce0..35d8e9cb1 100644
--- a/examples/anlogic/README
+++ b/examples/anlogic/README
@@ -10,4 +10,3 @@ set TD_HOME env variable to the full path to the TD <TD Install Directory> as fo
export TD_HOME=<TD Install Directory>
then run "bash build.sh" in this directory.
-
diff --git a/examples/anlogic/build.tcl b/examples/anlogic/build.tcl
index db8c3b347..06db525c9 100644
--- a/examples/anlogic/build.tcl
+++ b/examples/anlogic/build.tcl
@@ -8,4 +8,4 @@ pack
place
route
report_area -io_info -file demo_phy.area
-bitgen -bit demo.bit -version 0X00 -g ucode:00000000000000000000000000000000
+bitgen -bit demo.bit -version 0X0000 -svf demo.svf -svf_comment_on -g ucode:00000000000000000000000000000000
diff --git a/examples/anlogic/demo.adc b/examples/anlogic/demo.adc
index c8fbaed3e..ec802502e 100644
--- a/examples/anlogic/demo.adc
+++ b/examples/anlogic/demo.adc
@@ -1,2 +1,2 @@
set_pin_assignment {CLK_IN} { LOCATION = K14; } ##24MHZ
-set_pin_assignment {R_LED} { LOCATION = R3; } ##R_LED \ No newline at end of file
+set_pin_assignment {R_LED} { LOCATION = R3; } ##R_LED
diff --git a/examples/anlogic/demo.v b/examples/anlogic/demo.v
index a7edf4e37..e17db771e 100644
--- a/examples/anlogic/demo.v
+++ b/examples/anlogic/demo.v
@@ -1,18 +1,18 @@
module demo (
- input wire CLK_IN,
- output wire R_LED
+ input wire CLK_IN,
+ output wire R_LED
);
parameter time1 = 30'd12_000_000;
reg led_state;
reg [29:0] count;
-
+
always @(posedge CLK_IN)begin
if(count == time1)begin
- count<= 30'd0;
+ count<= 30'd0;
led_state <= ~led_state;
end
else
count <= count + 1'b1;
end
assign R_LED = led_state;
-endmodule \ No newline at end of file
+endmodule
diff --git a/examples/anlogic/demo.ys b/examples/anlogic/demo.ys
index 5687bcd31..cb396cc2b 100644
--- a/examples/anlogic/demo.ys
+++ b/examples/anlogic/demo.ys
@@ -1,3 +1,3 @@
read_verilog demo.v
synth_anlogic -top demo
-write_verilog full.v \ No newline at end of file
+write_verilog full.v